Author End-to-End Tests in Natural Language with KaneAI
Plan, Author, and Evolve E2E Tests for Web and Mobile Apps in Natural Language.
Adyen Test Cards: Every Number, 3DS2 Card and Decline Trigger, Plus an Automated Test Matrix
Adyen test cards for every checkout outcome: card numbers by brand, 3DS2 challenge cards, holder-name refusal triggers and how to automate the checks.
Adyen test cards are card numbers that will only work on the Adyen test environment. The majority of them expire 03/2030 and have CVC 737 (American Express has 7373). 4111 1111 1111 1111 is a standard Visa payment; 4212 3456 7891 0006 is a 3D Secure 2 challenge (password: password) and holder names such as DECLINED will cause a specific decline.
That one paragraph covers the majority of the checkout tests. The rest of the guide is then the numbers by brand, the 3D Secure 2 cards, the full set of refusal triggers, the six-outcome test matrix and two ways you can automate it (an API level script and a KaneAI test which runs in a real browser).
TL;DR
Adyen test cards are published card numbers that work only on Adyen's test platform and never move real money. They exist so a tester can trigger each checkout outcome on purpose: most expire 03/2030 with CVC 737 (7373 for American Express), and holder-name values such as DECLINED force a specific refusal.
Adyen Test Cards by Outcome
- Authorised payment: Visa 4111 1111 1111 1111 with expiry 03/2030, CVC 737 and the holder name APPROVED returns the
resultCodeAuthorised on Adyen's test platform. Works on live payments: No. - Generic decline: Mastercard 5555 5555 5555 4444 with the holder name DECLINED returns Refused with the refusal reason Refused, so the checkout should keep the cart and show an inline error.
- Specific refusal reason: Holder-name triggers such as NOT_ENOUGH_BALANCE, CARD_EXPIRED and CVC_DECLINED return Refused with the matching
refusalReason, and Adyen's result codes table lists 46 trigger values. - 3D Secure 2 challenge: Visa 4212 3456 7891 0006 opens a challenge that accepts the password "password" on web and 1234 in a native app, and any other value fails authentication. Advanced flow only: Yes.
- Unsupported card: Visa 4017 3400 0000 0003 (issuer country RU) always returns error 907 because Adyen does not process transactions in Russia.
Adyen Test Setup Rules
- American Express security code: Adyen's Amex test card 3700 0000 0000 002 uses the four-digit CVC 7373, not 737. Same CVC as other brands: No.
- Dynamic 3D Secure: Adyen's default rule "Prefer Not" can skip authentication in the test environment, so set the rule to Always or send
authenticationData.attemptAuthenticationto force the challenge. Challenge guaranteed by default: No. - KaneAI: KaneAI by TestMu AI runs the Six-Outcome Adyen Matrix from plain-English steps, with card data as parameters and one Dataset row per outcome. Code required: No.
What Are Adyen Test Cards?
Adyen test cards are published card numbers which Adyen's test platform will accept and which never involve any real money. They are published on Adyen's test card numbers page, and they adhere to the following three rules:
- Expiry: the majority of the cards expire 03/2030. There are a few exceptions as per card (e.g., one Mastercard expires 12/2029).
- Security code: 737 for most brands, 7373 for American Express. Some cards will have the code marked as optional.
- Environment: the cards only work on the Adyen test platform. If RevenueProtect is on, then Adyen will allow you to add the test card and shopper details to a trust list so that your risk rules don't block your tests.
Card tests are just one part of ecommerce testing. They prove that for every possible payment outcome that the gateway you use can return, you get the correct screen, message and order state in your store.
Adyen also has the Adyen Test Cards extension available in the Chrome Web Store (published by 'adyendev'). It copies the card details and pre-fills the Adyen Web Drop-in with a selected card, gift card or IBAN (version 0.0.4, last updated 10th January 2025). Useful for manual checks, of course, but of no assistance at all in a scheduled regression run.
Which Adyen Test Card Numbers Should You Use for Each Brand?
Use one consumer card per brand that you accept. The table below is a very short list taken from Adyen's test card numbers page. All cards use expiry 03/2030 unless otherwise stated.
| Brand | Card number | Security code | Issuer country | Note |
|---|---|---|---|---|
| Visa (consumer) | 4111 1111 1111 1111 | 737 | NL | Standard Visa test |
| Visa (debit) | 4400 0000 0000 0008 | 737 | US | US debit card |
| Visa (corporate) | 4444 3333 2222 1111 | 737 | GB | Corporate card |
| Mastercard (credit) | 5555 5555 5555 4444 | 737 | GB | Standard Mastercard test |
| Mastercard (2-series) | 2222 4000 7000 0005 | 737 | CA | Commercial debit, 2-series BIN |
| American Express | 3700 0000 0000 002 | 7373 | NL | Four-digit CID |
| Discover | 6011 6011 6011 6611 | 737 | US | |
| JCB | 3569 9900 1009 5841 | 737 | US | |
| Diners | 3600 6666 3333 44 | 737 | US | 14 digits |
| Maestro | 6771 7980 2100 0008 | 737 | US | 3D Secure is mandatory for online Maestro |
| Cartes Bancaires | 4360 0000 0100 0005 | 737 | FR | Also 3D Secure 2 enrolled, so a challenge can appear |
| China UnionPay | 6243 0300 0000 0001 | 737 | CN | Expires 12/2029; SMS code 123456 (mobile) or 111111 (desktop) |
One card is specifically built to fail: Visa 4017 3400 0000 0003 (issuer country RU) will always return error 907 "Payment details are not supported for this country/MCC combination" as Adyen doesn't process in Russia. Use it if you want to test how your checkout behaves when it gets an unsupported card error.
Note: Try it on your own checkout. KaneAI (the testing agent from TestMu AI) takes the rows of that table and turns them into a single natural language test which runs once per card. Start free with KaneAI and author your very first card test in plain English.
How Do You Test 3D Secure 2 With Adyen Test Cards?
Adyen's 3D Secure 2 testing page gives two cards for the two main flows, plus a password for the challenge screen:
| Scenario | Card | Expiry / CVC | What should happen |
|---|---|---|---|
Challenge (ChallengeShopper) | Visa 4212 3456 7891 0006 | 03/2030 / 737 | The shopper sees a challenge; enter password on web, 1234 in a native app |
| Failed challenge | Visa 4212 3456 7891 0006 | 03/2030 / 737 | Enter any value other than the password; authentication fails |
| Frictionless | Mastercard 5201 2815 0512 9736 | 03/2030 / 737 | No challenge UI; your integration must send a device fingerprint |
| Text challenge, no liability shift | Visa 4917 6100 0000 0000 | 03/2030 / 737 | Use NoLiabilityShift as the challenge text |
Three details trip testers up:
- Advanced flow only. Adyen states that the challenge and frictionless cards referenced above are for the Advanced flow only, not the Sessions flow. If you're using Sessions for your checkout, then you'll need to check the scenario list on that page before you jump to the conclusion that a card is broken.
- Dynamic 3D Secure may skip authentication. With the default rule "Prefer Not", 3D Secure might not run. To force it, set the rule to Always, send
authenticationData.attemptAuthentication, or use an amount that your rules treat as risky. - Other transStatus results. Adyen have test cards for Mastercard which return the relevant status directly: 5201 2812 6243 5268 returns N, 5201 2850 9382 3592 returns A, 5201 2828 2836 6351 returns U and 5201 2864 9681 6589 returns R.
How Do You Force a Decline or a Specific Refusal Reason in Adyen?
Adyen doesn't use special card numbers for the majority of declines. You simply send a trigger value in the payment request. According to Adyen's result codes page, you put that value in either paymentMethod.holderName or in additionalData.RequestedTestAcquirerResponseCode and then you check that the response has the matching resultCode and refusalReason.
In a Drop-in checkout, the holder name is the 'Name on card' field, so a tester can cause a refusal by just typing the value into the form.
| Outcome you want to test | holderName | RequestedTestAcquirerResponseCode | resultCode | refusalReason |
|---|---|---|---|---|
| Approved | APPROVED | 1 | Authorised | (none) |
| Generic decline | DECLINED | 2 | Refused | Refused |
| Referral | REFERRAL | 3 | Refused | Referral |
| Acquirer error | ERROR | 4 | Error | Acquirer Error |
| Blocked card | BLOCK_CARD | 5 | Refused | Blocked Card |
| Expired card | CARD_EXPIRED | 6 | Refused | Expired Card |
| Invalid amount | INVALID_AMOUNT | 7 | Refused | Invalid Amount |
| Issuer unavailable | ISSUER_UNAVAILABLE | 9 | Refused | Issuer Unavailable |
| 3D Secure not authenticated | NOT_3D_AUTHENTICATED | 11 | Refused | 3D Not Authenticated |
| Insufficient funds | NOT_ENOUGH_BALANCE | 12 | Refused | Not enough balance |
| Pending | PENDING | 13 | Received | (none) |
| Fraud | FRAUD | 20 | Refused | FRAUD |
| CVC declined | CVC_DECLINED | 24 | Refused | CVC Declined |
| Address check failed | AVS_DECLINED | 32 | Refused | AVS Declined |
Adyen's table has 46 values in total, up to ERPS_BLOCK (46). Two exceptions matter:
- Redirect methods ignore the holder name. Adyen points out that card-related methods which redirect to a simulator (e.g. Alipay) will ignore the cardholder name; you pick the result in the simulator.
- Modification failures use their own triggers. Per Adyen's payments and modifications testing page, a holder name of
capture failedproduces aCAPTURE_FAILEDwebhook after you capture, andrefund failedproduces aREFUND_FAILEDwebhook after you refund. Adyen says these simulated scenarios can take up to 24 hours. The same page suggests starting tests with an amount of 100, using 175 to test an authorization adjustment and an amount below 100 for partial captures and refunds.
What Other Adyen Test Credentials Are There?
Card numbers are only one part of Adyen's test data. Its test cards and credentials overview groups three sets:
- Test card numbers, covered above.
- Alternative payment method credentials (a separate list for non-card methods). Use that when your checkout has local payment methods in addition to cards.
- Your own test cards. In the Customer Area go to Settings > Test cards and select Add New Range or call the
/createTestCardRangesendpoint. Each range will need to consist of 6-19-digit numbers with a valid BIN in the first 6 digits, and test payments will still run the Luhn check. Adyen states that the feature will require extra configuration on their side, so you'll need to get in touch with Adyen Support to enable it.
Point of sale testing is outside the scope of this. Adyen's POS testing documentation includes the publication of separate physical test cards for its test terminals.
Which Adyen Test Card Should You Use for Which Checkout Test? (The Six-Outcome Adyen Matrix)
Most checkout bugs are going to be hiding in a very small number of outcomes. The Six-Outcome Adyen Matrix is the minimum set we'd recommend before you go and release anything that touches payment code. Each row is one test case.
| # | Outcome | Card | Holder name | Expected result in your store |
|---|---|---|---|---|
| 1 | Authorised | 4111 1111 1111 1111 | APPROVED | Order confirmation page, order marked paid |
| 2 | Generic decline | 5555 5555 5555 4444 | DECLINED | Inline error, cart kept, card fields editable |
| 3 | Specific decline | 5555 5555 5555 4444 | NOT_ENOUGH_BALANCE (or CARD_EXPIRED, CVC_DECLINED) | The message your UX team wrote for that reason, not a generic one |
| 4 | 3DS2 challenge passed | 4212 3456 7891 0006 | your test name | Challenge shown, password accepted, order confirmed |
| 5 | 3DS2 challenge failed | 4212 3456 7891 0006 | your test name | Challenge shown, wrong password, no order, clear retry path |
| 6 | Unsupported card | 4017 3400 0000 0003 | your test name | Error 907 handled without a blank screen |

Rows 4 and 5 are for the Advanced flow (see the 3D Secure 2 section). Add the frictionless card when your checkout sends a device fingerprint and add one row for each additional brand you accept. American Express is the most common one to get it wrong (it requires CVC 7373) so you'll need to keep the security code and expiry as data in every row rather than typing in 737 each time.
Checklist before you run the matrix
- The checkout points at Adyen's test environment (
checkout-test.adyen.com), not live. - RevenueProtect trust-list entries exist for your test cards if risk rules are on.
- You know whether your integration uses the Advanced or Sessions flow.
- Your 3D Secure rule will actually trigger authentication for rows 4 and 5.
- Each row has a written expected result for the store, not just for Adyen.
How Do You Test Adyen Payments at the API Level Before the UI Is Ready?
You can call /payments with test card data even before the client-side form exists. Simply prefix each card field with test_ (e.g. "encryptedCardNumber": "test_5555555555554444") as per the test card numbers page. The request, as shown in the Adyen Advanced flow guide, includes amount, reference, paymentMethod, returnUrl and merchantAccount and is sent to https://checkout-test.adyen.com/v72/payments with an x-api-key header.
The script below runs the card rows of the matrix (plus an Amex row with CVC 7373) against the test endpoint. It exits with code 1 if any of the outcomes differ from the expected resultCode/refusalReason and with code 2 if a credential is missing (so CI can tell the difference between a misconfigured job and a checkout regression).
The credentials are taken from the environment variables, and the card number, expiry, security code, holder name and amount are all data in each row. The amount is 100 (minor units) as the Adyen test page suggests you start with an amount of 100.
#!/usr/bin/env python3
"""Check Adyen test-card outcomes against the Checkout API (test environment only).
Exit codes: 0 = all outcomes matched, 1 = an outcome differed, 2 = configuration error.
"""
import json
import os
import sys
import urllib.error
import urllib.request
ENDPOINT = "https://checkout-test.adyen.com/v72/payments"
# Test data as parameters. Each row:
# (card number, expiry month, expiry year, security code, holder name, amount in minor units,
# expected resultCode, expected refusalReason or None)
CASES = [
("4111111111111111", "03", "2030", "737", "APPROVED", 100, "Authorised", None),
("370000000000002", "03", "2030", "7373", "APPROVED", 100, "Authorised", None),
("5555555555554444", "03", "2030", "737", "DECLINED", 100, "Refused", "Refused"),
("5555555555554444", "03", "2030", "737", "NOT_ENOUGH_BALANCE", 100, "Refused", "Not enough balance"),
("5555555555554444", "03", "2030", "737", "CVC_DECLINED", 100, "Refused", "CVC Declined"),
]
def require_env(name: str) -> str:
value = os.environ.get(name, "").strip()
if not value:
print(f"Config error: missing required environment variable {name}", file=sys.stderr)
sys.exit(2)
return value
def pay(api_key, merchant, card, month, year, cvc, holder, amount, ref):
body = {
"amount": {"currency": "EUR", "value": amount},
"reference": ref,
"paymentMethod": {
"type": "scheme",
"encryptedCardNumber": f"test_{card}",
"encryptedExpiryMonth": f"test_{month}",
"encryptedExpiryYear": f"test_{year}",
"encryptedSecurityCode": f"test_{cvc}",
"holderName": holder,
},
"returnUrl": "https://example.com/checkout/return",
"merchantAccount": merchant,
}
req = urllib.request.Request(
ENDPOINT,
data=json.dumps(body).encode(),
headers={"x-api-key": api_key, "content-type": "application/json"},
method="POST",
)
try:
with urllib.request.urlopen(req, timeout=30) as resp:
return json.load(resp)
except urllib.error.HTTPError as err:
return {"httpStatus": err.code, "body": err.read().decode(errors="replace")}
def main() -> int:
api_key = require_env("ADYEN_API_KEY")
merchant = require_env("ADYEN_MERCHANT_ACCOUNT")
failures = 0
for i, (card, month, year, cvc, holder, amount, want_code, want_reason) in enumerate(CASES, start=1):
result = pay(api_key, merchant, card, month, year, cvc, holder, amount,
ref=f"card-matrix-{i}-{holder}")
got_code = result.get("resultCode")
got_reason = result.get("refusalReason")
ok = got_code == want_code and (want_reason is None or got_reason == want_reason)
print(f"{'PASS' if ok else 'FAIL'} {card[-4:]} {holder}: resultCode={got_code} refusalReason={got_reason}")
if not ok:
failures += 1
if "action" in result:
print(" Response asked for an extra action (for example 3D Secure); check your 3DS rules.")
if "httpStatus" in result:
print(f" HTTP {result['httpStatus']}: {result['body'][:300]}")
return 1 if failures else 0
if __name__ == "__main__":
sys.exit(main())Run it with ADYEN_API_KEY=... ADYEN_MERCHANT_ACCOUNT=... python3 adyen_card_matrix.py. To prove the check can fail, you should see Authorised for the DECLINED row, and the script should print FAIL and exit with code 1.

It only looks at resultCode, refusalReason and the presence of action (the fields described in Adyen's result codes and Advanced flow pages). Adyen's Advanced flow example will also send riskData and checkoutAttemptId; your minimal request will omit those, so if your account's risk settings require them, then you'll need to add them in. If a row returns an action, then your 3D Secure rules will have required authentication.
The API check only proves Adyen's side of things. It doesn't show what your shopper actually sees (e.g. a missing error message, an empty cart after a decline, a 3D Secure modal that just won't close).
How Do You Automate Adyen Drop-in Checkout Tests With KaneAI?
KaneAI (from TestMu AI) runs the same matrix in a real browser, in plain English. The setup makes use of three of the documented KaneAI features: Parameters, Datasets and the Assert Network Logs command.
Step 1: Create the card data parameters. In the authoring input type /, select Create Parameter and add card_number, expiry, security_code, holder_name and expected_message with seed values from row 2 of the matrix. Reference them in the steps as ${card_number}.
Parameters are visible to everyone in your organization, so keep your passwords and tokens in KaneAI Secrets. Test card numbers are public data and can be used in parameters.
Step 2: Author the test in plain English.
Open the staging checkout with one item in the cart
Enter ${card_number} in the card number field
Enter ${expiry} in the expiry date field
Enter ${security_code} in the security code field
Enter ${holder_name} in the name on card field
Click Pay
Assert that ${expected_message} is shown on the page
Assert that the cart still shows one itemFor the Authorised row, amend the last two steps on the order confirmation page.
Step 3: Add a network check on your own payment endpoint. Type /, select Assert Network Logs, filter by status code or HTTP method, select the request that your frontend is making to your backend and then click Add Assertion on the response body keys. Assert on the response from your own backend as that's the request that the browser is making (the browser never actually makes a call to Adyen's /payments endpoint in a Drop-in integration). The docs state that network log assertions are currently only supported in desktop web authoring, so mobile checkout runs will have to rely on UI assertions.
Step 4: Turn the matrix into a Dataset. Every test that uses parameters gets a Default Dataset. One row per matrix outcome (card, expiry, security code, holder name, expected message) and the Amex row has 7373. When you create a test run in Test Manager and select the Dataset, KaneAI will create one test instance per row.
Check the iframe step first. Adyen's card fields are iframes according to their secured fields documentation, which states that all card input fields "are represented as iframe elements". The KaneAI 0.0.2 release notes do list support for iframe elements and Shadow DOM elements. Run one authoring session against your own checkout to confirm that KaneAI actually gets to the Adyen card number field and the 3D Secure 2 challenge before you go on to build the full Dataset.
Teams that have moved their regression checks over into KaneAI report faster runs. Snap One, for instance, is listed on the KaneAI page as having 50% faster test execution time.
Why Isn't My Adyen Test Card Working?
Most "broken" Adyen test cards come down to one of these causes:
| Symptom | Likely cause | Fix |
|---|---|---|
| Every test card is refused | The checkout points at the live environment | Use the test client key and checkout-test.adyen.com |
| Refused for risk reasons | RevenueProtect blocks repeated test cards | Add the card and shopper details to a trust list |
| Amex refused or CVC error | Three-digit code used | Amex test cards use 7373 |
| No 3D Secure challenge appears | Dynamic 3D Secure "Prefer Not" skipped it, or you use the Sessions flow | Set the rule to Always or send attemptAuthentication; check the flow |
| Error 907 | You used the RU Visa 4017 3400 0000 0003 | Expected: Adyen does not process Russia |
| Maestro refused online | Maestro online requires 3D Secure | Complete the 3D Secure step |
| Holder-name trigger ignored | Redirect payment method (for example, Alipay) | Choose the result in the redirect simulator |
Conclusion
Adyen test cards cover three areas: card numbers per brand, 3D Secure 2 cards with the password challenge and holder name values which will trigger any of Adyen's refusal reasons. Put the six outcomes of the matrix into one data-driven test, run your store against each and run it on every release that touches checkout code.
Run the Six-Outcome Adyen Matrix in a real browser. Try KaneAI free, author the decline test in plain English and then add the other five rows as a Dataset.
Testing web or mobile apps without writing code? KaneAI by TestMu AI turns plain-English instructions into tests.
Was this helpful?
Authors

Harshit Paul
Author · 102 posts
Harshit Paul is Director of Product Marketing at TestMu AI, with over 8 years of experience in product and growth marketing for developer and QA tools, leading the Agentic AI in Quality Engineering space. He has authored 80+ technical articles for TestMu AI on software testing and automation, and hosted webinars on Selenium, automation testing, browser compatibility, DevOps, and continuous testing. He has led go-to-market and technical marketing initiatives across software testing products, contributing to SEO, content strategy, and developer marketing. He began his career as a certified Salesforce developer at Wipro Technologies, where he worked for 2 years before moving into marketing. Harshit holds a degree in computer programming from Vivekananda Institute of Professional Studies.
Srinivasan Sekar
Reviewer
Srinivasan Sekar is Director of Engineering at TestMu AI, where he leads engineering and open-source initiatives behind the Selenium and Appium automation grid and owns TestMu AI's MCP Server. A committer to Appium and a contributor to Selenium, WebdriverIO, Taiko, and AppiumTestDistribution, he brings over 15 years of experience in quality engineering and open-source technologies. He is the author of the Apress book 'The MCP Standard: A Developer's Guide to Building Universal AI Tools with the Model Context Protocol,' a Certified Kubernetes and Cloud Native Associate, and an international conference speaker. Before TestMu AI he spent over eight years at Thoughtworks as a Principal Consultant and Quality Architect. Srinivasan holds a B.Tech in Information Technology from Anna University.
Adyen Test Cards FAQs
TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance
- Advanced access controls
- Advanced data retention rules
- Advanced Local Testing
- Premium Support options
- Early access to beta features
- Private Slack Channel
- Unlimited Manual Accessibility DevTools Tests



