Card Test Data

Sandbox-only test cards for simulating payments in PCE.

Test cards you can use in the PCE Sandbox to safely simulate approvals, declines, and common payment scenarios.

Important: Use these numbers only in sandbox/test environments. Do not use real payment cards for testing. Follow your organization’s PCI and security guidelines.


Definitions

  • AVS (Address Verification Service): Validates the billing address (street/ZIP) against issuer records.
  • CVV / CVC: Verifies the accuracy of the card security code.
  • Issuer Response Codes: Numeric codes that indicate the result of a transaction.
  • Authorization Message: A human-readable message associated with the response code (e.g., “Do Not Honor”).
  • EMS/Fraud Score: Mastercard’s risk score and reason code derived from fraud screening.

General test cards

Test cards are fake card numbers used in development and testing to safely simulate payment transactions.

Why they matter

  • No real money involved — safe for testing.
  • Simulate approvals/declines, fraud, insufficient funds, expired cards, etc.
  • Validate behavior for AVS, and partial approvals.
  • Ensure proper error handling and user-friendly messages.
  • Avoid fraud, chargebacks, or compliance issues that arise from using real cards.
  • They’re essential for developers, testers, and QA teams working on payment integrations.

Use these in the PCE Sandbox. Expiry date and CVV rules may vary by gateway; follow the gateway’s test guide when a specific CVV/AVS is required.

Card numberBrandType
4242 4242 4242 4242VisaCredit
4012 8888 8888 1881VisaCredit
4000 0566 5566 5556VisaDebit
4123 4000 7332 0224VisaDebit
3782 822463 10005American ExpressCredit
3714 496353 98431American ExpressCredit
5200 8282 8282 8210MastercardCredit
2222 4000 6000 0007MastercardCredit (2-series BIN)
5555 5555 5555 4444MastercardDebit
5305 4847 4880 0098MastercardDebit
5572 4084 2218 9334MastercardPrepaid
6011 1111 1111 1117DiscoverCredit
6011 0009 9013 9424DiscoverCredit
3530 1113 3330 0000JCBCredit
3566 0020 2036 0505JCBCredit
3056 9309 0259 04Diners ClubCredit
3540 5019 9000 9456JCB / Diners ClubCredit (co-branded)

Usage tips

  • Scope: These values are for sandbox only; production gateways will reject most test PANs.
  • Scenarios: Pair with gateway-specific AVS/CVV values to trigger approvals, soft/hard declines, and error codes.
  • Logging: Capture request/response payloads to verify error handling and user messages.
  • Data hygiene: Do not store PANs in logs or screenshots outside approved secure tools.

Issuer response codes

Every payment response includes a responseCode (an integer) and an authMessage. To trigger a specific responseCode in the sandbox, use the brand-specific test cards on the pages below: each card is mapped to one issuer response code so you can exercise approvals, declines, and partial approvals deterministically.

For the full meaning of each code, see Payment Response Codes.



Did this page help you?
.readme-logo { display: none !important; }