NMI response code 225 means “Invalid card security code”, and it belongs to the 220 to 226 group that NMI uses for incorrect payment information. These are data problems, not bank refusals: the card number, expiry, security code or PIN did not check out, so the customer can usually fix it in seconds.
What the 220 to 226 codes mean
The official wording from NMI’s result code table is:
- 220, Incorrect payment information.
- 221, No such card issuer.
- 222, No card number on file with issuer.
- 223, Expired card.
- 224, Invalid expiration date.
- 225, Invalid card security code.
- 226, Invalid PIN.
Unlike the 201 to 204 family covered in the issuer decline guide, these point at what the customer typed. The complete table is in the NMI gateway response codes guide.
How they relate to issuer codes
NMI returns the 2xx value. The processor text may include an issuer or network value. Two pairs usually line up: 223 Expired card with issuer 54, and 225 Invalid card security code with a CVV failure. Elsewhere the mapping depends on the processor, and wording varies, so check your processor’s code list.
Why each one happens
- 224 Invalid expiration date. A typo, a wrong month and year order, or a date in the past. Most common on manual entry.
- 223 Expired card. The date was well formed but the card has expired. See expired card declines.
- 225 Invalid card security code. Wrong CVV, or the 4-digit code on a 3-digit card field. See CVV2 failures.
- 220 Incorrect payment information. A catch-all for data that does not match. Often a mistyped number or a mismatched field set.
- 221 and 222. The number does not belong to a known issuer, or no such account exists. Usually a wrong number. See invalid card number.
- 226 Invalid PIN. Rare online. It is more relevant with PIN-based debit flows.
What to do
- Read the order note for the response code and text. Make sure it is 220 to 226 and not 300, which is a gateway rejection.
- Show a message that names the field, not a generic decline.
- Let the customer re-enter without rebuilding the cart.
- If the same customer fails three times, offer another card rather than another attempt.
- If 225 or 224 spike across many customers at once, suspect your own checkout: a card field that is covered, mis-sized or failing to pass values.
A spike across a short window with many different numbers can also be card testing by a bot. That is a velocity problem, not a customer typo.
Ready-to-use customer messages
The security code did not match. Please check the 3 or 4 digits on your card and try again.
The expiry date looks wrong or the card has expired. Please check it or use another card.
Do not say “declined”. It makes the customer think the bank refused, so they give up instead of fixing a typo.
When to stop and when to escalate
Stop after a few attempts on the same card. Escalate to your gateway provider if 220 to 226 appear on cards you know are correct, which points at a field mapping problem between your checkout and the gateway. Escalate to the bank only if the customer insists the data is right and the issuer is the one rejecting it.
How NMIWP helps
NMI for WooCommerce uses Collect.js hosted card fields in the free plugin, so card data goes straight to NMI and not through WordPress, and it writes the raw response code, AVS and CVV results into the order note. That makes it quick to see whether a failure was a 225 or a bank decline. It cannot correct what a shopper types. To see how the fields differ, read the response and responsetext fields, or use the NMI response code lookup.
Quick answers
What does NMI response code 225 mean?
Invalid card security code: the CVV was wrong or missing for that card.
What is the difference between 223 and 224?
223 is a card that has expired. 224 is an expiry value that is not valid, such as a typo.
Is 220 a bank decline?
It is reported as incorrect payment information, so treat it as a data problem first.
Can invalid expiration date NMI errors be a checkout bug?
Yes. If many customers hit it, check that the expiry field passes its value correctly.
Worked example: a 225 on a first-time order
A new customer enters their card and presses pay. The shopper sees an error that the payment failed. On the order you find an order note with response code 225 and the matching response text, plus a CVV result that is not a match. The card number and expiry were accepted, so only the security code is the problem.
Check whether the CVV result shows a match, no match or not processed. If it is a no match on one customer, it is a typo. Send this:
Hi, we could not take the payment for order 1234 because the security code did not match. It is the 3 digits on the back of most cards, or the 4 digits on the front of an American Express card. Please try again at checkout and the cart will still be there.
Mistakes to avoid with 220 to 226 codes
- Calling the payment declined. These are data problems, so name the field.
- Forcing the customer to rebuild the cart for a typo.
- Assuming 223 and 224 are the same. One is an expired card, the other an invalid value.
- Ignoring a sudden burst across many customers. That points to your checkout or a bot.
- Turning off the security code requirement to reduce failures. That removes a useful check.
Running NMI on WooCommerce? Free covers the basics and Pro adds the paid features. Compare Free and Pro.
More in this series: NMI Processor Response Codes vs Gateway Response Codes | NMI Response Codes 400 to 461: Processor Errors and Merchant Setup Problems
Last reviewed November 2026.