If you sell in more than one region, or juggle a few merchant IDs across legal entities, there’s a good chance that you have routing logic buried somewhere in your backend that only one or two engineers really understand.
We’re going to walk through moving that gateway map into Composer, where each region is just a branch your payments team can change, and show you how to get it done from start to finish. Let’s go!
How does regional routing work?
A merchant selling in three regions often runs three sets of gateway credentials. Stripe handles the US, Adyen handles Europe, and dLocal handles LATAM, just as a few examples.
The logic that picks a credential for each payment sits in backend code. A country check here, a currency check there, and a lookup table that was written long enough ago that it doesn’t really matter anymore.
Some teams also run several merchant IDs (MIDs) on one gateway, often one per legal entity or region. Every MID is another branch in the code, and another thing to maintain.
You’re taking too long to make the changes you need
Routing in code puts every new market on the engineering roadmap. A LATAM launch waits for a sprint, a code review, and a release.
The payments team  is the one that ends up footing the bill. They can’t try a different gateway in a region without a deploy, so a weak route stays in place until engineering has time to change it.
Each regional provider is integrated on its own terms and tied together only in code. Gateways also name the same data differently, so every new provider adds mapping work before the first payment runs.
Routing that works today becomes a blocker the day the business changes. Your routing is only as flexible as your next release.
Changing regional routing with Composer in minutes
Composer moves the gateway map out of backend code and into a visual workflow. Each region becomes a branch in one simple workflow. Here’s what you can do:
- Branch on business rules. Split traffic by country, currency, or other conditions you pass with the transaction. Advanced Vault customers can also branch on BIN metadata such as card brand and issuing country.
- Map each branch to a credential. Assign a gateway token to the branch, for example "Stripe US" or "Stripe EU." Multiple MIDs on one gateway become separate credentials on separate branches.
- Change the mapping in the canvas. Swap a credential or add a branch for a new market, then publish. No deploy.
Test or live is set per step by the gateway token. A workflow can run against a sandbox gateway first, then switch to the live credential once each branch routes where it should.
Composer works across the 150+ gateways on Spreedly's network. Normalized request and response fields are available for a subset of gateways on request, which cuts the per-gateway mapping work where they apply.
Free up your engineers’ time to get real work done
Engineering installs the Composer server SDK, sets up a tokenization method such as Spreedly Checkout or the JavaScript API, and adds each gateway credential. The application then passes the payment method token and transaction details to the workflow.
After that, routing changes belong to the payments team. Adding a market is a new branch, not a ticket in the backlog, and your engineering team starts taking you out for dinner now and then to thank you for freeing up so much of their time. Well, hopefully, anyway.
Take a look at Composer in action
Three questions to bring to your next planning session:
- How many gateways and regions do you manage today?
- What does it take to add a market or change a credential?
- Do you run multiple MIDs on one gateway?
Check out the video below to see one workflow sending payments from the US, Europe, and LATAM to the right gateway credential, then changing the mapping without a deploy.
Does Composer support multiple MIDs on one gateway?
Yes. Each MID is set up as its own gateway credential, and each credential can sit on its own branch. You can split traffic across MIDs by country, currency, legal entity, or any other condition you pass with the transaction.
Do we need a code deploy to add a new market?
No. Once engineering connects the Composer server SDK and your gateway credentials, the payments team adds a branch for the new market in the canvas, maps it to a credential, and publishes the workflow.
How do we test a new regional route before it goes live?
The gateway token on each step decides whether a transaction is test or live. Point a new branch at a sandbox gateway, run test transactions through it, and switch to the live credential once the branch routes correctly.









