Testing Card Payments

In your demo environment, create a test payment with the following data:

1. Payer information

Use any placeholder data you'd like for the required payer information like first name, last name etc.

Do not use any magic values in the name fields for payers — payer name magic values are for testing other payment methods, like bank transfers, and should not be used for card payment tests.

2. Card information

Use one of the demo cards:

Brand Number Expiration date CVV
Visa 4111 1111 1111 1111 03/30 737
Mastercard 5454 5454 5454 5454 03/30 737
Amex 3700 0000 0000 002 03/30 7373

3. Cardholder's name (Magic Values)

Use one of the magic values for the cardholder's name depending on the scenario you want to test:

Successful Payment

Cardholder's First Name Cardholder's Last Name Payment Flow Callbacks you will receive
MAGICVALUE APPROVED

Initiated > Processed > Guaranteed

Initiated

Processed

Guaranteed

Unsuccessful Payment

Use one of the following magic values to simulate a card being declined due to either being expired, having no sufficient funds, or being suspected of fraud:

Cardholder's First Name Cardholder's Last Name Payment Flow Callbacks you will receive
MAGICVALUE CARD EXPIRED

Initiated > Failed

Initiated

Failed

MAGICVALUE NOT ENOUGH BALANCE

Initiated > Failed

Initiated

Failed

MAGICVALUE FRAUD

Initiated > Failed

Initiated

Failed

4. Check the results

You will receive callbacks according to the magic value you chose (see Payment Status Notifications for details).

The failed callbacks will contain information according to the scenario you picked in the reason, reason_code, and client_reason parameters.