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:
PAN | Action | Identifies as |
---|---|---|
4000112401172221 | Authorize | Visa-Debit, Consumer, CA |
5500120801422221 | Authorize | Mastercard-Credit, Consumer, DK |
4242120802091112 | Fail on authorize | Visa-Credit, Consumer, DK |
4000253302611113 | Fail on capture | Visa-Debit, Corporate, AW |
5500113602321114 | Fail on cancel | Mastercard-Credit, Consumer, KY |
5100116202241115 | Fail on refund | Mastercard-Debit, Consumer, CX |
When testing card payments the PAN must validate the LUHN check^1. Using the following last 4 digits, you can
trigger an error for a given action on the payment.
PAN last 4 | Fails on action |
---|---|
1112 | Authorize |
1113 | Capture |
1114 | Cancel |
1115 | Refund |
All PAN used that do not end with one of the 4 listed examples above, will be handled without error.
Testcards must conform to the following format:
NOTE: See the tables below for more info.
Brand | Segment | Country code | Use any 4 digits | Trigger action |
---|---|---|---|---|
XXXX | X | XXX | XXXX | XXXX |
Digit | Brand |
---|---|
4242 | Visa |
4000 | Visa-Debit |
5500 | Mastercard |
5100 | Mastercard-Debit |
5019 | Dankort |
6007 | Forbrugsforeningen |
Digit | Segment |
---|---|
1 | Consumer |
2 | Corporate |
Country code according to ISO 3166-1 numeric.