When one of these cards declines, the payment’s error_code and error_message reflect the scenario above. Look up any code in the Transaction Failures reference for its meaning and recommended action, and see Handle Payment Failures for handling declines in your integration.
Card Number
Expiry
CVC
4000 0000 0000 0341
12/34
123
Use this card to test subscription Failure renewal, upgrade, and downgrade scenarios.
For all test cards, use expiry date 06/32 (or 12/34) and CVV 123.
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.
2
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.
3
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 next_billing_date to the current UTC time. The value must be an ISO 8601 / RFC 3339 UTC timestamp (the Z suffix is required).
The customer can return to the Customer Portal to update the payment method and retry
This card is specifically for testing renewal failures. The charge will decline on the next billing date, allowing you to test payment retry logic, customer notifications, and failure handling.
Choose Afterpay as the payment method in checkout and click Pay.
2
Test successful payment
Use any valid email address and shipping address for successful payments.
3
Test failed authentication
Per simulare un errore, chiudi la finestra modale di Afterpay nella pagina di reindirizzamento. Il pagamento passa da requires_customer_action a requires_payment_method.
Afterpay requires a minimum transaction amount of $50.01 to appear as a payment option.
Per la documentazione completa su BNPL, inclusi i test B2B di Billie, consulta la pagina Buy Now Pay Later.
Aggiungi una carta reale al tuo Apple Wallet. In modalità di test, la carta non verrà addebitata.
3
Complete test purchase
Apri il checkout su un dispositivo Apple e completa il flusso Apple Pay.
Apple Pay richiede HTTPS. Non verrà visualizzato su localhost senza una configurazione SSL corretta. Anche la verifica del dominio deve essere completata.
Usa le tue chiavi API di test e segui il flusso di checkout standard. Le transazioni di test sono simulate senza addebiti effettivi.Per la documentazione completa sui Digital Wallet, inclusa la verifica del dominio per Apple Pay, consulta la pagina Digital Wallets.
ACH Direct Debit può essere testato in Test Mode inserendo dati bancari di test al checkout.
1
Enable test mode
Usa le tue chiavi API di test di Dodo Payments.
2
Set currency and billing address
Imposta la valuta di fatturazione su USD e il paese dell’indirizzo di fatturazione su US. ACH non è offerto al di fuori di questa combinazione.
3
Use a one-time payment
ACH non è disponibile nei checkout degli abbonamenti, quindi testalo con un pagamento una tantum.
4
Enter the test bank details
Inserisci una delle coppie di numeri di routing e di conto di test riportate di seguito, quindi verifica che il tuo gestore dei webhook riceva lo stato finale del pagamento: i pagamenti ACH vengono confermati in modo asincrono anziché al checkout.
SEPA Direct Debit richiede EUR e un indirizzo di fatturazione nella zona euro. Usa questi IBAN di test per forzare un risultato specifico:
IBAN di test
Comportamento
DE89370400440532013000
Il pagamento va a buon fine.
DE62370400440532013001
Il pagamento non va a buon fine.
DE35370400440532013002
Il pagamento va a buon fine, quindi viene contestato immediatamente.
DE65370400440002222227
Il pagamento non va a buon fine per fondi insufficienti.
Per l’elenco completo degli IBAN di test, inclusi i valori per ciascun paese, consulta la pagina Europe.Per la documentazione completa sui metodi di pagamento europei, consulta la pagina Europe.
Non testare solo i pagamenti andati a buon fine. Testa i rifiuti, gli annullamenti e i casi limite, come i fondi insufficienti.
Verify webhook handling
Assicurati che i tuoi endpoint webhook elaborino correttamente tutti i tipi di evento, in particolare payment.succeeded, payment.failed e gli eventi relativi agli abbonamenti.Usa la Dodo Payments CLI per testare i webhook in locale:
dodo wh listen inoltra i webhook di test in tempo reale al tuo server locale
dodo wh trigger invia payload simulati per tutti i tipi di evento webhook supportati
Test on real devices
Per Apple Pay e Google Pay, esegui i test su dispositivi iOS e Android reali. I simulatori non replicano completamente il comportamento dei wallet.
Test regional methods with correct addresses
I metodi di pagamento regionali (UPI, iDEAL, ecc.) richiedono indirizzi di fatturazione corrispondenti. Un indirizzo di fatturazione statunitense non mostrerà iDEAL.
Verify minimum amounts
I metodi BNPL richiedono un minimo di $50.01. Verifica che vengano mostrati o nascosti correttamente in base al totale del carrello.