> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dodopayments.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Testing Process

> Test your integration with test cards, UPI IDs, BNPL data, and digital wallets. Simulate payments, refunds, and failures without real charges.

Use the test credentials on this page to simulate successful, declined, and failed payments in test mode. No money moves, and no real account is charged. To see a complete test payment, watch this video.

[Test Transaction | Dodo Payments](https://www.youtube.com/embed/5CcUSE4L_cg)

> [card] Full API Access
>
> Every API endpoint is available in test mode.

> [card] Webhook Testing
>
> Webhooks fire for test transactions the same way as in production.

> [!WARNING]
>
> Test credentials work only in test mode. In live mode, a payment made with a test credential fails.

## Test Cards

Use these card numbers to simulate successful and declined payments across different regions.

> [tab] Successful Payments
>
> | 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 |

> [tab] Declined Payments
>
> | Region | Brand | Card Number | Scenario | Error Code |
> | :- | :- | :- | :- | :- |
> | US | Visa | `4000000000000002` | Generic decline | `GENERIC_DECLINE` |
> | US | Visa | `4000000000009995` | Insufficient funds | `INSUFFICIENT_FUNDS` |
> | India | Visa | `4706131211212123` | Generic decline | `GENERIC_DECLINE` |
> | India | Mastercard | `5105105105105100` | Generic decline | `GENERIC_DECLINE` |
>
> When a test card declines, the payment's `error_code` and `error_message` reflect the scenario above. Look up any code in the [Transaction Failures](https://docs.dodopayments.com/api-reference/transaction-failures.md) reference for its meaning and recommended action. See [Handle Payment Failures](https://docs.dodopayments.com/developer-resources/handle-payment-failures.md) for handling declines in your integration.

> [tab] Subscription Renewal Failures
>
> | Card Number | Expiry | CVV |
> | :- | :- | :- |
> | `4000000000000341` | 12/34 | 123 |
>
> Use this card to test subscription renewal, upgrade, and downgrade failures. A subscription that uses this card is declined at its next charge, so you can test retries, customer notifications, and your failure handling.

For all test cards, use expiry date **06/32** (or **12/34**) and CVV **123**.

### Testing Renewal Failures

**1. Create a test subscription**

Create a subscription with your test API keys using a success test card (for example, `4242424242424242`). The initial charge should succeed and the subscription should become active.

**2. Update the payment method**

Open the [Customer Portal](https://docs.dodopayments.com/features/customer-portal.md), find the subscription, and click **Update Payment Method**. Enter the failure test card `4000000000000341` (Expiry: `12/34`, CVV: `123`) and save it.

**3. Advance the next billing date (optional)**

To trigger renewal without waiting for the natural billing cycle, use the Update Subscription API to set `next_billing_date` to a time slightly in the future, such as one minute from now. Replace the example value below. The API rejects a `next_billing_date` that is not in the future, including the current time. The value must be an ISO 8601 / RFC 3339 UTC timestamp (the `Z` suffix is required).

```http theme={null}
PATCH /subscriptions/{subscription_id}
{
  "next_billing_date": "2026-05-03T00:00:00Z"
}
```

See the [Update Subscription API reference](https://docs.dodopayments.com/api-reference/subscriptions/patch-subscriptions.md) for details.

**4. Verify the failure**

On the next billing attempt:

* The renewal charge declines on the failure card
* The subscription moves to **On-Hold**. If you enabled a [grace period](https://docs.dodopayments.com/features/subscription.md#grace-period), it moves to **Past Due** first (the `subscription.past_due` webhook carries `past_due_ends_at`), then to **On-Hold** or **Cancelled** when the grace period ends
* A `payment.failed` webhook event is delivered
* The customer can return to the Customer Portal to update the payment method and retry

## 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

For complete UPI documentation including RBI mandate testing for subscriptions, see the [India Payment Methods](https://docs.dodopayments.com/features/payment-methods/india.md) page.

## Test Pix

Pix testing uses a test CPF (Brazilian tax ID) to simulate the QR code flow.

| Field | Test Value |
| :- | :- |
| CPF | `00000000000` (11 zeros) |

### Requirements for Pix Testing

* Billing country must be set to `BR`
* Currency must be `BRL`

Enter the test CPF when prompted at checkout. A test QR code is generated — scan it with your phone's normal camera (no Pix app needed) and you'll be redirected to a test page where you can simulate the transaction as a success or failure.

For complete Pix documentation, see the [Pix](https://docs.dodopayments.com/features/payment-methods/pix.md) page.

## 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 |
| Email | [customer@email.us](mailto:customer@email.us) | [customer+denied@email.us](mailto: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 |

> [!NOTE]
>
> On USD checkouts, Klarna requires a minimum transaction amount of \$50.01 to appear as a payment option.

### Afterpay Testing

**1. Select Afterpay**

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**

To simulate failure, close the Afterpay modal window on the redirect page. The payment transitions from `requires_customer_action` to `requires_payment_method`.

> [!NOTE]
>
> On USD checkouts, Afterpay requires a minimum transaction amount of \$50.01 to appear as a payment option.

For complete BNPL documentation including Billie B2B testing, see the [Buy Now Pay Later](https://docs.dodopayments.com/features/payment-methods/bnpl.md) page.

## Test Digital Wallets

### Apple Pay

**1. Enable test mode**

Turn off the **Live Mode** switch in the dashboard sidebar, and use API keys created in test mode. See [Test Mode vs Live Mode](https://docs.dodopayments.com/miscellaneous/test-mode-vs-live-mode.md).

**2. Add a card to Apple Wallet**

Add a real card to your Apple Wallet. In test mode, the card won't be charged.

**3. Complete test purchase**

Open checkout on an Apple device and complete the Apple Pay flow.

> [!WARNING]
>
> Apple Pay requires HTTPS. It won't appear on `localhost` without proper SSL setup. Domain verification must also be complete.

### Google Pay

**1. Join the test card group**

[Join the Google Pay test card group](https://groups.google.com/g/googlepay-test-mode-stub-data) to get test cards automatically added to your wallet.

**2. Enable test mode**

Turn off the **Live Mode** switch in the dashboard sidebar, and use API keys created in test mode. See [Test Mode vs Live Mode](https://docs.dodopayments.com/miscellaneous/test-mode-vs-live-mode.md).

**3. Complete test purchase**

Select one of the test cards in Google Pay to complete the transaction.

### Amazon Pay, Cash App Pay, and RevolutPay

Use your test API keys and follow the standard checkout flow. Test transactions are simulated without actual charges.

For complete digital wallet documentation including domain verification for Apple Pay, see the [Digital Wallets](https://docs.dodopayments.com/features/payment-methods/digital-wallets.md) page.

## Test ACH Direct Debit

ACH Direct Debit can be tested in test mode by entering test bank details at checkout.

**1. Enable test mode**

Turn off the **Live Mode** switch in the dashboard sidebar, and use API keys created in test mode. See [Test Mode vs Live Mode](https://docs.dodopayments.com/miscellaneous/test-mode-vs-live-mode.md).

**2. Set currency and billing address**

Set the billing currency to `USD` and the billing address country to `US`. ACH is not offered outside this combination.

**3. Use a one-time payment**

ACH is not available on subscription checkouts, so test it against a one-time payment.

**4. Enter the test bank details**

Enter one of the test routing and account number pairs below, then confirm your webhook handler receives the final payment status — ACH payments confirm asynchronously rather than at checkout.

### Test Bank Accounts

Use the routing number `110000000` with any of these account numbers:

| Account Number | Behavior |
| :- | :- |
| `000123456789` | The payment succeeds. |
| `000222222227` | The payment fails due to insufficient funds. |
| `000111111113` | The payment fails because the account is closed. |
| `000555555559` | The payment succeeds, then triggers a dispute. |
| `000000000009` | The payment stays in processing indefinitely. |

For the full list of test accounts, see the [ACH Direct Debit](https://docs.dodopayments.com/features/payment-methods/ach.md#testing) page.

## Test European Methods

European payment methods (iDEAL, Bancontact, EPS, Multibanco) can be tested in test mode.

> [!NOTE]
>
> Multibanco shows a voucher instead of a bank flow. See [Test Multibanco](#test-multibanco).

**1. Enable test mode**

Turn off the **Live Mode** switch in the dashboard sidebar, and use API keys created in test mode. See [Test Mode vs Live Mode](https://docs.dodopayments.com/miscellaneous/test-mode-vs-live-mode.md).

**2. Set billing address**

Set the billing address country to match the payment method:

* `NL` for iDEAL
* `BE` for Bancontact
* `AT` for EPS
* `PT` for Multibanco

**3. Set currency**

European methods require EUR currency.

**4. Complete test flow**

Follow the simulated bank authentication flow in the test environment.

### Test Multibanco

Use EUR and a `PT` billing address. After you click **Pay**, checkout shows a Multibanco voucher. In test mode, the email you enter decides the result:

| Email | Result |
| :- | :- |
| `succeed_immediately@example.com` | Payment succeeds within a few seconds. |
| `expire_immediately@example.com` | Payment fails within a few seconds. |

To see the success page, use `succeed_immediately@example.com`, wait a few seconds, and tap **Done**.

For the full list of test emails, see the [Europe](https://docs.dodopayments.com/features/payment-methods/europe.md#multibanco-test-emails) page.

### Test SEPA Direct Debit IBANs

SEPA Direct Debit requires EUR and a Eurozone billing address. Use these test IBANs to force a specific outcome:

| Test IBAN | Behavior |
| :- | :- |
| `DE89370400440532013000` | The payment succeeds. |
| `DE62370400440532013001` | The payment fails. |
| `DE35370400440532013002` | The payment succeeds, then is immediately disputed. |
| `DE65370400440002222227` | The payment fails due to insufficient funds. |

For the full list of test IBANs, including per-country values, see the [Europe](https://docs.dodopayments.com/features/payment-methods/europe.md#sepa-test-ibans) page.

For complete European payment methods documentation, see the [Europe](https://docs.dodopayments.com/features/payment-methods/europe.md) page.

## Test Asia-Pacific Wallets

GCash, Alipay HK, FPS, and Touch 'n Go are QR code payments that only appear when the billing country and currency match.

**1. Enable test mode**

Turn off the **Live Mode** switch in the dashboard sidebar, and use API keys created in test mode. See [Test Mode vs Live Mode](https://docs.dodopayments.com/miscellaneous/test-mode-vs-live-mode.md).

**2. Set billing country and currency**

Create a one-time checkout with the matching pair:

| Method | Billing Country | Billing Currency | Method Type |
| :- | :- | :- | :- |
| GCash | `PH` | `PHP` | `gcash` |
| Alipay HK | `HK` | `HKD` | `ali_pay_hk` |
| FPS | `HK` | `HKD` or `CNY` | `fps` |
| Touch 'n Go | `MY` | `MYR` | `touch_n_go` |

**3. Select the method and confirm**

Select the method and click **Pay**. A QR code opens in a full-screen overlay and the checkout waits for the payment.

**4. Verify the checkout behavior**

Confirm the method appears only for the matching country and currency and the QR code renders.

> [!NOTE]
>
> Test-mode QR codes are issued by the wallet provider's test environment and may behave differently from a live payment.

For complete documentation, see the [Asia-Pacific](https://docs.dodopayments.com/features/payment-methods/asia-pacific.md) page.

## Testing Best Practices

> [accordion] Test all payment scenarios
>
> Don't test only successful payments. Test declines, cancellations, and edge cases like insufficient funds.

> [accordion] Verify webhook handling
>
> Ensure your webhook endpoints correctly process all event types, especially `payment.succeeded`, `payment.failed`, and subscription events.
>
> Use the [Dodo Payments CLI](https://docs.dodopayments.com/developer-resources/sdks/cli.md#webhooks) to test webhooks locally:
>
> * `dodo wh listen` forwards live test webhooks to your local server
> * `dodo wh trigger` sends mock payloads for all supported webhook event types

> [accordion] Test on real devices
>
> For Apple Pay and Google Pay, test on actual iOS and Android devices. Simulators don't fully replicate wallet behavior.

> [accordion] Test regional methods with correct addresses
>
> Regional payment methods (UPI, iDEAL, etc.) require matching billing addresses. A US billing address won't show iDEAL.

> [accordion] Verify minimum amounts
>
> Klarna and Afterpay require a \$50.01 minimum on USD checkouts. Test that they correctly appear or hide based on cart total.

## Related Pages

> [card] [Cards](https://docs.dodopayments.com/features/payment-methods/cards.md)
>
> Card testing, 3D Secure, and saved payment methods.

> [card] [Digital Wallets](https://docs.dodopayments.com/features/payment-methods/digital-wallets.md)
>
> Apple Pay, Google Pay, Amazon Pay testing.

> [card] [BNPL](https://docs.dodopayments.com/features/payment-methods/bnpl.md)
>
> Klarna, Afterpay, and Billie testing.

> [card] [India](https://docs.dodopayments.com/features/payment-methods/india.md)
>
> UPI and RBI mandate testing.

> [card] [Pix](https://docs.dodopayments.com/features/payment-methods/pix.md)
>
> Pix testing with test CPF.

> [card] [Europe](https://docs.dodopayments.com/features/payment-methods/europe.md)
>
> iDEAL, Bancontact, EPS, Multibanco testing.

> [card] [Asia-Pacific](https://docs.dodopayments.com/features/payment-methods/asia-pacific.md)
>
> GCash, Alipay HK, FPS, and Touch 'n Go testing.

> [card] [Webhooks](https://docs.dodopayments.com/developer-resources/webhooks.md)
>
> Set up webhooks for test events.

> [card] [CLI Webhook Testing](https://docs.dodopayments.com/developer-resources/sdks/cli.md#webhooks)
>
> Test webhooks locally with the Dodo Payments CLI.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.