When a card payment is declined, the issuing bank returns a two-character response code (ISO 8583 field 39). Payment gateways often translate it into text such as "Do Not Honor" or "insufficient_funds". The code tells you who must act: the customer, the merchant, or nobody until later.
Look up any code in the decline code lookup. To reproduce declines in a sandbox, use test cards.
Soft vs hard declines
- Soft decline: a temporary problem (issuer unavailable, limit, needs authentication). A retry later, or after 3-D Secure, may succeed.
- Hard decline: the card or transaction will not be approved (lost, stolen, closed, invalid number). Do not retry the same card. Card schemes can charge fees for excessive retries of hard declines.
The most common codes
| Code | Meaning | Type | What to do |
|---|---|---|---|
| 05 | Do Not Honor | Soft / unclear | Generic refusal from the issuer. Ask the customer to contact the bank or use another card. |
| 51 | Insufficient funds | Soft | Customer needs funds or another card. Retry later is allowed within scheme rules. |
| 54 | Expired card | Hard | Ask for updated card details; check the expiry date sent. |
| 55 | Incorrect PIN | Soft | Customer re-enters the PIN. |
| 57 | Transaction not permitted to cardholder | Hard | The card does not allow this type of purchase (for example, online, foreign or a blocked MCC). |
| 58 | Transaction not permitted to terminal | Hard (merchant side) | Merchant/terminal setup problem: check the MID, MCC or transaction type with the acquirer. |
| 59 | Suspected fraud | Hard | Do not retry. The customer should confirm the payment with the bank. |
| 61 | Exceeds withdrawal amount limit | Soft | Lower amount, or the customer raises the limit. |
| 62 | Restricted card | Hard | Region or usage restriction. Use another card. |
| 65 | Exceeds frequency limit (in Europe often "SCA required") | Soft | Retry with 3-D Secure authentication. |
| 91 | Issuer or switch unavailable | Soft | Technical; retry after a short delay. |
| 93 | Transaction cannot be completed, violation of law | Hard | Legal or compliance block. Do not retry. |
| 14 | Invalid card number | Hard | Check the PAN; validate it with the Luhn check before sending. |
| 41 / 43 | Lost / stolen card | Hard | Never retry. Treat the attempt as a fraud signal. |
Code 05 "Do Not Honor": why it is so common
05 is the issuer's catch-all. Banks use it when they do not want to give the real reason: fraud rules, unusual country, blocked merchant category, or a card that is not enabled for online payments. From the merchant side you usually cannot tell which. Good practice:
- show the customer a neutral message ("Your bank declined the payment, please contact it or try another card");
- offer 3-D Secure if the first attempt was without it;
- do not retry the same card many times in a row.
57 vs 58: cardholder or terminal?
Both mean "not permitted", but on different sides. 57 is about the card: the issuer does not allow this kind of transaction for this cardholder. 58 is about the merchant: the acquirer or terminal is not set up for it, for example a wrong MCC, a currency that is not enabled, or a MOTO transaction on an e-commerce MID. If you see many 58s, check your merchant configuration, not the customers.
Gateway names vs ISO codes
Gateways map ISO codes to their own names. For example, Stripe returns do_not_honor, insufficient_funds, card_velocity_exceeded, transaction_not_allowed or fraudulent. The lookup tool covers both ISO codes and common gateway names such as do_not_honor and insufficient_funds.
Retry rules in short
- Never retry hard declines (lost, stolen, invalid number, fraud, violation of law).
- Spread soft-decline retries over time instead of firing them immediately.
- Visa and Mastercard limit how often a declined card may be retried and can charge fees above those limits. Mastercard also returns Merchant Advice Codes that say whether a retry is allowed. Check your acquirer's current rules.
Testing declines
Sandbox environments trigger declines with special card numbers or amounts. For example, Stripe's 4000 0000 0000 9995 returns insufficient funds, and Braintree declines amounts between 2000.00 and 2999.99 with a processor code equal to the amount. See the test card numbers guide.
FAQ
Can the merchant see the real reason behind 05?
Usually not. Only the issuer knows; the customer can ask the bank.
Is a decline the same as a chargeback?
No. A decline happens before the payment is approved. A chargeback is a dispute after a successful payment; see chargeback reason codes.