Routing Rules

Define how payments are routed to providers based on conditions

Active Rules

Rules are evaluated in priority order (lower number = higher priority)

PriorityNameConditionProviderActions
1USD Defaultcurrency == "USD"Stripe
2TRY Fallbackcurrency == "TRY"iyzico
1EUR Defaultcurrency == "EUR"Adyen
99Global FallbacktrueStripe

Condition Variables

  • currency – Payment currency (USD, EUR, TRY, ...)
  • country – Customer country code (US, TR, DE, ...)
  • amount – Payment amount in smallest currency unit
  • provider_available – Boolean indicating provider health

Smart Routing

Enable smart routing to automatically select the provider with lowest cost or highest success rate.