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 usemeld-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
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.