Skip to content

Commit

Permalink
Woo Germanized and Germanized Pro Conflict: Order email sending issue…
Browse files Browse the repository at this point in the history
…, ref #764
  • Loading branch information
kcppdevelopers committed Jun 22, 2017
1 parent aea74fa commit c8a9c1a
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,11 @@ 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)) {
apply_filters( 'woocommerce_payment_successful_result', array('result' => 'success'), $order_id );
$post_data = WC()->session->get('post_data');
if( empty($post_data) ) {
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);
$this->angelleye_ec_save_billing_agreement($order_id);
Expand Down Expand Up @@ -244,7 +248,11 @@ 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)) {
apply_filters( 'woocommerce_payment_successful_result', array('result' => 'success'), $order_id );
$post_data = WC()->session->get('post_data');
if( empty($post_data) ) {
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);
$this->angelleye_ec_save_billing_agreement($order_id);
Expand Down

0 comments on commit c8a9c1a

Please sign in to comment.