diff --git a/upload/catalog/controller/extension/payment/paypal.php b/upload/catalog/controller/extension/payment/paypal.php index 33598666..777f7880 100644 --- a/upload/catalog/controller/extension/payment/paypal.php +++ b/upload/catalog/controller/extension/payment/paypal.php @@ -1653,6 +1653,7 @@ public function approveOrder() { $card_nice_type = (!empty($this->request->post['card_nice_type']) ? $this->request->post['card_nice_type'] : ''); $card_last_digits = ''; $card_expiry = ''; + $paypal_order_data = array(); if (!$this->cart->hasShipping()) { $seller_protection_status = 'NOT_ELIGIBLE'; @@ -1785,6 +1786,7 @@ public function approveOrder() { $card_nice_type = (!empty($this->request->post['card_nice_type']) ? $this->request->post['card_nice_type'] : ''); $card_last_digits = ''; $card_expiry = ''; + $paypal_order_data = array(); if (!$this->cart->hasShipping()) { $seller_protection_status = 'NOT_ELIGIBLE'; @@ -2633,7 +2635,7 @@ public function completeOrder() { if ($affiliate_info) { $order_data['affiliate_id'] = $affiliate_info['affiliate_id']; - $order_data['commission'] = ($subtotal / 100) * $affiliate_info['commission']; + $order_data['commission'] = ($sub_total / 100) * $affiliate_info['commission']; } else { $order_data['affiliate_id'] = 0; $order_data['commission'] = 0; @@ -2996,6 +2998,7 @@ public function completeOrder() { $card_nice_type = ''; $card_last_digits = ''; $card_expiry = ''; + $paypal_order_data = array(); if (!$this->cart->hasShipping()) { $seller_protection_status = 'NOT_ELIGIBLE'; @@ -3128,6 +3131,7 @@ public function completeOrder() { $card_nice_type = ''; $card_last_digits = ''; $card_expiry = ''; + $paypal_order_data = array(); if (!$this->cart->hasShipping()) { $seller_protection_status = 'NOT_ELIGIBLE'; @@ -3771,7 +3775,7 @@ public function callback() { $order_status_id = 0; $transaction_status = ''; $payment_method = 'card'; - $paypal_order_data = []; + $paypal_order_data = array(); if (!$this->cart->hasShipping()) { $seller_protection_status = 'NOT_ELIGIBLE'; @@ -3876,7 +3880,7 @@ public function callback() { $order_status_id = 0; $transaction_status = ''; $payment_method = 'card'; - $paypal_order_data = []; + $paypal_order_data = array(); if (!$this->cart->hasShipping()) { $seller_protection_status = 'NOT_ELIGIBLE';