From 0fc0828c6b93a82e3cb429907e7d025a7841fb8d Mon Sep 17 00:00:00 2001 From: Kcppdevelopers Date: Thu, 25 May 2017 16:43:36 +0530 Subject: [PATCH] WooCommerce 3.0.x / PayPal for Woo 1.4.x Compatibility / AutoShip, ref #752 --- classes/wc-gateway-braintree-angelleye.php | 1 - 1 file changed, 1 deletion(-) diff --git a/classes/wc-gateway-braintree-angelleye.php b/classes/wc-gateway-braintree-angelleye.php index 9ff4cacfa..fdaa93e99 100644 --- a/classes/wc-gateway-braintree-angelleye.php +++ b/classes/wc-gateway-braintree-angelleye.php @@ -653,7 +653,6 @@ public function angelleye_do_payment($order) { } else { update_post_meta( $order->get_id(), 'is_sandbox', $this->sandbox ); } - $order->payment_complete($this->response->transaction->id); $transaction = Braintree_Transaction::find($this->response->transaction->id); $this->save_payment_token($order, $transaction->creditCard['token']); do_action('before_save_payment_token', $order_id);