public static function get_payment_info_paychained() { $puuempdmk = "id_seller"; $wpflcvd = "seller_sales_4com"; $cpetamjwwv = "seller_sales_4payment"; global $cookie, $cart; ${"GLOBALS"}["trfikxjbx"] = "store_paypalemail"; $nqnqquqgr = "seller_sales_4com"; ${$cpetamjwwv} = AgileMultipleSeller::get_seller_sales_from_cart($cart->id, true, true, true); ${"GLOBALS"}["wvfscupoq"] = "payments"; ${"GLOBALS"}["jqyrfshjimu"] = "store_paypalemail"; ${$nqnqquqgr} = AgileMultipleSeller::get_seller_sales_from_cart($cart->id, true, true, false); if (empty(${${"GLOBALS"}["zkaqti"]})) { return; } ${${"GLOBALS"}["wvfscupoq"]} = array(); $lslimubn = "payments"; ${"GLOBALS"}["icfhhgar"] = "payments"; foreach (${$wpflcvd} as ${$puuempdmk} => ${${"GLOBALS"}["eynxyyuyuo"]}) { ${"GLOBALS"}["dsjoejcwhld"] = "seller_commission_amount"; $hwioosaskbpo = "id_seller"; $hxvhmowjc = "payments"; $fjfgeknww = "sales_amount_4com"; ${"GLOBALS"}["slhpjopwg"] = "seller_payment_amount"; $qampyync = "id_seller"; $myxwoehynrl = "seller_paypal_email"; ${$myxwoehynrl} = self::getSelllerPaypalEmail(${$qampyync}); $wkmldijjcg = "id_seller"; ${${"GLOBALS"}["nwuqak"]} = AgileSellerCommission::get_seller_commission_amount(${$hwioosaskbpo}, ${$fjfgeknww}, $cart->id_currency); ${"GLOBALS"}["qpmaobwhe"] = "seller_payment_amount"; if (${${"GLOBALS"}["nwuqak"]} <= 0) { ${${"GLOBALS"}["dsjoejcwhld"]} = 0; } ${${"GLOBALS"}["slhpjopwg"]} = ${${"GLOBALS"}["zkaqti"]}[${$wkmldijjcg}] - ${${"GLOBALS"}["nwuqak"]}; if (floatval(${${"GLOBALS"}["dcdrpqmtzn"]}) < 0) { return; } ${$hxvhmowjc}[${${"GLOBALS"}["qcrytsf"]}] = array("email" => ${${"GLOBALS"}["veauutv"]}, "amount" => ${${"GLOBALS"}["qpmaobwhe"]}); } ${${"GLOBALS"}["trfikxjbx"]} = Configuration::get("AGILE_PAYPALAD_BUSINESS"); if (empty(${${"GLOBALS"}["ouzggjvkw"]})) { return; } ${${"GLOBALS"}["icfhhgar"]}[0] = array("email" => ${${"GLOBALS"}["jqyrfshjimu"]}, "amount" => $cart->getOrderTotal(true, Cart::BOTH)); return ${$lslimubn}; }