• Hi! It looks like the plugin triggers the WC_Email_Failed_Order email on checkout.session.expired (1), but WooCommerce by default also triggers WC_Email_Failed_Order email (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 ); and WC_Email_Failed_Order::__construct() has add_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!

    • This topic was modified 1 week, 1 day ago by Bence Szalai.

You must be logged in to reply to this topic.