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

image Initiated

image Processed

image 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

image Initiated

image Failed

MAGICVALUE NOT ENOUGH BALANCE

Initiated > Failed

image Initiated

image Failed

MAGICVALUE FRAUD

Initiated > Failed

image Initiated

image Failed

3. Card information

Use one of the demo cards:

The demo cards must be used together with cardholder name magic values.

Number Expiration date CVV Currency Issuing Country Type

Visa

4010 1000 0000 0016 03/30 737 EUR DE Debit
4988 4388 4000 0012 03/30 737 EUR ES Debit
4242 4201 0000 0017 03/30 737 GBP GB Credit
4761 3600 0000 0017 03/30 737 INR IN Debit
4111 1111 1111 1111 03/30 737 USD US Credit

Mastercard

2222 4000 1000 0016 03/30 737 CAD CA Credit
5163 6136 0000 0014 03/30 737 AUD AU Debit
5252 5202 0000 0017 03/30 737 JPY JP Debit
5454 5454 5454 5454 03/30 737 USD US Credit

American Express (Amex)

3700 0000 0000 002 03/30 7373 USD

US

Credit

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.

You will also receive payment information via returnUrl or OnCompleteCallback handler, depending on which one you are using (see After-Payment Settings for details).