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 74532b2f6..99abf10cc 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 @@ -204,10 +204,7 @@ public function angelleye_do_express_checkout_payment() { 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)) { - $post_data = WC()->session->get('post_data'); - if( empty($post_data) ) { - apply_filters( 'woocommerce_payment_successful_result', array('result' => 'success'), $order_id ); - } + apply_filters( 'woocommerce_payment_successful_result', array('result' => 'success'), $order_id ); do_action( 'woocommerce_before_pay_action', $order ); $this->angelleye_ec_get_customer_email_address($this->confirm_order_id); $this->angelleye_ec_sellerprotection_handler($this->confirm_order_id); @@ -243,10 +240,7 @@ public function angelleye_do_express_checkout_payment() { wp_redirect($this->gateway->get_return_url($order)); exit(); } elseif ($this->response_helper->ec_is_response_successwithwarning($this->paypal_response)) { - $post_data = WC()->session->get('post_data'); - if( empty($post_data) ) { - apply_filters( 'woocommerce_payment_successful_result', array('result' => 'success'), $order_id ); - } + apply_filters( 'woocommerce_payment_successful_result', array('result' => 'success'), $order_id ); do_action( 'woocommerce_before_pay_action', $order ); $this->angelleye_ec_get_customer_email_address($this->confirm_order_id); $this->angelleye_ec_sellerprotection_handler($this->confirm_order_id);