Test Payments

Available testcards and payment methods

Test card numbers

In order to create a test payment specify "testmode": true, when creating the payment in the API.

Example cards:

PANActionIdentifies as
4000112401172221AuthorizeVisa-Debit, Consumer, CA
5500120801422221AuthorizeMastercard-Credit, Consumer, DK
4242120802091112Fail on authorizeVisa-Credit, Consumer, DK
4000253302611113Fail on captureVisa-Debit, Corporate, AW
5500113602321114Fail on cancelMastercard-Credit, Consumer, KY
5100116202241115Fail on refundMastercard-Debit, Consumer, CX
4242137200491116Fail on tokenizationVisa-Credit, Consumer, IE

Testcards must conform to the following format:

BrandSegmentCountry codeUse any 4 digitsTrigger action
XXXXXXXXXXXXXXXX

When testing card payments the PAN must validate the LUHN check^1.

NOTE: See the tables below for more info.

Triggering errors:

Using the following last 4 digits, you can
trigger an error for a given action on the payment.

PAN last 4Fails on action
1112Authorize
1113Capture
1114Cancel
1115Refund
1116Tokenization

All PAN used that do not end with one of the 5 listed examples above, will be handled without error.

Defining card-brand:

DigitBrand
4242Visa
4000Visa-Debit
5500Mastercard
5100Mastercard-Debit
5019Dankort
6007Forbrugsforeningen

Defining segment:

DigitSegment
1Consumer
2Corporate

Country code according to ISO 3166-1 numeric.