Duplicate failed order admin email
-
Hi! It looks like the plugin triggers the
WC_Email_Failed_Orderemail oncheckout.session.expired(1), but WooCommerce by default also triggersWC_Email_Failed_Orderemail (2).
1:Woo_Stripe_Pay_Addons\Core\Webhook_Handler::process_checkout_session_success()=>Woo_Stripe_Pay_Addons\Core\Webhook_Handler::send_failed_order_email()2:
Woo_Stripe_Pay_Addons\Core\Webhook_Handler::process_checkout_session_success()=>$order->update_status( 'failed', $message );=>WC_Order::status_transition()=>do_action( 'woocommerce_order_status_' . $status_transition['from'] . 'to' . $status_transition['to'], $this->get_id(), $this );andWC_Email_Failed_Order::__construct()hasadd_action( 'woocommerce_order_status_pending_to_failed_notification', array( $this, 'trigger' ), 10, 2 );which in turn triggers the mail when the action fires.Can you please check and eliminate the duplicate email if confirmed?
Thanks!
You must be logged in to reply to this topic.