Test Credit Card Entry Forms

When testing payment forms, never use real credit card numbers on test systems. PCI DSS explicitly prohibits this. Instead, use the designated test card numbers published by payment gateways and card brands.

Common test cards

BrandTest NumberNotes
Visa4444 3333 2222 1111Corporate card (GB), widely accepted
Visa4111 1111 1111 1111Consumer card, universal test number
Mastercard5555 5555 5555 4444Credit (GB)
Mastercard2222 4000 1000 0008Credit (CA)

These cards pass the Luhn check (mod-10 checksum) and are recognized by most payment gateways as test cards. They typically do not have a valid CVC or expiration date in production systems — use any future date and any 3-digit CVC.

Gateway-specific notes

  • Adyen — Publishes an extensive list of test cards by region and card type.
  • Worldpay — Lists 4444333322221111 as a “Restricted card Visa” for testing.
  • Stripe, PayPal, CyberSource — Each maintains their own test card registry; consult the gateway documentation.

PCI compliance reminder

Using real PANs on test systems violates PCI DSS and can trigger audit findings. Always use officially designated test numbers. If a real card number is accidentally entered into a test environment, treat it as a potential data breach and follow incident-response procedures.

Related: pci-compliance-attestation (AOC and compliance), xss-attacks (form security testing).

Sources

See also