Decline code 14 means invalid card number: the card number the issuer or processor received does not exist or failed a check. Most often it is a typo or a wrong card type, not a bank refusal. In NMI the nearest values are response codes 220 (Incorrect payment information), 221 (No such card issuer) and 222 (No card number on file with issuer).
Code 14 is a standard issuer-style value, but wording and exact numbers vary by processor and card network, so check your processor’s code list. NMI returns its own three-digit response_code, and there is no guaranteed one-to-one mapping from 14. See credit card decline codes explained and the NMI response code lookup.
What it means
Every card number has a structure: a leading digit range that identifies the network, a length, and a final check digit calculated from the others. A number that fails that check, or that has never been issued, cannot be processed. Some failures are caught before the bank sees them; others come back from the issuer as 14.
That makes this decline different from the rest. A 14 is rarely the customer’s bank saying no. It is the system saying it does not recognize the card.
Why it happens
- A typo. One digit wrong, or two swapped, is the most common cause.
- Spaces, dashes or letters pasted in. Hosted fields normally handle this, so it points to a custom field.
- The wrong number. The customer typed an account number, a gift card or a loyalty card number.
- A test card on a live account. Test numbers fail or are rejected in live mode. This is a store setup problem.
- A closed or never-activated account. The number is real but not on file with the issuer, which is the 222 case.
- Card testing. A run of random numbers failing is a fraud pattern, not typos. See card not present fraud patterns.
What to do
- Read the order notes and confirm the response code. If it is a 3xx or 4xx gateway code or the text says a required field is missing, it is not a number problem.
- Look at the pattern. One failure on one order is a typo. Many failures across different numbers in a short time is card testing.
- For a single failure, ask the customer to retype the number slowly and check the leading digits match the card brand.
- If they pasted the number, ask them to type it by hand.
- If every customer fails, check you are not in sandbox with live cards or live with test cards. The test cards and sandbox scenarios page lists what belongs where.
A message you can send:
We could not read that card number. Please check each digit against your card and try again. If it still fails, try a different card or contact your bank.
Decision rule: typo or attack
- One order, one or two failures, then success: typo. No action.
- Several different numbers from one IP or session within minutes: card testing. Block the session and review your fraud controls.
- Every customer fails, including your own card: configuration. Check mode and keys.
- Only one brand fails: the merchant account may not accept that brand, which is a processor setting.
When to stop and who to call
Do not retry a number that failed as invalid more than once or twice without a change. Repeated attempts with invalid numbers also look like card testing to the networks. Call your gateway provider if a number that you know is real keeps failing, or if one card brand always fails, and ask them to check the merchant account and enabled card types. See gateway, processor and merchant account for who handles what. For the exact fields in the response, see response, responsetext and response_code, and for a full triage use the card was declined diagnosis order. The related expiry case is in decline code 54.
How NMIWP helps
NMIWP uses Collect.js hosted fields, so the number is entered in NMI iframes and never reaches your WordPress server, and the free version writes the gateway response to the order notes. Sandbox mode has a visible banner and separate credentials, which helps avoid the test-card-on-live mistake. It cannot fix a number that does not exist.
Quick answers
Is decline code 14 a bank refusal?
Usually not. It means the number is not valid, so there is nothing for the bank to approve.
Which NMI code is invalid card number?
There is no code named that in the NMI table. The closest are 220, 221 and 222, and a badly formed number can return a gateway error instead.
Can a valid card give code 14?
Yes, if the number was mistyped to another valid-looking number, or if you are in the wrong mode.
What is a card number typo rate?
There is no useful figure to quote. Watch your own logs for spikes.
More in this series: Refer to Card Issuer (Code 01, 02, NMI 240): What It Means | Mastercard Decline Codes and Merchant Advice Codes Explained | Visa Decline Codes Explained for Online Merchants
Last reviewed November 2026.