Multiple gateway configuration
Configure multiple payment gateways in Recurly to support diverse currencies, card types, and payment methods — with gateway hierarchy, default settings, and failover.
Prerequisites
- An active Recurly account.
- Access to the gateway providers you want to connect.
- An understanding of your business's transaction routing needs.
Limitations
- By default, transactions route to the first gateway added that supports the transaction's currency and card type — unless custom routing or default settings are configured.
- The gateway hierarchy must be correctly understood and configured to ensure transactions process as intended.
Definition
Key benefits
Key details
Gateway support
Recurly supports multiple gateway configurations to cover a range of currencies, card types, and payment methods — including credit cards, external gateway tokens, Amazon Pay, PayPal, Apple Pay, ACH, and more.
Gateway hierarchy
When multiple gateways are configured, Recurly routes transactions to the first gateway on the list that supports the transaction's card type and currency. Beyond this default, Recurly applies the following routing hierarchy:
- Transactions with a gateway token (e.g., Vantiv tokens, Braintree tokens)
- Transactions referencing a
gateway_code(Custom Gateway Routing) - Non-credit card transactions (PayPal, Amazon Pay, Adyen HPP, etc.)
- The default gateway for credit card transactions
- The non-default credit card gateway, prioritizing the one added earliest
Custom gateway routing
For precise control over which gateway handles a transaction, use Recurly's Custom Gateway Routing.
Default gateway
You can set a default gateway for credit card transactions. The default gateway takes precedence when it's compatible with the transaction's card type and currency and no specific gateway_code has been assigned via Custom Gateway Routing.
Gateway failover
Gateway Failover automatically reroutes transactions to a secondary gateway if the primary becomes unavailable. When the primary gateway recovers, Recurly resumes routing new transactions to it.
Setting up multiple gateways
Add a gateway
Set a default gateway
Enable gateway failover
Updated 7 days ago