Full API Access
Webhook Testing
Test Cards
अलग-अलग regions में successful और declined payments का simulation करने के लिए इन card numbers का उपयोग करें।- Successful Payments
- Declined Payments
- Subscription Renewal Failures
Renewal Failures का परीक्षण
Create a test subscription
4242424242424242) का उपयोग करके अपनी test API keys से एक subscription बनाएँ। initial charge सफल होना चाहिए और subscription active हो जानी चाहिए।Update the payment method
4000000000000341 (Expiry: 12/34, CVV: 123) दर्ज करके इसे save करें।Advance the next billing date (optional)
next_billing_date को वर्तमान UTC time पर set करें और नीचे दिए गए example value को बदलें। value ISO 8601 / RFC 3339 UTC timestamp होना चाहिए (Z suffix आवश्यक है)।Verify the failure
- renewal charge failure card पर decline हो जाता है
- subscription पहले Past Due में चली जाती है (grace period;
subscription.past_duewebhook मेंpast_due_ends_atहोता है), फिर grace period समाप्त होने पर On-Hold में चली जाती है - एक
payment.failedwebhook event deliver होता है - customer payment method update करने और retry करने के लिए Customer Portal पर वापस जा सकता है
Test UPI
UPI testing में विशेष VPA (Virtual Payment Address) identifiers का उपयोग होता है, जो अलग-अलग payment outcomes का simulation करते हैं।UPI Testing की आवश्यकताएँ
- Billing country को
INपर set करना होगा - Currency
INRहोना चाहिए - Non-Indian merchants के लिए: Adaptive Currency enabled होना चाहिए
Test Pix
Pix testing में QR code flow का simulation करने के लिए test CPF (Brazilian tax ID) का उपयोग होता है।Pix Testing की आवश्यकताएँ
- Billing country को
BRपर set करना होगा - Currency
BRLहोना चाहिए
Test BNPL
Buy Now Pay Later providers के लिए specific test data requirements होती हैं।Klarna Test Data
test mode में Klarna payments का simulation करने के लिए इन details का उपयोग करें:Afterpay Testing
Select Afterpay
Test successful payment
Test failed authentication
requires_customer_action से requires_payment_method में transition करता है।Test Digital Wallets
Apple Pay
Enable test mode
Add a card to Apple Wallet
Complete test purchase
Google Pay
Join the test card group
Enable test mode
Complete test purchase
Amazon Pay, Cash App Pay और RevolutPay
अपनी test API keys का उपयोग करें और standard checkout flow का पालन करें। Test transactions को वास्तविक charges के बिना simulate किया जाता है। Apple Pay के लिए domain verification सहित complete digital wallet documentation के लिए Digital Wallets page देखें।Test ACH Direct Debit
checkout पर test bank details दर्ज करके ACH Direct Debit का test mode में परीक्षण किया जा सकता है।Enable test mode
Set currency and billing address
USD और billing address country को US पर set करें। इस combination के बाहर ACH उपलब्ध नहीं है।Use a one-time payment
Enter the test bank details
Test Bank Accounts
Routing number110000000 को इनमें से किसी भी account number के साथ उपयोग करें:
Test European Methods
European payment methods (iDEAL, Bancontact, EPS, Multibanco) का test mode में परीक्षण किया जा सकता है।Enable test mode
Set billing address
- iDEAL के लिए
NL - Bancontact के लिए
BE - EPS के लिए
AT - Multibanco के लिए
PT
Set currency
Complete test flow
Test SEPA Direct Debit IBANs
SEPA Direct Debit के लिए EUR और Eurozone billing address आवश्यक है। किसी specific outcome को force करने के लिए इन test IBANs का उपयोग करें:Test Asia-Pacific Wallets
GCash, Alipay HK, FPS और Touch ‘n Go QR code payments हैं, जो केवल matching billing country और currency होने पर दिखाई देते हैं।Enable test mode
Set billing country and currency
Select the method and confirm
Verify the checkout behavior
Testing Best Practices
Test all payment scenarios
Test all payment scenarios
Verify webhook handling
Verify webhook handling
payment.succeeded, payment.failed और subscription events को।Webhooks का locally परीक्षण करने के लिए Dodo Payments CLI का उपयोग करें:dodo wh listenlive test webhooks को आपके local server पर forward करता हैdodo wh triggerसभी supported webhook event types के लिए mock payloads भेजता है
Test on real devices
Test on real devices
Test regional methods with correct addresses
Test regional methods with correct addresses
Verify minimum amounts
Verify minimum amounts