Overview
Test mode lets you simulate payments without processing real transactions. All test credentials only work in test mode — never use them in production.No Real Charges
Test transactions don’t process actual payments or affect real accounts.
Full API Access
All API endpoints work identically in test and live modes.
Webhook Testing
Webhooks fire for test transactions just like production.
Test Cards
Use these card numbers to simulate successful and declined payments across different regions.- Successful Payments
- Declined Payments
- Subscription Failure Testing (Renewal/Upgrade/Downgrade)
| Region | Brand | Card Number | Expiry | CVV |
|---|---|---|---|---|
| US | Visa | 4242424242424242 | 06/32 | 123 |
| US | Mastercard | 5555555555554444 | 06/32 | 123 |
| India | Visa | 4576238912771450 | 06/32 | 123 |
| India | Mastercard | 5409162669381034 | 06/32 | 123 |
For all test cards, use expiry date 06/32 (or 12/34) and CVV 123.
How to Test Renewal Failure
Create a test subscription
Create a subscription with your test API keys using a success test card (for example,
4242 4242 4242 4242). The initial charge should succeed and the subscription should become active.Swap in the failure card via Customer Portal
Open the Customer Portal, find the subscription you just created, and click Update Payment Method. Enter the failure test card
4000 0000 0000 0341 (Expiry: 12/34, CVC: 123) and save it as the subscription’s payment method.Advance the next billing date (optional)
To trigger renewal immediately instead of waiting for the natural billing cycle, use the Update Subscription API to set See the Update Subscription API reference for details.
next_billing_date to the current UTC time. The value must be an ISO 8601 / RFC 3339 UTC timestamp (the Z suffix is required).Test UPI
UPI testing uses special VPA (Virtual Payment Address) identifiers that simulate different payment outcomes.| Status | UPI ID |
|---|---|
| Success | success@upi |
| Failure | failure@upi |
Requirements for UPI Testing
- Billing country must be set to
IN - Currency must be
INR - For non-Indian merchants: Adaptive Currency must be enabled
Test BNPL
Buy Now Pay Later providers have specific test data requirements.Klarna Test Data
Use these details to simulate Klarna payments in test mode:| Field | Approved | Denied |
|---|---|---|
| Date of Birth | 07-10-1970 | 07-10-1970 |
| First Name | Test | Test |
| Last Name | Person-us | Person-us |
| customer@email.us | customer+denied@email.us | |
| Street | Amsterdam Ave | Amsterdam Ave |
| House Number | 509 | 509 |
| City | New York | New York |
| State | New York | New York |
| Postal Code | 10024-3941 | 10024-3941 |
| Phone | +13106683312 | +13106354386 |
Klarna requires a minimum transaction amount of $50.01 to appear as a payment option.
Afterpay Testing
Afterpay requires a minimum transaction amount of $50.01 to appear as a payment option.
Sunbit-tester
Set billing country and currency
Säkerställ att
billing_address.country är US och billing_currency är USD.Complete the Sunbit flow
Välj Sunbit vid utcheckningen och slutför finansieringsansökan i Sunbit-modal.
Sunbit visas endast för amerikanska kunder som betalar i USD med ett belopp mellan 19,999.00.
Testa digitala plånböcker
Apple Pay
Add a card to Apple Wallet
Lägg till ett riktigt kort i din Apple Wallet. I testläge kommer kortet inte att debiteras.
Google Pay
Join the test card group
Gå med i Google Pay testkortgrupp för att få testkort automatiskt tillagda i din plånbok.
Amazon Pay, Cash App Pay & RevolutPay
Använd dina test-API-nycklar och följ standardutcheckningsflödet. Testtransaktioner simuleras utan faktiska kostnader. För fullständig dokumentation om digitala plånböcker inklusive domänverifiering för Apple Pay, se sidan Digitala plånböcker.Testa europeiska metoder
Europeiska betalningsmetoder (iDEAL, Bancontact, EPS, Multibanco) kan testas i sandbox-läge.Set billing address
Ställ in faktureringsland för att matcha betalningsmetoden:
NLför iDEALBEför BancontactATför EPSPTför Multibanco
Testningsbästa praxis
Test all payment scenarios
Test all payment scenarios
Testa inte bara lyckade betalningar. Testa avvisningar, avbokningar och kantfall som otillräckliga medel.
Verify webhook handling
Verify webhook handling
Säkerställ att dina webhook-endpoints korrekt bearbetar alla händelsetyper, särskilt
payment.succeeded, payment.failed och abonnemangshändelser.Använd Dodo Payments CLI för att testa webhooks lokalt:dodo wh listenvidarebefordrar live-testwebhooks till din lokala serverdodo wh triggerskickar mock-payloads för alla 22 händelsetyper
Test on real devices
Test on real devices
För Apple Pay och Google Pay, testa på riktiga iOS- och Android-enheter. Simulatorer återspeglar inte fullt ut plånbokens beteende.
Test regional methods with correct addresses
Test regional methods with correct addresses
Regionala betalningsmetoder (UPI, iDEAL, etc.) kräver matchande faktureringsadresser. En amerikansk faktureringsadress visar inte iDEAL.
Verify minimum amounts
Verify minimum amounts
BNPL-metoder kräver minst $50.01. Testa att de korrekt visas/döljs baserat på varukorgens total.
Relaterade sidor
Cards
Korttester, 3D-secure och sparade betalningsmetoder.
Digital Wallets
Apple Pay, Google Pay, Amazon Pay testning.
BNPL
Klarna, Afterpay och Billie testning.
India
UPI och RBI-mandat testning.
Europe
iDEAL, Bancontact, EPS, Multibanco testning.
Webhooks
Ställ in webhooks för testhändelser.
CLI Webhook Testing
Testa webhooks lokalt med Dodo Payments CLI.