- Issue created by @dev.tim
- Merge request !18Issue #3408643 by gooddev: Reset payment_method when changing payment_gateway. β (Open) created by Unnamed author
- last update
7 months ago Build Successful
Following szenario. I have a decoupled multi-step checkout. when selecting a payment_method which has payment_details which are saved on order->pament_method, i face a problem when i want to change payment_gateway to e.q. "manual", which has no payment_details. it automatically return again a payment_instrument with the active payment_method from the beginning.
set payment_instrument on order with a payment_gateway_id and payment_details (e.g. credit_card). after that, try to change to a payment_method, which has no payment_details (e.g. manual), you should then see no change on payment_instrument as a response.
Check if payment_gateway_id has changed, if yes, set payment_method on order to null.
apply patch
none
none
none
Active
Code