-
I have been working to upgrade my saleor/react-storefront to this new pattern, and I would like clarification on something regarding payments vs transactions. I have made some observations between what my currently old deployed react-storefront does compared to the new saleor checkout spa. For visualization compare these two orders from the perspective of the dashboard, first the old experience: Some key differences are:
I've been spending some hours trying to think through how to create the payment record from within the stripe callback in I like the UI and checkout experience for the user better in this new flow, but as the store administrator this makes my work of managing the store and its inventory more complicated. Any help or guidance on this topic would be appreciated. (Originally posted here but I think its buried and hasn't gotten any attention yet: saleor/saleor#10293 (comment)) |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Hey @matteius |
Beta Was this translation helpful? Give feedback.
-
@matteius which webhook or email plugin are you using? |
Beta Was this translation helpful? Give feedback.
-
RE 1: We're capturing automatically now with Stripe as it's the most common way of handling payments used by our customers. We understand this might not be ideal for every store, and we're planning to make it configurable in the future. |
Beta Was this translation helpful? Give feedback.
-
@matteius Ad3. One of the idea of transaction API was to give a developer as many flexibility as possible. One of this is a possibility to support different flow of handling payment. The old payment API only supports the flow "processing payment then order". The transactions API, allows you to build flow: "processing payment(s) then order" or "order then processing payment(s)" or "processing partial payment then order then processing partial payment". Checkout app is using the flow "order then processing payment". If you have This is something that we want to improve as well as better handling the stock(inventory) of unpaid orders (abandoned orders). |
Beta Was this translation helpful? Give feedback.
@matteius Ad3. One of the idea of transaction API was to give a developer as many flexibility as possible. One of this is a possibility to support different flow of handling payment. The old payment API only supports the flow "processing payment then order". The transactions API, allows you to build flow: "processing payment(s) then order" or "order then processing payment(s)" or "processing partial payment then order then processing partial payment".
Here you can find some charts: https://docs.saleor.io/docs/3.x/developer/checkout#case-creating-order-before-processing-payment, and https://docs.saleor.io/docs/3.x/developer/checkout#case-processing-payment-before-creating-an-order
Checkout…