Skip to main content
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

  • A sandbox API key from your Meld dashboard.
  • At least one card-capable service provider enabled on your account — see 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.
See Supported Service Providers for which providers support the nonce method.

Create a payment using the card method

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.
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 with which to test.

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.

International test cards

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

Stripe

U.S. test cards

International test cards

You can use any of the following test cards to simulate a successful payment for different billing countries.
See Supported Service Providers for which providers support the card method.