Solution skill
Adyen: Invalid card number (error 101)
Complete solution
Fixes Adyen error 101 Invalid card number on /payments calls. Covers sanitizing the input, checking digit length against the card brand, running a Luhn check before sending, and switching to Adyen's secured card component with client-side encryption instead of custom card forms. Not for error 102 (unknown BIN) or genuine issuer declines.
Adyen: Invalid card number (error 101)
TL;DR: The card number failed basic validation: wrong length, non-numeric characters, or a failed Luhn check. Strip spaces, confirm it is all digits, and re-collect it through Adyen's secured card component instead of hand-rolled inputs.
101 - Invalid card numberSteps
Sanitize the input. Remove spaces and dashes, then confirm the result is digits only. A single stray character is enough to trigger 101.
- Success check: the cleaned value matches the digits the shopper typed.
Check the length against the brand. Most brands are 16 digits, Amex is 15. Anything outside the brand's valid lengths fails.
- Success check: digit count matches the detected brand.
Run a Luhn check client-side. It catches typos before the number ever reaches Adyen.
- Success check: the number passes Luhn before you call /payments.
Use the secured card component. Adyen's Card component and client-side encryption handle formatting, brand detection and encryption for you. Raw card numbers posted by custom forms are the main source of 101s.
- Success check: the payment request carries encrypted card data and 101 stops appearing.
When to use this
- /payments returns 101 on card payments.
- Shoppers report "card declined" but your logs show 101, which is a validation failure, not a decline.
When NOT to use this
- Error 102 (unable to determine variant). That means the BIN is unknown, not that the number is malformed.
- A real decline (resultCode Refused). That is the issuer saying no, not a formatting problem.
Compatibility
Adyen Checkout API card payments, Web Drop-in/Components and API-only integrations.
Why it happens
101 is Adyen telling you the number itself is malformed: typo, pasted with spaces, truncated by a maxlength on your input, or a test card number used in the wrong environment. It can also surface from 3DS flows when PaRes comes back with wrong capitalization.
Edge cases
- Test card numbers only work in TEST. Using one against LIVE gives confusing failures.
- If your own input masks the number (maxlength 16), Amex cards (15 digits) still work but 19-digit cards get truncated. Prefer the Adyen component.
Evidence
Adyen's official error-code reference lists error 101 as Invalid card number, caused by an incorrect card number or length, and notes the related 3DS quirk where incorrect capitalization of PaRes produces the same code. The documented family around it (102 unable to determine variant for a bad BIN, 103 CVC length problems, 153 invalid CVC) confirms 101 is specifically about the number failing validation before any issuer is contacted. Source: https://docs.adyen.com/development-resources/error-codes/
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_o26vVfWulfRvoDggpHHeVQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Adyen: Invalid card number (error 101) <span>— Vectle</span></a>