Mollie total is incorrect when order price changes on ArrangingPayment #3269
Labels
P3: minor
Non-critical, no workarounds exist
status: research needed 🔍
More in-depth research need to make a decision+
type: bug 🐛
Something isn't working
Describe the bug
We have a product bundle plugin, that adds bundle items to the order on transitioning to ArrangingPayment. This in turn triggers a promotion which changes the price.
Mollie currently works like this:
transitionToArrangingPayment
if that succeeds, it discards the result and creates a payment intent. The order is still inAddingItems
This last step changed the order total, because promotions were added. The customer now paid to much for the order.
Need your thoughts
Is it valid to change the order price when changing the order to ArrangingPayment, or is this not a case we should support?
Proposed solution
If we should support this use case, we could transition the order to ArrangingPayment on
createMolliePaymentIntent()
, instead of doing a dry run.When a customer cancels a payment, or clicks back in the browser, the order will be in ArrangingPayment state, and the storefront will have to handle this state.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: