Route transactions across multiple gateways using Spreedly Composer with conditional routing rules

domain: developer.spreedly.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create a Spreedly environment and add each target payment gateway via the Dashboard or API, supplying merchant account credentials for each; the Spreedly token becomes your universal payment method identifier.
  2. Tokenize the customer's card using Spreedly's payment form or API so that the card data is stored in the Spreedly vault and never touches your servers.
  3. Open Composer (the Spreedly low-code workflow builder) and create a new workflow; add routing rules using standard dimensions such as currency, card brand, issuing country, or transaction amount to direct transactions to specific gateways.
  4. For percentage-based split routing, configure split-volume rules distributing traffic between two gateways (for example, 70% to gateway A, 30% to gateway B) to A/B test authorization rates or manage provider relationships.
  5. Submit transactions through the Composer API endpoint with the Spreedly payment method token; Composer evaluates the rules and forwards the transaction to the matched gateway automatically.
  6. Monitor normalized response fields in the Spreedly transaction response to compare gateway performance across your routing rules; use the Spreedly Dashboard reporting for visibility.

Known gotchas

Related routes

Configure multi-gateway payment orchestration with Gr4vy routing rules and smart failover
gr4vy.com · 6 steps · unrated
Configure PSP failover routing in Spreedly to automatically reroute declined transactions to a backup gateway
docs.spreedly.com · 6 steps · unrated
Implement least-cost debit routing for card-not-present transactions under Regulation II's network non-exclusivity rule
payments-compliance · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans