Skip to main content

Test Card Details

Dodo Payments provides a set of Test Card numbers that you can use to simulate various payment scenarios. You can use these test card numbers to create simulated payments in test mode without processing actual payments or charges. Test card numbers are only valid in test mode. Don’t use them for real payments.

Test Card Numbers

Combine all the regional test cards in a single table for easier reference. The table below includes US and India cards for both successful and declined payment simulations.
RegionBrandScenarioCard NumberExpiry Date (MM/YY)CVV/CVC
USVisaSuccess424242424242424206/32123
USVisaDeclined400000000000000206/32123
USMastercardSuccess555555555555444406/32123
USMastercardDeclined400000000000999506/32123
IndiaVisaSuccess457623891277145006/32123
IndiaVisaDeclined470613121121212306/32123
IndiaMastercardSuccess540916266938103406/32123
IndiaMastercardDeclined510510510510510006/32123

Test UPI Details

Know what UPI is here.
StatusUPI ID
SUCCESSsuccess@upi
FAILUREfailure@upi

Test Klarna Details

StatusDate of BirthFirst NameLast NameEmailStreetHouse NumberCityStatePostal CodePhone
APPROVED07-10-1970TestPerson-us[email protected]Amsterdam Ave509New YorkNew York10024-3941+13106683312
DENIED07-10-1970TestPerson-us[email protected]Amsterdam Ave509New YorkNew York10024-3941+13106354386
Note: The minimum amount required for Klarna transactions is $50.

Test Afterpay Details

When testing your Checkout integration, select Afterpay as the payment method and click the Pay button.

Successful Payment

  • Use any valid email address and shipping address for successful payments.

Failed Authentication

  • To test the case where the user fails to authenticate, use your test API keys and view the redirect page. On the redirect page, close the Afterpay modal window and verify that payment failed. The PaymentIntent transitions from requires_action to requires_payment_method.
Note: The minimum amount required for Afterpay transactions is $50. For manual capture PaymentIntents in test mode, the uncaptured PaymentIntent auto-expires 10 minutes after successful authorization.

Test Apple Pay

You can test Apple Pay using your Dodo Payments test account.
You’ll need an iPad, iPhone, or Mac to test Apple Pay. Use Safari on Mac.
1

Turn on Apple Pay for your Dodo Payments account

Enable Apple Pay in your Dodo Payments account settings.
2

Sign up for an Apple ID

If you don’t already have one, sign up for an Apple ID.
3

Add at least one card to Apple Pay

Add at least one card to Apple Pay. When testing with Apple Pay, you use real card details but your card isn’t charged.
4

Open a checkout and choose Apple Pay

Open a checkout in test mode and select Apple Pay as the payment method.
5

Choose a card and complete the test purchase

Select a card from your Apple Pay wallet and complete the test purchase.
Your checkout must be served over https for Apple Pay to appear.

Test Google Pay

You can test Google Pay using your Dodo Payments test account.
You’ll need to use Google Chrome or an Android-powered device to test Google Pay.
1

Turn on Google Pay for your Dodo Payments account

Enable Google Pay in your Dodo Payments account settings.
2

Sign up for a Google Account

If you don’t already have one, sign up for a Google Account.
3

Add at least one card to Google Pay

Add at least one card to Google Pay. You can use test cards when working with Google Pay, but you must have at least one valid card in your wallet.
4

Join the Google Group for test cards

Join the Google Group for test cards. This automatically adds test cards to your wallet when Google Pay detects a test environment, like Dodo Payments test mode.
5

Open a checkout and choose Google Pay

Open a checkout in test mode and select Google Pay as the payment method.
6

Choose one of the Google Pay test cards and complete purchase

Select one of the Google Pay test cards from your wallet and complete the test purchase.
If you’re using Google Chrome on desktop, make sure the Allow sites to check if you have payment methods option is turned on in Chrome settings. This is turned on by default.

Other Payment Methods

To test other payment methods like Amazon Pay and Cash App, follow the usual testing procedures.