Search...
Log inGet started
Airwallex logo
Home
Core API
Payments
Transactional FX
Payouts
Issuing
Back to home
OverviewChoose your payments solutionGet started with payments
Online payments
Invoice integrations
Test and go live
Integration checklistTest card numbers
Card data migration

Test card numbers

Airwallex helps merchants confirm that their integration is successful with a suite of test cards. This will allow merchants to perform test transactions before going live.

Payment scenarios

These cards numbers will simulate payments with different response codes in your test environment.

Amounts following the format $8x.xx are generally used to trigger error cases. Airwallex does not recommend using those amounts when expecting a successful transaction. The CVC (or CVV) and the expiry year can be anything.

PANCard SchemeCard TypeAmountIssuer Response CodeIssuer Response DescriptionInternal Error CodeError Message
4035 5010 0000 0008VisaAnyThis card will always make payment succeed regardless of amount----
4012 0003 0000 1003VisaCredit80.5959Suspected fraudissuer_declinedThe issuer declined this transaction.
4012 0003 0000 1003VisaCredit80.0707Pick up Cardissuer_declinedThe issuer declined this transaction.
4646 4646 4646 4644VisaCreditAnyN/AN/Arisk_declinedDeclined by fraud risk engine
2223 0000 1018 1375MastercardDebit80.0505Do not Honorissuer_declinedThe issuer declined this transaction.
5307 8373 6054 4518MastercardCredit80.0505Do not Honorissuer_declinedThe issuer declined this transaction.
2223 0000 1018 1375MastercardDebit80.1414Invalid Card Numberissuer_declinedThe issuer declined this transaction.
5307 8373 6054 4518MastercardCredit80.1414Invalid card numberissuer_declinedThe issuer declined this transaction.
2223 0000 1018 1375MastercardDebit80.5151Insufficient Fundsissuer_declinedThe issuer declined this transaction.
5307 8373 6054 4518MastercardCredit80.5151Insufficient Fundsissuer_declinedThe issuer declined this transaction.
3703 5368 7686779American ExpressCredit81.00100Denyissuer_declinedThe card issuer declined this transaction.
3706 3680 3809 394American ExpressAnyThis card will always make the payment succeed regardless of the amount----
3569 5999 9909 7585JCBAnyThis card will always make the payment succeed regardless of the amount----
6011 2009 0000 0000000DiscoverAnyThis card will always make the payment succeed regardless of the amount----
3609 5355 9056 9202DinersAnyThis card will always make the payment succeed regardless of the amount----
6250 9410 0652 8599UnionPayDebitThis card will always make the payment succeed regardless of the amount----
6252 4701 4444 4939UnionPayCreditThis card will always make the payment succeed regardless of the amount----
1111 1111 1111 1111InvalidAnyAny--validation_errorThe card number is invalid.

3DS authentication scenarios

Use these test details to simulate various 3D Secure (3DS) authentication scenarios.

StageScenarioTrigger ConditionMessage
Payment SuccessFrictionless Mode Success without device data collectioncard: 4012000300000005200 OK
Payment SuccessChallenge Mode Success without device data collectioncard: 4012000300000062(OTP input 1234)200 OK
Payment SuccessFrictionless Mode Success with device data collectioncard: 4012000300000021200 OK
Payment SuccessChallenge Mode Success with device data collectioncard: 4012000300000088(OTP input 1234)200 OK
Payment Fail(authentication failed) at 3DSFrictionless Mode(NOT ENROLLED), fail at confirm API callcard: 4012000300000013400 { "code": "authentication_declined", "message": "User failed 3DS authentication." }
Payment Fail(authentication failed) at 3DSFrictionless Mode(NOT ENROLLED), fail at confirm API callcard: 4012000300000047400 { "code": "no_3ds_liability_shift", "message": "Declined due to no 3DS liability shift." }
Payment Fail(authentication failed) at 3DSChallenge Mode, fail at the second confirm_continue(after user input OTP code)card: 4012000300000070400 {"code": "authentication_declined", "message": "User failed 3DS authentication." }
Payment Fail(authorization failed) at authorizationFrictionless Mode(NOT ENROLLED), fail at confirm API callcard: 4012000300000039 amount: 88.88400 { "code": "authentication_declined", "message": "User failed 3DS authentication." }
Payment Fail (authentication failed) at 3DSChallenge Mode, fail at the second confirm_continue(after user input OTP code)card: 4012000300000070 amount: 88.88400 {"code": "authentication_declined", "message": "User failed 3DS authentication." }
Payment Fail (authentication failed) at 3DSChallenge Mode, fail at the second confirm_continue(after user input OTP code)card: 4012000300000104 amount: 88.88400 { "code": "no_3ds_liability_shift", "message": "Declined due to no 3DS liability shift." }
Payment Fail rejected at 3DSFail at confirm API call, rejected by 3dscard: 5582464537874128 (mastercard anonymous card)400 { "code": "3ds_not_supported", "message": "3DS is required but not supported by this card." }
Payment Fail rejected at 3DSFail at confirm API call, rejected by 3dscreate intent with force3ds param. card: 4012000300000138 (visa anonymous card)400 { "code": "3ds_not_supported", "message": "3DS is required but not supported by this card." }

Apple Pay payment scenarios

Airwallex enables you to test your Apple Pay integration on web/mobile using a real card and demo API keys. Airwallex will recognize that you are in demo environment and will return a successful test card token for you to test the end-to-end Apple Pay process.

Apple Pay transaction processing involves various steps as detailed in the Apple Pay guide. Follow the instructions below to simulate various errors in those processing steps.

You can use your own cards in your wallet along with the trigger condition mentioned in the table to simulate the exact scenario. Note that your card will be mapped to following cards according to their card brand:

  • Visa: 4035501000000008
  • Mastercard: 5354563134257854
  • UnionPay: 6250941006528599
  • JCB: 3569599999097585
  • American Express: 370636803809394
ScenarioEnvironmentTrigger ConditionError codeError messageError stage
Transaction successiOS & WebAny card number and amount combination apart from special conditions mentioned belowN/AN/AAfter Confirm PaymentIntent API
Transaction declined by issueriOS & WebTransaction amount : 80.51issuer_declinedThe card issuer declined this transaction. Please refer to the original response code.After Confirm PaymentIntent API
Domain not registeredWebUse an unregistered domain to collect Apple Pay paymentvalidation_errorThe transaction failed because you have not registered your web domain or iOS certificate for Apple PayAfter Start Session API(see step 2)
Incorrect merchant certificateiOSUse a different payment processing certificate from the certificate already uploaded to Airwallexconfiguration_errorInvalid request against merchant configuration. Please contact your Account Manager.After Confirm PaymentIntent API
Transaction blocked by the Airwallex risk systemiOS & WebTransaction currency: AUD; Amount: 20.41risk_declinedThe transaction is blocked because of risk concern.After Confirm PaymentIntent API
  • Testing is not possible if your country doesn't support Apple Pay, please see this list for supported countries.
  • Apple Pay on the web only works on Safari web browsers, both desktop and mobile.
  • Airwallex does not support Apple Pay’s sandbox environment.

Google Pay payment scenarios

Airwallex enables you to test your Google Pay integration on web/mobile using a real card and demo API keys. For more information, see Google Pay's test environment setup for web or for Android . Payments made using real cards on demo environment will not be charged.

Google Pay transaction processing involves various steps as detailed in the Google Pay guide. Follow the instructions below to simulate various errors in those processing steps.

You can use your own cards in your wallet along with the trigger condition mentioned in the table to simulate the exact scenario. Note that your card will be mapped to following cards according to their card brand:

  • Visa: 4035501000000008
  • Mastercard: 5354563134257854
  • UnionPay: 6250941006528599
  • JCB: 3569599999097585
  • American Express: 370636803809394
ScenarioEnvironmentTrigger ConditionError codeError messageError stage
Transaction successMobile & WebAny card number and amount combination apart from special conditions mentioned belowN/AN/AAfter Confirm PaymentIntent API
Transaction declined by issuerMobile & WebTransaction amount: 80.51issuer_declinedThe card issuer declined this transaction. Please refer to the original response code.After Confirm PaymentIntent API
Incorrect payment token encryptionMobile & WebProvide wrong encrypted_payment_token in Confirm PaymentIntent API request.validation_errorInvalid Google Pay tokenAfter Confirm PaymentIntent API
Authentication declined in frictionless modeMobile & WebTransaction currency: AUD; Amount: 20.42authentication_declinedN/AAfter Confirm PaymentIntent API and 3DS processing
Authentication declined in challenge modeMobile & WebTransaction currency: AUD; Amount: 20.43authentication_declinedN/AAfter Confirm PaymentIntent API and 3DS processing
Transaction blocked by Airwallex risk systemMobile & WebTransaction currency: AUD; Amount: 20.41risk_declinedThe transaction is blocked because of risk concern.After Confirm PaymentIntent API
  • Google Pay supports different processing modes :
    • PAN_ONLY : When the card is saved on google account like Youtube or similar products.
    • CRYPTOGRAM_3DS : When the card is saved on the android device wallet with 3DS cryptogram
  • You can switch between Google account & Android wallet to simulate the processing modes mentioned above.
  • Google pay PAN_ONLY mode can be tested together with Airwallex internal 3DS. When 3DS triggered for your Google Pay test transaction, it will go through successfully under challenge mode.

AVS scenarios

Use these test details to simulate various AVS (Address Verification Service) results. See AVS codes for a full list of response codes that you might receive when AVS is performed.

PANAmountAVS Code
222300001018137520.23Y
518554000000001999.99N
222300001018137520.20U
On this page