From 49ffe142a9aee2f7c8a8beaefa713626f4a132bf Mon Sep 17 00:00:00 2001 From: kcppdevelopers Date: Mon, 19 Apr 2021 15:21:58 +0530 Subject: [PATCH] $0.00 Orders Failing in Parallel Payment, PFWMA-224 --- ...ce-multi-account-management-admin-express-checkout.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/admin/class-paypal-for-woocommerce-multi-account-management-admin-express-checkout.php b/admin/class-paypal-for-woocommerce-multi-account-management-admin-express-checkout.php index d38e16d..600f3a6 100644 --- a/admin/class-paypal-for-woocommerce-multi-account-management-admin-express-checkout.php +++ b/admin/class-paypal-for-woocommerce-multi-account-management-admin-express-checkout.php @@ -1371,8 +1371,12 @@ public function angelleye_modified_ec_parallel_parameter($request, $gateways, $o $this->final_payment_request_data[$sellerpaypalaccountid]['taxamt'] = $Payment['taxamt']; } } - array_push($new_payments, $Payment); - $loop = $loop + 1; + if($final_total > 0) { + array_push($new_payments, $Payment); + $loop = $loop + 1; + } else { + unset($this->final_payment_request_data[$sellerpaypalaccountid]); + } } else {