Skip to content

Transaction not allowed: decline codes 57 and 58

Stripe returns transaction_not_allowed for two network responses that look alike but have different fixes. Code 57 means the card isn't allowed to make this kind of purchase. Code 58 means the merchant account or terminal isn't set up for it.
Verified against official documentationReviewed Send a correction (opens in a new tab)

What it means

Transaction not allowed means the payment type isn't permitted. With code 57, the cardholder's bank blocks it, such as online or international purchases on that card. With code 58, the block is on the merchant's side. A run of declines across many customers points to 58.

RetryCustomer action Only the cardholder's bank can clear it. Ask for another card or a call to the bank.
WhyFor 57, only the issuer can enable the transaction type. For 58, the fix is a configuration change on your side.
Hard or softHard. Visa category 1 for 57; Braintree 2015: hard.
Tell the buyer“Your card doesn't allow this type of purchase. Contact your bank, or use a different card.”
Stripe decline_codetransaction_not_allowed
Flint last_payment_error.codecard_declined

A run of 58s across many customers is a merchant configuration problem, not a customer problem. Don't email customers about it.

Network response codes

Card networks send a numeric response code with every decline. Processors translate it, so the same decline can reach you under several names.

CodeNameMeaningWhen a retry can work
57Transaction not permitted to cardholderThe card isn't allowed to make this kind of purchase, such as online or international.Never on this card. Visa category 1.
58Transaction not allowed at terminalThe merchant account or terminal isn't set up for this transaction type. A merchant setup problem.Only after the merchant setup is fixed. Visa category 4.

How each processor reports it

StripeAdyenBraintreeSquareFlint
transaction_not_allowedTransaction Not Permitted2015 Transaction Not AllowedCARD_NOT_SUPPORTED (closest match)card_declined

Square publishes no network code mapping, so its cell is the closest documented error code.

Why it happens

  • The cardholder turned off online, international, or card-not-present purchases in their banking app (57).
  • The merchant account or terminal isn't configured for this transaction type (58).

If your card was declined

  1. Check your banking app for settings that block online or international purchases, and turn them on.
  2. Call your bank if you can't find the setting.
  3. Use a different card or payment method to pay now.

If you're the merchant

  1. For a single customer, ask them to contact their bank or use another card. Don't retry the card: 57 is a hard decline in Visa category 1.
  2. For declines across many customers, check your merchant setup with your processor. Don't email customers about a problem on your side.

How Flint handles it

Flint reports both codes as last_payment_error.code card_declined, with a message the buyer can act on.

In Flint's hosted checkout, a decline never ends the session. The buyer sees the failure inline and can try another card on the same page, and the order keeps its balance due until a payment succeeds.

Test it

Stripe's test cards have no number that returns transaction_not_allowed. Use 4000 0000 0000 0002 in a Flint sandbox to rehearse the generic decline path, which reads card_declined, with any future expiry and any CVC.

Test card numbers lists every documented decline card for Flint, Stripe, Adyen, Braintree, PayPal, Square, Checkout.com, and Authorize.net.

Questions, answered

What does transaction_not_allowed mean?

The card, or the merchant setup, isn't permitted to run this type of transaction. Network 57 is a cardholder restriction, such as online purchases disabled; 58 is an acquirer or terminal restriction.

What does decline code 57 mean?

Transaction not permitted to cardholder: the card isn't allowed to make this kind of purchase, such as online or international. It's a hard decline in Visa category 1, so don't retry it.

What does decline code 58 mean?

Transaction not allowed at terminal: the merchant account or terminal isn't set up for this transaction type. It's a merchant setup problem, and a retry works only after the setup is fixed.

Sources

Meanings, retry rules, and processor names come from the networks' and processors' own docs, last checked November 17, 2026. Flint behavior comes from Flint's guides.