Card Test Mode
Master the art of card testing with our Card Test Mode solution, designed for precise and reliable results.
A dummy card number is a fake card number built to match the format of a real Visa, Mastercard, Amex, or Discover card. It passes basic validation, including the Luhn checksum, so a payment form accepts it as valid input. It has no bank behind it, no balance, and no cardholder. Payment gateways publish these numbers for sandbox testing.
The string quoted most often is 4242 4242 4242 4242. That number shows up in payment tutorials because Stripe, PayPal, and other processors accept it in test mode.
Test numbers copy the shape of a real card, digit for digit. The first digits signal the network, and the last digit acts as a checksum.
Three things set them apart: no issuer, no funds, and no link to a person. A real card number maps to a bank account, and a charge routes through the card network to that bank. A dummy number lives only inside a test database.
Outside test mode, a dummy card number fails. Live networks reject it because no issuer recognizes the sequence.
Yes, if you want a checkout form to accept them. The Luhn algorithm adds a check digit so a system can catch typos and swapped digits. That is all it does. A number that passes Luhn can still be fake, and every published test card works that way.
Test cards let a team exercise a payment flow without touching live money or live card data. Each published number triggers a specific outcome, so you can see how your code handles both good and bad results.
Use any three digits for Visa, Mastercard, and Discover, or four digits for Amex. Set the expiry to a date in the future. A sandbox skips the issuer check, so the values only need to match your form rules.
No. A test number belongs to the gateway that published it. A Stripe test card will not behave the same way at Authorize.Net, and a number from one region may fail on another region's sandbox. Always pull numbers from your own provider's docs.
Yes. Using numbers that a gateway publishes for testing is normal practice and breaks no law. What is illegal is using a card number that belongs to someone else, or trading real card data. In the US, 18 U.S.C. Section 1029 covers fraud tied to access devices, and card numbers fall inside that definition.
Selling or buying stolen card data can lead to federal charges, fines, and restitution. It also sits outside PCI DSS, the standard that governs how merchants store, process, and transmit cardholder data. If you need a number to test a checkout, take one from your provider's official test list.
No. Real merchants run in live mode, and the card networks reject any number with no issuer. A site that claims to accept one is either a test environment or a scam.
Check the documentation of the provider you use. Stripe, PayPal, Adyen, and Authorize.Net each list test numbers, test expiry dates, and the result every number produces.
No. A virtual card number is real. Banks issue virtual cards tied to a funded account, and they can pay for goods and services. A dummy card number links to nothing and works only in a sandbox.
Check three things: the number passes Luhn, the length matches the network, and your account is in test mode. A mismatch on any of the three throws a validation error before the gateway ever sees the request.
Master the art of card testing with our Card Test Mode solution, designed for precise and reliable results.
Use the Visa test number 4007000000027 in the Authorize.Net sandbox, plus brand cards and decline, AVS, and CVV values for full response testing.
Razorpay test cards for test mode: which networks are covered, how to trigger success and failure, and why sandbox PANs stay in the sandbox.
Learn about the Square Test Card and its importance in online CVV sales. This guide provides essential information for sellers.
Learn how to use an Adyen test card for secure online transactions without risk.
Discover the ultimate solution for testing Braintree transactions with our secure Braintree Test Card.
PayPal sandbox test cards are free in PayPal's developer docs. Learn where they come from, which format rules apply, and how to spot card-data scams.
Stripe test card numbers are fake card values that simulate approvals, declines, and 3D Secure in test mode. Here is how to use them correctly.
A Stripe test card lets you simulate successful payments, declines and 3D Secure in test mode. Here are the numbers, formats and limits.
Learn how to effectively use a sandbox test card for selling CVV online in the US market.