mothership-ec / cog-mothership-ecommerce

Mothership E-Commerce
Other
2 stars 1 forks source link

Multiple payment gateways #259

Closed thomasjthomasj closed 9 years ago

thomasjthomasj commented 9 years ago

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]