DocsAPI Reference
Log In
Docs

Payment Testing Guide

Create a payment using nonce method

When create 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.

📘

Reference Supported service providers to know which service providers are supporting the nonce method.

Create a payment using card method

Genuine card information cannot be used in test mode. Instead, use any of the following test card numbers, a valid expiration date in the future, and any random CVC number, to create a successful payment.

Authorize.net

U.S. test cards

Card numberBrandCVCExpiration date
370000000000002American ExpressAny 3 digitsAny future date
6011000000000012DiscoverAny 3 digitsAny future date
3088000000000017JCBAny 3 digitsAny future date
4007000000027VisaAny 3 digitsAny future date
4012888818888VisaAny 3 digitsAny future date
4111111111111111VisaAny 3 digitsAny future date
5424000000000015MastercardAny 3 digitsAny future date
2223000010309703MastercardAny 3 digitsAny future date
2223000010309711MastercardAny 3 digitsAny future date

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.

Card numberBrandCVCExpiration date
37144963539843American ExpressAny 3 digitsAny future date
5555 5555 5555 4444MastercardAny 3 digitsAny future date
4111111111111111VisaAny 3 digitsAny future date

Checkout

U.S. test cards

Card numberBrandCVCExpiration date
4242424242424242VisaAny 3 digitsAny future date
4273149019799094VisaAny 3 digitsAny future date
4273149019799094VisaAny 3 digitsAny future date
4539467987109256VisaAny 3 digitsAny future date
4916301720257093VisaAny 3 digitsAny future date
4095254802642505VisaAny 3 digitsAny future date
4485899805156040VisaAny 3 digitsAny future date
5436031030606378MastercardAny 3 digitsAny future date
5585076576791786MastercardAny 3 digitsAny future date
345678901234564American ExpressAny 3 digitsAny future date
341829238058580American ExpressAny 3 digitsAny future date
6011111111111117DiscoverAny 3 digitsAny future date
6011111111111118DiscoverAny 3 digitsAny future date

Circle

U.S. test cards

Card numberBrandCVCExpiration date
4007400000000007VisaAny 3 digitsAny future date
4007410000000006VisaAny 3 digitsAny future date
4200000000000000VisaAny 3 digitsAny future date
4757140000000001VisaAny 3 digitsAny future date
5102420000000006MastercardAny 3 digitsAny future date
5173375000000006MastercardAny 3 digitsAny future date
5555555555554444MastercardAny 3 digitsAny future date

NMI

U.S. test cards

Card numberBrandCVCExpiration date
371111111111114American ExpressAny 3 digitsAny future date
3001111111111116Diners ClubAny 3 digitsAny future date
6011111111111117DiscoverAny 3 digitsAny future date
35281111111111119JCBAny 3 digitsAny future date
56410411111111113MaestroAny 3 digitsAny future date
5411111111111115MastercardAny 3 digitsAny future date
5511111111111114Mastercard (debit)Any 3 digitsAny future date
4532111111111112VisaAny 3 digitsAny future date
4751271111111118Visa (debit)Any 3 digitsAny 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 numberBrandCVCExpiration date
4111111111111111Visa111Any future date
5105105105105100Mastercard111Any future date
6011000000000004Discover111Any future date
30000000000004Diners Club111Any future date
3569990010095841JCB111Any future date
340000000000009American Express1111Any future date
7783320000000000Square Gift CardN/AN/A

International test cards

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

Card numberBrandCVCExpiration dateCountry
6222988812340000China UnionPay123Any future dateChina (CN)

Stripe

U.S. test cards

Card numberBrandCVCExpiration date
4242424242424242VisaAny 3 digitsAny future date
4000056655665556Visa (debit)Any 3 digitsAny future date
5555555555554444MastercardAny 3 digitsAny future date
2223003122003222Mastercard (2-series)Any 3 digitsAny future date
5200828282828210Mastercard (debit)Any 3 digitsAny future date
5105105105105100Mastercard (prepaid)Any 3 digitsAny future date

International test cards

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

Card numberBrandCVCExpiration dateCountry
4000001240000000VisaAny 3 digitsAny future dateCanada (CA)
4000004840008001VisaAny 3 digitsAny future dateMexico (MX)
📘

Reference Supported service providers to know which service providers are supporting the card method.