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

# Card Testing Guide

This page lists the test cards and nonces you can use to validate card payments in Meld's sandbox. It is for developers integrating card payments who need to confirm a transaction flows end-to-end before going live.

## Prerequisites

> [!NOTE]
>
> * A sandbox API key from your Meld dashboard.
> * At least one card-capable service provider enabled on your account — see [Supported Service Providers](https://docs.meld.io/docs/payments-stack/fiat-supported-service-providers).

# Create a payment using the nonce method

When creating a payment using the nonce method, only the payment method token is required. You can use `meld-fake-valid-nonce` for all service providers besides Checkout, or use each service provider's supported nonces listed on their websites. This nonce is provided by Meld for testing. To create a nonce in production, use a nonce generator provided by the service provider.

> [!NOTE]
>
> See [Supported Service Providers](https://docs.meld.io/docs/payments-stack/fiat-supported-service-providers) for which providers support the nonce method.

# Create a payment using the card method

> [!WARNING]
>
> Genuine card information cannot be used in test mode. Use the test card numbers below with a valid future expiration date and any random CVC to create a successful payment.

> [!NOTE]
>
> To trigger specific decline scenarios (insufficient funds, expired card, fraud, etc.), refer to the additional test card numbers available in your Meld sandbox dashboard or the relevant service provider's testing documentation.

## Braintree

### U.S. test cards

Note: Braintree does not support credit cards, but you can use the cards below to create [nonces](https://developer.paypal.com/braintree/docs/reference/request/payment-method-nonce/create) with which to test.

| Card number | Brand | CVC | Expiration date |
| :- | :- | :- | :- |
| 37144963539843 | American Express | Any 3 digits | Any future date |
| 5555 5555 5555 4444 | Mastercard | Any 3 digits | Any future date |
| 4111111111111111 | Visa | Any 3 digits | Any future date |

## Square

### U.S. test cards

Note: Square does not support credit cards, but you can use the cards below to create nonces with which to test.

| Card number | Brand | CVC | Expiration date |
| :- | :- | :- | :- |
| 4111111111111111 | Visa | 111 | Any future date |
| 5105105105105100 | Mastercard | 111 | Any future date |
| 6011000000000004 | Discover | 111 | Any future date |
| 30000000000004 | Diners Club | 111 | Any future date |
| 3569990010095841 | JCB | 111 | Any future date |
| 340000000000009 | American Express | 1111 | Any future date |
| 7783320000000000 | Square Gift Card | N/A | N/A |

### International test cards

You can use any of the following test cards to simulate a successful payment for different billing countries.

| Card number | Brand | CVC | Expiration date | Country |
| :- | :- | :- | :- | :- |
| 6222988812340000 | China UnionPay | 123 | Any future date | China (CN) |

## Stripe

### U.S. test cards

| Card number | Brand | CVC | Expiration date |
| :- | :- | :- | :- |
| 4242424242424242 | Visa | Any 3 digits | Any future date |
| 4000056655665556 | Visa (debit) | Any 3 digits | Any future date |
| 5555555555554444 | Mastercard | Any 3 digits | Any future date |
| 2223003122003222 | [Mastercard (2-series)](https://www.mastercard.us/content/dam/mccom/en-us/documents/merchant-2-series-BIN-impact-checklist-aug-2016.pdf) | Any 3 digits | Any future date |
| 5200828282828210 | Mastercard (debit) | Any 3 digits | Any future date |
| 5105105105105100 | Mastercard (prepaid) | Any 3 digits | Any future date |

### International test cards

You can use any of the following test cards to simulate a successful payment for different billing countries.

| Card number | Brand | CVC | Expiration date | Country |
| :- | :- | :- | :- | :- |
| 4000001240000000 | Visa | Any 3 digits | Any future date | Canada (CA) |
| 4000004840008001 | Visa | Any 3 digits | Any future date | Mexico (MX) |

> [!NOTE]
>
> See [Supported Service Providers](https://docs.meld.io/docs/payments-stack/fiat-supported-service-providers) for which providers support the card method.


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