Test mode आपको वास्तविक transactions process किए बिना payments simulate करने देता है। सभी test credentials केवल test mode में काम करते हैं — production में इनका उपयोग कभी न करें।
No Real Charges
Test transactions वास्तविक payments process नहीं करते और वास्तविक accounts को प्रभावित नहीं करते।
Full API Access
सभी API endpoints test और live modes में एक जैसे काम करते हैं।
Webhook Testing
Test transactions के लिए production की तरह ही webhooks fire होते हैं।
Test credentials केवल test mode में काम करते हैं। Live mode में इनका उपयोग करने पर payment failures होंगी।
इनमें से किसी card के decline होने पर payment का error_code और error_message ऊपर दिए गए scenario को दर्शाते हैं। इसके अर्थ और recommended action के लिए किसी भी code को Transaction Failures reference में देखें, और अपने integration में declines handle करने के लिए Handle Payment Failures देखें।
Card Number
Expiry
CVC
4000 0000 0000 0341
12/34
123
इस card का उपयोग subscription Failure renewal, upgrade और downgrade scenarios को test करने के लिए करें।
सभी test cards के लिए expiry date 06/32 (या 12/34) और CVV 123 का उपयोग करें।
अपने test API keys का उपयोग करके success test card (उदाहरण के लिए, 4242 4242 4242 4242) से subscription बनाएँ। Initial charge सफल होना चाहिए और subscription active हो जानी चाहिए।
2
Swap in the failure card via Customer Portal
Customer Portal खोलें, अभी बनाई गई subscription ढूँढें और Update Payment Method पर click करें। Failure test card 4000 0000 0000 0341 (Expiry: 12/34, CVC: 123) दर्ज करें और इसे subscription की payment method के रूप में save करें।
3
Advance the next billing date (optional)
Natural billing cycle की प्रतीक्षा करने के बजाय renewal तुरंत trigger करने के लिए Update Subscription API का उपयोग करके next_billing_date को वर्तमान UTC time पर set करें। यह value ISO 8601 / RFC 3339 UTC timestamp होनी चाहिए (Z suffix आवश्यक है)।
Customer payment method update करने और retry करने के लिए Customer Portal पर वापस जा सकता है
यह card विशेष रूप से renewal failures test करने के लिए है। अगली billing date पर charge decline हो जाएगा, जिससे आप payment retry logic, customer notifications और failure handling test कर सकते हैं।
Checkout में payment method के रूप में Afterpay चुनें और Pay पर click करें।
2
Test successful payment
Successful payments के लिए किसी भी valid email address और shipping address का उपयोग करें।
3
Test failed authentication
विफलता का अनुकरण करने के लिए, redirect page पर Afterpay modal window बंद करें। payment requires_customer_action से requires_payment_method में परिवर्तित हो जाता है।
Afterpay को payment option के रूप में दिखाई देने के लिए कम से कम $50.01 transaction amount आवश्यक है।
पूर्ण BNPL documentation, जिसमें Billie B2B testing शामिल है, के लिए Buy Now Pay Later पेज देखें।
अपनी test API keys का उपयोग करें और standard checkout flow का पालन करें। Test transactions को वास्तविक charges के बिना simulate किया जाता है।Apple Pay के लिए domain verification सहित, complete digital wallet documentation के लिए Digital Wallets पेज देखें।
checkout पर test bank details दर्ज करके Test Mode में ACH Direct Debit का परीक्षण किया जा सकता है।
1
Enable test mode
अपनी Dodo Payments test API keys का उपयोग करें।
2
Set currency and billing address
Billing currency को USD पर सेट करें और billing address country को US पर सेट करें। इस combination के बाहर ACH उपलब्ध नहीं है।
3
Use a one-time payment
Subscription checkouts पर ACH उपलब्ध नहीं है, इसलिए इसे one-time payment के साथ test करें।
4
Enter the test bank details
नीचे दिए गए test routing और account number pairs में से किसी एक को दर्ज करें, फिर पुष्टि करें कि आपके webhook handler को final payment status प्राप्त हो रहा है — ACH payments checkout के बजाय asynchronously confirm होते हैं।
SEPA Direct Debit के लिए EUR और Eurozone का billing address आवश्यक है। किसी specific outcome को force करने के लिए इन test IBANs का उपयोग करें:
Test IBAN
Behavior
DE89370400440532013000
Payment सफल होता है।
DE62370400440532013001
Payment विफल होता है।
DE35370400440532013002
Payment सफल होता है, फिर तुरंत dispute हो जाता है।
DE65370400440002222227
अपर्याप्त funds के कारण payment विफल होता है।
प्रत्येक country के values सहित test IBANs की पूरी सूची के लिए Europe page देखें।European payment methods के complete documentation के लिए Europe page देखें।
केवल successful payments का test न करें। Declines, cancellations और insufficient funds जैसे edge cases का भी test करें।
Verify webhook handling
सुनिश्चित करें कि आपके webhook endpoints सभी event types को सही तरीके से process करते हैं, विशेष रूप से payment.succeeded, payment.failed और subscription events को।Webhooks को locally test करने के लिए Dodo Payments CLI का उपयोग करें:
dodo wh listen live test webhooks को आपके local server पर forward करता है
dodo wh trigger सभी supported webhook event types के लिए mock payloads भेजता है
Test on real devices
Apple Pay और Google Pay के लिए actual iOS और Android devices पर test करें। Simulators wallet behavior को पूरी तरह replicate नहीं करते।
Test regional methods with correct addresses
Regional payment methods (UPI, iDEAL आदि) के लिए matching billing addresses आवश्यक हैं। US billing address होने पर iDEAL दिखाई नहीं देगा।
Verify minimum amounts
BNPL methods के लिए $50.01 minimum आवश्यक है। Test करें कि cart total के आधार पर वे सही तरीके से दिखाई और छिपाई जाती हैं।