Payment flow and cart restore #1443
BrocksiNet
started this conversation in
General
Replies: 2 comments 5 replies
-
@BrocksiNet Thanks for opening the discussion! As discussed prior and proposed by you, maybe there is a way to create a copy of the cart before triggering the order, store the token of the cart as a backup and use it in these cases. However the question is if it is actually possible to create multiple carts per user/session using the API and if so how to handle the "abandoned" orders then? |
Beta Was this translation helpful? Give feedback.
1 reply
-
So I managed to provide a solution for the "non happy path" in frontends with your help 💪
Its not pretty, but it works for now 😄 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Async Payment Flow
![Async Payment Flow Async Payment Flow](https://camo.githubusercontent.com/4619296b3e3087d5d0d27910e845c55979335ef15123829d63654ecf7d30ed62/68747470733a2f2f646576656c6f7065722e73686f70776172652e636f6d2f6173736574732f636865636b6f7574436f6e636570742d7061796d656e742d7061796d656e74466c6f772e70506648493354312e737667)
Additional References
Current problems
Unhappy path in the default Storefront (TWIG)
CartOrderRoute
) & payment fails inHandlePaymentMethodRoute
SetPaymentOrderRoute
& pays viaHandlePaymentMethodRoute
\Shopware\Storefront\Controller\AccountOrderController::updateOrder
Please feel free to participate and share ideas on how to solve the payment flow issues with the store API.
Beta Was this translation helpful? Give feedback.
All reactions