Includes
ecommerce/checkout_standard - Including Payment Gateways in a Form Layout
5min
This is used to output payment fields in a checkout form.
You should include this in the layout file for a checkout form at the position in the layout where you would expect the card payment elements to appear.
This will output the Payment Gateway that you most recently updated in Siteglide Admin.
This will output the Payment Gateway with the ID you select. When outputting by ID, you should select which is the default option.
Once you've added multiple Payment Gateways to your form using the include above, you can add JavaScript to switch between them on the client side:
Updated 29 Jan 2024
Did this page help you?