Altering the commerce checkout flowAuthor: Jon M.
I am trying to get a checkout flow setup for an ecommerce site using Stripe for payment processing, so the Payment Type set to Custom Code. The problem I am running into is that the Pay Now button shows up at #step4. This is after the order has been created and the confirmation email sent to the user. How do I modify the flow so that after #step3, the user is prompted for payment. Once payment is completed successfully, #step4 is shown with the order confirmation and the email is then sent out?
With the current flow, the order is created and stored into the database and the inventory is deprecated - all without payment being accepted. This can cause confusion with inventory and order processing if the user never completes payment.