WebSite X5Help Center

 
Jon M.
Jon M.
User

Altering the commerce checkout flow  en

Автор: Jon M.
Просмотрено 1560, Подписчики 1, Размещенный 0  

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.

Размещено
6 Ответы - 1 Корректно
Andreas S.
Andreas S.
Moderator
Лучший пользователь месяца DE

What did you set in the online store at "Send order"?
Order confirmation after payment!

Читать больше
Размещено От Andreas S.
Jon M.
Jon M.
User
Автор

yes, it is set to "Send order confirmation email after payment"

Читать больше
Размещено От Jon M.
Incomedia
Stefano G.
Incomedia

Hello Jon

Unfortunately, there is no way for you not to send out the email if you're using a custom payment method.

This is only possible if you're using PayPal and configured your payment method as Pay Now.

In every other situation, the email will be sent out immediately and changing this would imply for you to make major modifications to the final code which we do not advise you do, since they would be erased at every consequent update anyway

As of now, I'm afraid that there is no way around this if you're using a custom payment method

I remain available here

Thank you

Stefano

Читать больше
Размещено От Stefano G.
Jon M.
Jon M.
User
Автор

Thanks for the update.  Is there any plans to integrate Stripe payments directly?  Unfortunately I won't use Paypal, so that means I need to write my own payment flow.

Jon

Читать больше
Размещено От Jon M.
Incomedia
Stefano G.
Incomedia

Hello Jon

For the moment, I'm afraid not

However, internal discussions are currently ongoing about this, so it is very likely that news on this will be coming next year

Thank you for your feedback

Stefano

Читать больше
Размещено От Stefano G.
Jon M.
Jon M.
User
Автор
Stefano G.
Hello Jon For the moment, I'm afraid not However, internal discussions are currently ongoing about this, so it is very likely that news on this will be coming next year Thank you for your feedback Stefano

Thanks.  For now I have added some code into the header to hijack the checkout button.  I will watch for the announcement though.

Читать больше
Размещено От Jon M.