Credit Card Decline Codes: Which Layer You're Reading and What to Do
Credit card decline codes come from four layers: the issuer, the card network, the processor and the gateway. Learn to tell them apart and what to do for each common code.

A credit card decline code is the short code that comes back with a failed card payment to say why it failed. Most lists treat every code the same way: a number, a meaning, a line of advice. That skips the step that decides whether the advice is right. The code in front of you came from one of four layers, and a code read as if it came from the wrong layer can send you the wrong way.
So read a decline in two steps. First, work out which layer the code comes from. Then act: retry later, set the card aside, or prove what happened before you charge again. This guide covers both, with the action FloPay's own renewal handling takes for each common code.
If you're working through a single failed payment right now, Payment Was Declined: Immediate Steps to Fix It walks through the diagnosis.
The four layers a decline code comes from
A card payment passes through several hands before the cardholder's bank answers, and each one can put its own code on a failure.
- The issuer's response code. The bank that issued the card approves or declines, and the card network carries a raw code back, such as
05or51. Stripe calls this the network decline code and warns that its meaning "differs based on the card network", so read it with the card's brand in mind (Stripe, Card declines). - The network's advice code. Alongside the decline, the network can send advice on what to do next. Mastercard calls these Merchant Advice Codes. Stripe passes the raw value on as
network_advice_code, and gives its own next step inadvice_code:do_not_try_again,try_again_laterorconfirm_card_data. - The processor's label. Your processor translates the raw code into its own words. Stripe's decline codes, such as
insufficient_funds,expired_cardorgeneric_decline, are labels of this kind, and Stripe publishes them as a separate list from the raw network codes (Stripe decline codes). - The gateway or technical error. Sometimes no bank decision reaches you at all. A timeout, a connection failure or a gateway error fails the payment, and the code describes the plumbing, not the card.
The layers even sit in different fields of the same error. In FloPay's SDK, as in Stripe's, code holds the error, such as card_declined, and declineCode holds the reason, such as insufficient_funds (error handling docs).

One decline, four possible codes. Know which one you're holding before you act on it.
Each layer tells you something different. The issuer's code says what the bank decided. The advice code says whether the network wants you to try again. The processor's label is a translation, and often a lossy one: Stripe notes that issuers categorize most declines as generic, so generic_decline hides the detail. A gateway error says nothing about the card at all. Why one generic code can hide so much is covered in Do Not Honor Meaning for Merchants.
How to tell which code you're holding
A few quick checks sort out most cases:
- A short code like
05,51,1AorN7is a raw network response code from the issuer. Look it up in the card brand's own table, not a generic list. - A word like
insufficient_fundsorgeneric_declineis a processor's label. Each processor keeps its own list. Stripe, Worldpay, Adyen and the others all publish one, and this guide doesn't try to cover each of them. - A value like
try_again_later, or a Mastercard MAC, is advice. It tells you whether another attempt is welcome, not why the bank said no. - No code, or an error about a timeout or the connection, may mean no bank decision exists yet. Treat the payment as unknown until you've checked with the provider.
Visa and Mastercard decline codes don't always agree
The same number can mean different things on different networks. Stripe's network decline codes page lists each brand's codes, and three examples from it show why the brand matters:
- 65 on Visa means the card has exceeded its withdrawal frequency limit. On Mastercard it means the withdrawal count limit was exceeded, or it's an Identity Check soft decline asking for EMV 3DS authentication.
- 51 means insufficient funds on Visa and Mastercard. Discover lists it simply as "Decline".
- 79 on Mastercard depends on the advice code next to it: an expired card with updated card data available (MAC 01), invalid credentials you can retry later (MAC 02), or account credentials not found, so don't retry (MAC 03).
Visa has codes of its own as well: 1A means additional customer authentication is required, N7 is a decline for a CVV2 failure, and 5C means the transaction isn't supported or is blocked by the issuer. The rule is simple: never read a raw code without the card brand beside it, and when an advice code arrives with it, let the advice decide whether you try again.
What FloPay shows you for a decline
Every attempt carries two codes side by side: FloPay's own decline reason, declineReason, which is one of 19 values such as INSUFFICIENT_FUNDS or DO_NOT_HONOUR, and the provider's code.
| Where you look | FloPay's reason | The provider's code |
|---|---|---|
| A checkout attempt, in the API and the dashboard | declineReason | gatewayDeclineReason |
| A renewal invoice's attempts | declineReason | gatewayErrorCode, for example Worldpay ISO 5 or Stripe card_declined |
The invoice.payment_failed webhook | Not in the payload: read the invoice with its attempts | Not in the payload |
| The checkout SDK | A provider-neutral decline | Never shown to the buyer |
The dashboard shows both codes on each attempt and groups declines by currency, reason and provider, the same split our authorization rate guide recommends before you change anything. When FloPay tries another gateway after a decline, the new attempt points back to the declined one, and the payment timeline marks it Cascade. No field carries the network's advice code on its own.
Build your logic on FloPay's reason, and keep the raw code for your team. Our Worldpay connector guide puts it plainly: never show a raw provider reason to the buyer. The webhook payloads are in the events reference.
Common credit card decline codes and what to do
The table covers the codes merchants ask about most. Meanings are Visa's, from Stripe's network decline codes page, unless the row says otherwise. The last column is what FloPay does when the code comes back on a subscription renewal.
FloPay decides from the evidence behind a code, not the label alone. A generic refusal is usually worth another try later, but the same refusal with evidence that the card was lost is not.
| Code | What it means | What to do | What FloPay does on a renewal |
|---|---|---|---|
| 05 | Don't honor | Retry later. If it keeps failing, the customer asks their bank or uses another card | Retry later inside the billing cycle. With failover on, FloPay may try the same card on another eligible gateway first. |
| 06 | Error | Retry later | Retry later |
| 51 | Not sufficient funds | Retry later, not straight away | Retry later |
| 14 | Invalid account number | Ask for the correct card details | Set the card aside |
| 41, 43 | Lost card, stolen card | Ask for another card, and show the customer a generic decline, not the reason | Set the card aside |
| 54 | Expired card | Ask for the new card | Set the card aside |
| 57 | Transaction not permitted to cardholder | Ask for another card | Set the card aside |
| 62 | Restricted card | Ask for another card | Not retried later on that gateway. With failover on, another eligible gateway may still be tried. |
| 65 (Mastercard), 1A (Visa) | The bank wants the customer to authenticate | Bring the customer back to pay and authenticate | Never retried with no customer present: the renewal goes into recovery so the customer can pay and authenticate |
| No code: a timeout or technical error | No bank decision you can see | Don't charge again until you know | Prove what happened: check with the provider before charging again |
A few notes on reading it:
- Code 05 is the one you'll see most. Do Not Honor is the most frequent decline we see across our merchants. We don't publish its share, or a ranked top five, because the mix varies too much by country, market and business type. Code 05 has its own guide: Do Not Honor Meaning for Merchants.
- Retries have limits. Card networks limit how many times you can retry one charge, and Stripe recommends a maximum of eight retries for charges that permit them (Stripe, Card declines). When FloPay's retries run and how many it allows is in our payment retries guide.
- Set aside means that card, not the customer. A card set aside stays out of the recovery campaign while the customer's other saved methods are tried. Lost, stolen and expired cards are the cases where a card on file needs replacing, not retrying.
- Authentication is its own problem. Why authentication fails, and who fixes it, is in 3D Secure Authentication Failed.
- A timeout is not a decline. Charging again blind can charge the customer twice. Our recurring billing software guide covers what to test for.
All of this is written down. The rules are in our subscriptions guide and, for Worldpay's codes, in the Worldpay connector guide.
When another gateway can help, and when it can't
A merchant with one processor has two moves after a decline: wait and retry, or ask for another card. A merchant with two processors has a third: send the card to the other one. With failover turned on, FloPay can try a declined new card on the merchant's other processor, Stripe to Worldpay or back, before the buyer sees the refusal. For a returning customer, it tries the preferred saved card across the eligible gateways before it moves on to an older card. Failover is set per gateway, and a new gateway starts with it off (routing and reliability).
A second gateway still reaches the same bank, though. FloPay keeps a decline on the gateway that took it when another gateway would reach the same bank and get the same answer, or would risk charging twice:
- A new card in checkout stays put for card details the buyer must fix, failed authentication, insufficient funds, card limits, card-wide refusals such as a lost, stolen or expired card, and any pending or uncertain outcome.
- A saved card stops on every gateway after a 3DS challenge, failed authentication, or a card-wide decline, such as a lost or stolen card.
- A timeout is never replayed or sent elsewhere until FloPay has proved the first charge didn't go through.

Another gateway helps when the route may be the problem. It doesn't help when the card or the bank is.
What's left is mostly the generic refusal, where a different merchant account or acquirer might get a different answer. Do Not Honor Meaning covers how cascade routing treats it. A saved card can only move between gateways if it's stored outside any one processor, and what a credit card vault is explains why. To see the walk before a real decline does, the stage card form has a test outcome, Declines then succeeds on fallback, described in the stage testing guide.
When the code isn't on any list
Sometimes a code arrives that no mapping covers yet. A code FloPay can't map is recorded as UNKNOWN_DECLINE_REASON, with the provider's raw code kept beside it, and it raises an alert so we add the mapping. In a saved-card checkout an unknown reason moves on to the customer's next card instead of stopping.
That's how Worldpay's codes 93 and 192 got mapped in November. They had been stored as unknown, and they now count as do-not-honor, as do 63, 78 and 83.
If your own system maps codes, build the same habit. Keep the raw code next to your label, count the unknowns, and treat a growing unknown bucket as a mapping to fix, not a kind of decline.
The short version
- Find the layer first: the issuer's code, the network's advice, the processor's label, or a gateway error.
- Read a raw code with the card brand beside it, because the same number can mean different things.
- Let an advice code decide whether you try again.
- Retry later on insufficient funds and generic refusals. Set the card aside when it's lost, stolen, expired or invalid. Prove what happened after a timeout.
- Send a decline to another gateway only when the route, not the card, may be the problem.
- Keep the raw code beside your own label, and map unknown codes as they turn up.