Gateways
Outputs details about the available gateways.
Parameters
allow
- Optional. If you’d like to specify which gateways to output, enter their short names here. You can specify multiple gateways by pipe delimiting them. Also available as
gateways
orgateway
Variables
short_name
- The name of the gateway as used in your settings.
eg.PayPal_Express
label
- The properly formatted name of the gateway.
eg.PayPal_Express
becomesPayPal Express
value
- The value to use in your form field. This will be an encrypted identifier of the gateway.
Example
To enable a user to select a gateway, you should add a gateway
field to your checkout_form. Here, we’ll use this tag to output radio buttons.
{{ bison:checkout_form }}
Gateway:
{{ bison:gateways }}
<input type="radio" name="gateway" value="{{ value }}" />
{{ /bison:gateways }}
...
<input type="submit" value="Select" />
{{ /bison:checkout_form }}
You can also use it to output information about the available gateways wherever you need them. It doesn’t have to be in a checkout form.
<h3>Gateways we offer</h3>
<ul>
{{ bison:gateways }}
<li>{{ label }}</li>
{{ /bison:gateways }}
</ul>
Problem with this page? Edit it on Github.