Gateway Select

This outputs a dropdown select list of all gateways that the customer can selct to checkout with. You can edit the list of selectable gateways by going to CartThrob Settings > Payments, and selecting available gateways there. Your default gateway will always be in this list, even if it is not selected. If you use this tag, you must also make sure to select the setting that allows the customer to select a gateway during checkout

Table of Contents

Parameters

name

Set the form input name, i.e. gateway. if not set, defaults to "gateway"

name="gateway""
selected

The selected gateway.

selected="{gateway}"
add_blank

Adds a blank "--" value to the dropdown.

add_blank="yes"
gateways

Sets specific selectable gateways. This will not override gateways that have been selected in the backend. Only gateways that have been selected to display in CartThrob's payment settings will be recognized when set in this parameter.

gateways="authorize_net|paypal_pro"
extra

Any extra tag data you'd like to add.

extra="rel="my_attr" title="my title" "
id

CSS id of your form. This is an arbitrary value.

id=""
class

CSS class of your form. This is an arbitrary value.

class=""
onchange

Optional javascript function to run when the select changes.

onchange="your_custom_javascript()"

Examples

{exp:cartthrob:gateway_select name="gateway" selected="{gateway}"}