This PR deprecates the existing form on the checkout confirmation screen and replaces it with a proper Symfony form that allows for multiple payment gateways. It will check which form has been submitted and process accordingly. This is because there is probably a view override that relies on the old form being in use, so removing it entirely would break BC.
To test, amend the view override for resources/view/checkout/stage-2-confirm.html.twig to match the changes made here. Then to set multiple gateways, simply give an array of values to the gateway option in payment.yml e.g. gateway: [stripe, local-payment]
This PR deprecates the existing form on the checkout confirmation screen and replaces it with a proper Symfony form that allows for multiple payment gateways. It will check which form has been submitted and process accordingly. This is because there is probably a view override that relies on the old form being in use, so removing it entirely would break BC.
To test, amend the view override for
resources/view/checkout/stage-2-confirm.html.twig
to match the changes made here. Then to set multiple gateways, simply give an array of values to thegateway
option inpayment.yml
e.g.gateway: [stripe, local-payment]