From 8f4ef69c7c8d31718b3326cb8ffbada4013239dd Mon Sep 17 00:00:00 2001 From: Kcppdevelopers Date: Tue, 2 May 2017 13:43:02 +0530 Subject: [PATCH] 1.4.0 Breaks Void Authorization, ref #660 --- .../class-wc-gateway-paypal-express-request-angelleye.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/angelleye-includes/express-checkout/class-wc-gateway-paypal-express-request-angelleye.php b/angelleye-includes/express-checkout/class-wc-gateway-paypal-express-request-angelleye.php index 1293972c5..4b1b573eb 100644 --- a/angelleye-includes/express-checkout/class-wc-gateway-paypal-express-request-angelleye.php +++ b/angelleye-includes/express-checkout/class-wc-gateway-paypal-express-request-angelleye.php @@ -179,6 +179,9 @@ public function angelleye_do_express_checkout_payment() { } $this->angelleye_add_order_note($order); $this->angelleye_add_extra_order_meta($order); + if($this->gateway->payment_action != 'Sale') { + AngellEYE_Utility::angelleye_paypal_for_woocommerce_add_paypal_transaction($this->paypal_response, $order, $this->gateway->payment_action); + } if ($this->response_helper->ec_is_response_success($this->paypal_response)) { $this->angelleye_ec_get_customer_email_address($this->confirm_order_id); $this->angelleye_ec_sellerprotection_handler($this->confirm_order_id);