Test card numbers

To test your payment forms, you will obviously need a proper set of card data. There’s no need for you to use your own card for that. Although no money will be processed with a test account, you will most likely want to perform tests that simulate certain situations, for example different brands of credit cards. Here’s a table with a set of test credit card numbers that can be used for simulations.

You can also trigger a transaction error (for testing purposes) by entering an error code as transaction amount.

Common sale tests
Number Vendor Notes/purpose
4111111111111111 Visa Sale successful.
4200000000000000 Visa Sale successful.
5500000000000004 MasterCard Sale successful.
370000000000002 American Express Sale successful.
586824160825533338 Maestro International Sale successful.

3-D Secure tests
Number Vendor Notes/purpose
4012001036275556 Visa Unable to verify card enrollment (enrollment check error 720)
4012001038488884 Visa Unable to verify card enrollment (enrollment check error 720)
4012001036298889 Visa Unable to verify card enrollment (enrollment check error 720)
4012001038443335 Visa 3-D Secure Enrollment testing – card not enrolled in 3-D Secure
4012001036853337 Visa Card enrolled, verification failed (sale error 703)
4012001036983332 Visa Card enrolled, verification failed (sale error 703)
4012001037490006 Visa Card enrolled, verification failed (sale error 703)
4012001037167778 Visa Card not eligible for 3-D Secure, sale successful
4012001037461114 Visa Card enrolled, authentication failure (sale error 704)
4012001037484447 Visa Card enrolled, authentication not available (sale error 725)

AVS (Addres Verification System) tests
Number Vendor Notes/purpose
4055018123456780 Visa AVS result “X” (exact match)
4055019123456788 Visa AVS result “Y” (exact match)
4055010123456787 Visa AVS result “A” (ZIP mismatch)
4055017123456782 Visa AVS result “W” (street mismatch)
4055020123456786 Visa AVS result “Z” (street mismatch)
4055013123456781 Visa AVS result “N” (ZIP and street mismatch)
4055011123456785 Visa AVS result “E” (logical error/AVS not supported)
4055012123456783 Visa AVS result “G” (logical error/AVS not supported)
4055015123456786 Visa AVS result “S” (logical error/AVS not supported)
4055016123456784 Visa AVS result “U” (logical error/AVS not supported)
4055014123456789 Visa AVS result “R” (technical error/issuer not available)