Every payments team has a gateway it suspects would approve more payments, and few have proved it. Payment gateway A/B testing stalls before the first transaction because the traffic split lives in backend code, so every test waits on a sprint. This post shows how to move that split into a rule your payments team sets, ramps, and ends the same day.
It's written for payments, optimization, and product leads running two or more gateways, or weighing a new one before committing volume. The gateway test video shows the whole flow in a few minutes.
Count how many tests you ran last year
Someone on the payments team notices that the second gateway seems to approve more cross-border cards. It's a hunch worth checking. Checking it means sending 10% of traffic to that gateway for a few weeks and comparing the results.
So the test becomes a ticket, the ticket waits for a sprint, and the sprint already has priorities. By the time the split ships, the quarter is half gone. Changing the percentage is another release. So is ending the test.
Multiply that by every idea on the list. The hunches survive. The tests don't. Volume ends up committed to a provider on instinct, because proving it was too slow to bother.
Find what stalls every test
A split in code caps how many tests you run. Setup takes a sprint, so a test is weeks from its first transaction. A losing arm keeps taking traffic until someone ships a change to stop it.
Each gateway sees only its own traffic. Gateway A's reporting doesn't show Gateway B's results, and the two rarely count things the same way. The comparison is the whole point of the test, and it usually gets stitched together by hand.
Rollback risk makes everyone cautious. If backing out of a bad test needs a release, nobody wants to be the one who started it.
If a test takes a sprint to start, you run one a year.
Set the split in the canvas instead of the code
In Composer, the traffic split is a step on the canvas. A test runs in four moves.
- Add the gateways you want to compare. Each one is a gateway credential already connected to Spreedly.
- Set the split. An A/B Test step divides traffic by percentage, such as 90/10 or 70/30, and assigns each transaction at random. Add a condition to scope the test, for example to one country, and everything else routes as usual.
- Publish. The split goes live on the next transaction, with no deploy.
- Ramp or end it. Change the percentages and publish again. Set a losing arm to 0% and the test is over the same day.
Both arms run through one workflow, so your team compares two gateways handling the same traffic at the same time. Composer doesn't pick a winner. Your team reads the results and decides where the volume goes.
The split works across the 150+ gateways on Spreedly's network, so a test isn't limited to one provider's ecosystem. Test or live is set per step by the gateway token, which means a new arm can run against a sandbox gateway before it sees real payments.
Engineering does the setup once. They add the gateway credentials and connect the Composer server SDK and your tokenization method. Cards are vaulted first, and Composer works with the token. After that, the payments team runs tests on its own, with no ticket.
Watch a gateway test run in the canvas
Bring three questions to your next payments review. How many tests did your team run last year? How long does it take to go from idea to the first test transaction? What would you test if setup took an afternoon?
Talk to us about your next gateway test, or see how Composer works. And see it in action below!
Does Composer pick the winning gateway?
No. The A/B Test step splits traffic by the percentages you set. Your team reviews the results and decides where volume goes.
Do we need a code deploy to change or end a test?
No. Once engineering adds the gateway credentials and connects the Composer server SDK and tokenization, the payments team changes the percentages in the canvas and publishes.
Can we limit a test to one market?
Yes. Scope the A/B Test step with a condition, such as country. Traffic outside the condition routes the way it does today.










