Get Ready for the Future! Download the State of Checkout 2025 White Paper Today
Platform

Product & Solutions

Learn more about the only open payments platform built for global commerce

Pricing

Solutions

Open Payments Connectivity
Payment Token Ownership & Portability
Intelligent Payment Optimization
Fraud Prevention & Authentication
Operational Agility & Simplicity
Centralized Management & Reporting

Platform Pillars

Connect

The unified orchestration layer for wallets and alternative payments

Vault

The secure repository for all your payment methods

Optimize

Workflow-driven payments intelligence for smarter routing and higher auth rates

Protect

A flexible fraud and authentication layer. Instantly add advanced fraud tools and 3DS

Agentic

One integration to sell inside ChatGPT, Gemini, and every agentic platform

Composer

The visual workflow builder that ties fraud, identity, and payment routing together in one place

View How Spreedly

Connects to your favorite payment methods
Optimizes your revenue
Protects your data
Reduces fraud
View the Demo
Resources

The Open Payments Library

Take a look at all of our resources and get the information you need to grow your business

View all Resources

Featured resources

The State of Checkout 2026
The Tokenization Decision Guide
Own the Tokens, Own the Agentic Commerce Customer

Introducing Composer: Fraud and Payment Orchestration on One Canvas

Read More
Company

Support Portal

Spreedly Support
Trust Center
Platform Status

Developer Portal

Developer Guides
Documentation
Parter Integrations

Partners & Integrations

Integrations Ecosystem
Our Partners

Latest Partner News

Paysafe Unveils Strategic Partnership with Spreedly

Featured Partner

PayPal
Product & Solutions

Product & Solutions

Learn more about the only open payments platform built for global commerce

Pricing

Solutions

Open Payments Connectivity
Payment Token Ownership & Portability
Intelligent Payment Optimization
Fraud Prevention & Authentication
Operational Agility & Simplicity
Centralized Management & Reporting

Platform Pillars

Connect

The unified orchestration layer for wallets and alternative payments

Vault

The secure repository for all your payment methods

Optimize

Workflow-driven payments intelligence for smarter routing and higher auth rates

Protect

A flexible fraud and authentication layer. Instantly add advanced fraud tools and 3DS

Agentic

One integration to sell inside ChatGPT, Gemini, and every agentic platform

Composer

The visual workflow builder that ties fraud, identity, and payment routing together in one place

View How Spreedly

Connects to your favorite payment methods
Optimizes your revenue
Protects your data
Reduces fraud
View the Demo
Pricing
Resources

The Open Payments Library

Take a look at all of our resources and get the information you need to grow your business

View all Resources

Featured resources

The State of Checkout 2026
The Tokenization Decision Guide
Own the Tokens, Own the Agentic Commerce Customer

Introducing Composer: Fraud and Payment Orchestration on One Canvas

Read More
Developers

Support Portal

Spreedly Support
Trust Center
Platform Status

Developer Portal

Developer Guides
Documentation
Integrations

Partners & Integrations

Integrations Ecosystem
Our Partners

Latest Partner News

Paysafe Unveils Strategic Partnership with Spreedly

Featured Partner

PayPal
Company

Company

About
Leadership
Careers
Contact Us
News
Pricing
Log In
See a Demo
Log In
See a Demo

Product & Solutions

Learn more about the only open payments platform built for global commerce

Pricing

Solutions

Open Payments Connectivity
Payment Token Ownership & Portability
Intelligent Payment Optimization
Fraud Prevention & Authentication
Operational Agility & Simplicity
Centralized Management & Reporting

Platform Pillars

Connect

The unified orchestration layer for wallets and alternative payments

Vault

The secure repository for all your payment methods

Optimize

Workflow-driven payments intelligence for smarter routing and higher auth rates

Protect

A flexible fraud and authentication layer. Instantly add advanced fraud tools and 3DS

Agentic

One integration to sell inside ChatGPT, Gemini, and every agentic platform

Composer

The visual workflow builder that ties fraud, identity, and payment routing together in one place

View How Spreedly

Connects to your favorite payment methods
Optimizes your revenue
Protects your data
Reduces fraud
View the Demo
Platform

Product & Solutions

Learn more about the only open payments platform built for global commerce

Pricing

Solutions

Open Payments Connectivity
Payment Token Ownership & Portability
Intelligent Payment Optimization
Fraud Prevention & Authentication
Operational Agility & Simplicity
Centralized Management & Reporting

Platform Pillars

Connect

The unified orchestration layer for wallets and alternative payments

Vault

The secure repository for all your payment methods

Optimize

Workflow-driven payments intelligence for smarter routing and higher auth rates

Protect

A flexible fraud and authentication layer. Instantly add advanced fraud tools and 3DS

Agentic

One integration to sell inside ChatGPT, Gemini, and every agentic platform

Composer

The visual workflow builder that ties fraud, identity, and payment routing together in one place

View How Spreedly

Connects to your favorite payment methods
Optimizes your revenue
Protects your data
Reduces fraud
View the Demo
Use Cases
Resources

The Open Payments Library

Take a look at all of our resources and get the information you need to grow your business

View all Resources

Featured resources

The State of Checkout 2026
The Tokenization Decision Guide
Own the Tokens, Own the Agentic Commerce Customer

Introducing Composer: Fraud and Payment Orchestration on One Canvas

Read More
Company

Support Portal

Spreedly Support
Trust Center
Platform Status

Developer Portal

Developer Guides
Documentation
Blog
Platform

Product & Solutions

Learn more about the only open payments platform built for global commerce

Pricing

Solutions

Open Payments Connectivity
Payment Token Ownership & Portability
Intelligent Payment Optimization
Fraud Prevention & Authentication
Operational Agility & Simplicity
Centralized Management & Reporting

Platform Pillars

Connect

The unified orchestration layer for wallets and alternative payments

Vault

The secure repository for all your payment methods

Optimize

Workflow-driven payments intelligence for smarter routing and higher auth rates

Protect

A flexible fraud and authentication layer. Instantly add advanced fraud tools and 3DS

Agentic

One integration to sell inside ChatGPT, Gemini, and every agentic platform

Composer

The visual workflow builder that ties fraud, identity, and payment routing together in one place

View How Spreedly

Connects to your favorite payment methods
Optimizes your revenue
Protects your data
Reduces fraud
View the Demo
Use Cases
Resources

The Open Payments Library

Take a look at all of our resources and get the information you need to grow your business

View all Resources

Featured resources

The State of Checkout 2026
The Tokenization Decision Guide
Own the Tokens, Own the Agentic Commerce Customer

Introducing Composer: Fraud and Payment Orchestration on One Canvas

Read More
Company

Support Portal

Spreedly Support
Trust Center
Platform Status

Developer Portal

Developer Guides
Documentation
Blog
Log In
See Demo

Product & Solutions

Learn more about the only open payments platform built for global commerce

Pricing

Solutions

Open Payments Connectivity
Payment Token Ownership & Portability
Intelligent Payment Optimization
Fraud Prevention & Authentication
Operational Agility & Simplicity
Centralized Management & Reporting

Platform Pillars

Connect

The unified orchestration layer for wallets and alternative payments

Vault

The secure repository for all your payment methods

Optimize

Workflow-driven payments intelligence for smarter routing and higher auth rates

Protect

A flexible fraud and authentication layer. Instantly add advanced fraud tools and 3DS

Agentic

One integration to sell inside ChatGPT, Gemini, and every agentic platform

Composer

The visual workflow builder that ties fraud, identity, and payment routing together in one place

View How Spreedly

Connects to your favorite payment methods
Optimizes your revenue
Protects your data
Reduces fraud
View the Demo
Back to Blog
Back to News

Transaction Routing

November 17, 2026

What Happens to a Payment when your Primary Gateway Says No?

When your primary gateway goes down or soft declines a payment, a backup gateway can still save the sale.

Written by

Donna Miller

Watch a failed payment recover on a backup gateway

In this article

Share

Related products

No items found.

Lorem Ipsum Dolor Sit

Vel sed vitae enim nec suspendisse ut viverra tincidunt quis

Learn More

Subscribe to our blog

Get practical, actionable insights written by experts from the world of digital payment solutions delivered to your Inbox.

Sometimes, a payment that will fail on one gateway will go smoothly on another one. Maybe your main gateway is malfunctioning, or maybe that particular payment was declined on one gateway and wouldn’t have been rejected by another gateway.

In any case, that sale warrants another shot, right? It’s entirely possible that where you work, a retry is coded manually and can’t easily be changed.

Composer is Spreedly’s answer to that problem, giving your payments team the ability to make changes when it’s needed. Let’s take a look at the problems that come with just having a single gateway, and how Spreedly helps you solve it.

When the gateway says no

If you run almost all your volume through one gateway, an outage turns into a scramble. Someone has to spot it, open a ticket, and change the config to send traffic somewhere else. Until that happens, every checkout fails. Cold, harsh reality.

Then you’ve got soft declines. You’ll see a payment gets declined on one gateway when another one would have approved it, but you don’t have anything in place to make sure it gets approved. Some teams have built retry logic to catch these, but for the most part, it’s custom code that only a couple of engineers know how to change.

Know why homegrown retry breaks

One thing we all know about retry logic is that it can get stale faster than supermarket bread left on a counter. Every gateway words its decline codes differently, and those codes change over time.

So you end up with a hard-coded retry table that falls behind, and every new backup gateway has to wait for a release. A backup plan that lives in code is out of date the day it ships.

Retrying the wrong decline also costs you money. Visa forbids reattempts when the issuer will never approve, and it caps the rest under its resubmission rules. Mastercard charges fees on retries after certain merchant advice codes. To retry safely, you need a current map of which codes are retryable on which gateway.

No gateway can see past its own decline. The one that said no can't tell you another gateway would have approved the payment, and it has no way to move your traffic there.

Put failover on the canvas

In Composer, failover is a step on the canvas, and your payments team controls it. Each payment follows the same path:

  1. Composer sends the payment to your primary gateway.
  2. If that gateway is unreachable, Composer retries on a backup. Spreedly only retries after an outage when it knows the payment never reached the first gateway, so your customer isn't charged twice.
  3. If the gateway returns a soft decline, Spreedly checks the response against its error code mapping. A retryable code sends the payment to the backup, and a hard decline ends the attempt.
  4. If the first backup fails, the payment can try a second one. That gives you a primary plus up to two backups.

Your payments team picks the backup gateways, sets their order, and decides which declines get retried. They change those rules in the canvas without a deploy, and the backup can be any gateway on Spreedly's network of 150+ integrations.

Spreedly keeps the map of retryable codes current for 30+ primary gateways. If Spreedly hasn't mapped a code, the payment is treated as a hard decline and isn't retried.

Engineering only has to do setup once: gateway credentials, the Composer server SDK, and tokenization. After that, the payments team owns the rules.

Watch a failed payment recover

In the video below, a payment fails on the primary gateway and gets retried on a backup. The customer's checkout just shows "payment successful."

Reliable gateways still go down, and this is the plan for the day yours does. If you want help working out your own backup plan, talk to us. Failover is one of the steps you can build in Composer, next to your fraud and routing rules.

Support Portal

Spreedly Support
Trust Center
Platform Status

Developer Portal

Developer Guides
Documentation
Read more
Written By
Will a customer be charged twice if a payment is retried?

No. After an outage, Spreedly only retries when it knows the payment never reached the first gateway.

Which declines get retried on a backup gateway?

Soft declines with codes Spreedly's error code mapping marks as retryable. Spreedly keeps that mapping current for 30+ primary gateways. Hard declines and codes Spreedly hasn't mapped are not retried.

Do we need a code deploy to change backup gateways?

No. Engineering sets up gateway credentials, the Composer server SDK and tokenization once. After that, the payments team picks the backup gateways (a primary plus up to two backups), sets their order and decides which declines get retried in the canvas.

Download Free
Get My Report
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Learn More
Download Free
Get My Report
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Written by

Donna Miller

Donna Miller is a Senior Product Manager at Spreedly, where she focuses on building capabilities that make complex payment operations easier to understand and manage. Her work centers on marketplace payments, intelligent routing, and helping organizations gain clearer insight into how payments move, perform, and evolve.At Spreedly, Donna works across product and platform teams to turn payment complexity into practical, scalable solutions that support performance and adaptability across changing payment environments. She has contributed to initiatives that help teams better understand core payment mechanics, including routing strategy, transaction behavior, and foundational payment identifiers such as BINs.Donna writes about payment operations, routing strategy, and the practical building blocks of modern payment systems, with a focus on making complex payment topics clear, usable, and actionable for teams operating at scale.

Lorem Ipsum Dolor Sit

Vel sed vitae enim nec suspendisse ut viverra tincidunt quis

Learn More

Related Articles

Add a New Market without Rewriting your Routing

Transaction Routing

Donna Miller

November 19, 2026

Analysis of Payment Transactions in Australian Currency

Transaction Routing

Shoresh Shafei

March 10, 2019

Credit Card Data Portability - Does anyone really care?

Transaction Routing

Justin Benson

May 29, 2013

Back to Blog

Get Regular Updates From Payments Experts

Subscribe to our newsletter and we’ll send you a monthly update of all of our new content so you don’t miss out on new data, new insights, and news from the world of payments. 

Insights and updates you actually care about

Get practical, actionable insights written by experts from the world of digital payment solutions delivered to your Inbox.

By subscribing, you agree to our Privacy Policy and Terms.

Find Us On

Company
  • Pricing
  • About
  • Careers
  • Contact Us
  • Partners
Resources
  • Support
  • Blog
  • Guides
  • News
  • Webinars
  • Trust Center
Developers
  • Developer Guides
  • Documentation
  • See Demo
  • Status

Find Us On

Privacy SettingsTermsPrivacyStatus
© 2026 Spreedly, Inc. All rights reserved.