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.
| Retry | Customer action Only the cardholder's bank can clear it. Ask for another card or a call to the bank. |
|---|---|
| Why | For 57, only the issuer can enable the transaction type. For 58, the fix is a configuration change on your side. |
| Hard or soft | Hard. 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_code | transaction_not_allowed |
Flint last_payment_error.code | card_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.
| Code | Name | Meaning | When a retry can work |
|---|---|---|---|
57 | Transaction not permitted to cardholder | The card isn't allowed to make this kind of purchase, such as online or international. | Never on this card. Visa category 1. |
58 | Transaction not allowed at terminal | The 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
| Stripe | Adyen | Braintree | Square | Flint |
|---|---|---|---|---|
transaction_not_allowed | Transaction Not Permitted | 2015 Transaction Not Allowed | CARD_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
- Check your banking app for settings that block online or international purchases, and turn them on.
- Call your bank if you can't find the setting.
- Use a different card or payment method to pay now.
If you're the merchant
- 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.
- 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.