Skip to content
EN
Book a demo

HomeProducts

Payment Cascading Configured in One Layer, Not per PSP

Payment cascading means a payment that one provider can't complete is tried again on another provider, inside the same payment flow. From your side there is one payment and one result.

On this page

The seam matters here. If cascading is built in your own code, you make a second call, track two attempts and decide which one counts. If it runs in the layer, your system sends one request and reads one answer.

01Payment cascading: where it sits in the layer

Sample case: an online merchant sends a EUR 85.00 card payment, and the first provider returns a soft decline. All figures are sample data.

Your side sends The layer does The provider receives
One payment request Routes it to the first provider by your rules The payment
Nothing Reads the soft decline and finds the next provider in the cascade A second attempt, shaped for that provider
Nothing Maps the final reply to one status A completed or declined payment
A webhook or response read Delivers the final status Nothing further

Your code never sees the first attempt as a separate payment.

02What it replaces

Payment retry logic written per provider is hard to get right, because it has to be correct about money, time and state at once.

Retry code in your services

In a direct setup your services decide when to retry, how many times and on which provider. They also have to avoid charging a customer twice. With a layer, that decision is configuration, and cascading payments keep the state of the flow inside the layer.

Different decline vocabularies

Providers use different status codes for what is, in practice, the same situation, and some of those codes are inconsistent. The layer reads them and decides whether a payment is worth another try, so your code reads one status instead of keeping a translation table for every provider.

A separate failover plan per provider

The same rules cover timeouts and provider outages. Failover on soft declines, timeouts, outages and inconsistent status codes is one rule set rather than one plan per provider, and nobody has to wire a new fallback each time you add a route.

03Moving it over

Cascading is safest to move after routing is settled, because the cascade starts from the route you picked. Don't move both on the same day.

  1. 01 First, list the declines you retry today

    Write down which declines your code retries now, on which provider, and how often. This shows which cases you want in the cascade and which you want to stop.

  2. 02 Then, set the order of providers

    For each route, decide which provider comes second and which comes third. Keep the order short, because every extra hop adds waiting time for the customer. Ask in the documentation which decline types the layer treats as worth retrying, and don't assume the list.

  3. 03 Then, remove the retry from your code

    Take your own retry out of the flow only once the sandbox shows the cascade doing the same job. Two layers of retry on one payment is the usual source of double attempts, and it's the first thing to check when a customer reports two charges.

  4. 04 Last, watch the reports

    Compare declines before and after the move for a week. The reports show where a cascade saved a payment and where it only delayed a failure, and you can drop the second kind from the order.

04Data on the way through

From your request to its final status, your side tracks one payment, even if it used more than one provider on the way. Logs record every API call, and the analytics show approval rates, declines and latency by route.

Stored cards stay as tokens in the vault, so your systems don't handle the card number when a second provider is tried. A payment that fails on every provider ends with a final decline that you can trace.

05Questions for your engineers

Answer these before you turn a cascade on.

  • Which declines do we retry today, and which should stay final?
  • Does our customer ever see a delay, and how long do we accept?
  • What does our own code do if the layer is still working on a payment?
  • Which provider is second in line for each route?
  • How will our reports separate a first-try success from a recovered payment?
  • How do we stop two retry layers from stacking?
  • Who gets alerted when the whole cascade fails?

The fourth question matters most in a market where only one local provider supports a given payment method, because the cascade then has nowhere to go and your code needs a plan for that case.

06FAQ

What is payment cascading?

A payment that fails in a way another provider might still complete is retried on that provider. The retry happens inside the same payment flow, so you handle one payment and one result.

Is cascading the same as failover?

Cascading and failover overlap. Cascading is the ordered retry across providers inside one flow. Failover is the same move triggered by timeouts and provider outages as well as soft declines.

Does cascading change my checkout?

No. The checkout sends one request and receives one status.

Which failures are retried?

Soft declines, timeouts, provider outages and inconsistent status codes. Which exact codes count is something to confirm in the API documentation.

Next step

Take retry logic out of your code

Tell us which providers you retry across today and how your code decides. We'll show how the same order looks as a cascade. Contact us.

Book a demo

Map your integrations onto one API

We look at the providers you run today and what moving them behind one API would take.