I’m not a Magento expert, and do not have access to the underlying code, but work with a Magento website.
Since the latest update to Magento 2.4.5 we have noticed that when and order is made it is made with the “Pending(new)” status. This then triggers it to send out an order confirmation email even before payment is confirmed (through Stripe). If the order is declined the customer still gets the email and the order will remain in “pending” status. If the customer enters a new card Magento will then move the original order to “canceled” and make a whole new order with a status “pending” and send out another order confirmation email.
I see no where in the system->configuration->sales email to set when emails send out on any given status. Is there someway I can move it so that order confirmation emails are only sent at a later status?
Also, the behavior of creating an entire new order when a credit card is declined seems odd, is this expected behavior?
Thanks for any insight!