Test cards

A variety of test cards are available for conducting test payments. Depending on which card is used, different types and outcomes of payments can be simulated to test the effect on the webshop integration

Description

When using the test environment, the transaction is not dispatched to the card issuer, but is instead handled by the DIBS test environment, and therefor, test cards should be used. 

The test cards consists of a prefix and a postfix. The prefix determines which kind of card there is to be used (Visa, Mastercard etc.), while the postfix determines the desired result of the test transaction. The card numbers are created by concatenating the prefix and the postfix to create a card number consisting of 16 digits. If the concatenated number is too long, zeros from the postfix should be discarded.

If one for example wants an approved Mastercard test transaction, the following information can be used:

Mastercard prefix: 5100
Approved postfix: 100000000000
Resulting card number: 5100100000000000

On the other hand, if one wants a Visa Electron transaction which will be declined with the reason "Card expired" upon capture, the following information can be used:

Visa Electron prefix: 417500
Declined postfix (capture, Card expired): 100000000003
Resulting card number: 4175001000000003

As seen from the latter example, zeros are discarded from the postfix (100000000003) for the resulting card number to have 16 digits.

Below is a list of standard VISA test card numbers which can be used for simple tests *

There is also included a list of cards for testing fees using the parameter calcfee=true, contact support if you want this feature turned on **

Card Card number Expiry date CVC Result

Dankort *

4571100000000000

06/24

684

Approved

 VISA *

 4711100000000000

06/24 

684 

 Approved

MasterCard *

5100100000000000

06/24

684

Approved

VISA Electron *

4175001000000000

06/24

684

Approved

 VISA *

 4711000000000000

06/24 

684 

 Declined (Authorization)

 VISA *

 4711100000000001

06/24 

684 

 Declined (Capture)

If other cards are needed, they can be created using below information.

Surcharge test cards

Here you can test surcharge fees using the parameter calcfee=true

Card Card number Expiry date CVC Result

 VISA - DK Business - Credit **

 4894991000000000

06/24 

684 

 Approved

 VISA - EU Business - Credit ** 

 4802561000000000

06/24 

684 

 Approved

 VISA - EU Business - Debit ** 

 4687371000000000

06/24 

684 

 Approved

 VISA - Non-EU Business - Credit **

 4608001000000000

06/24 

684 

 Approved

 VISA - Non-EU Business - Debit **

 4587521000000000

06/24 

684 

 Approved

 VISA - Non-EU Private - Credit **

 4620801000000000

06/24 

684 

 Approved

 VISA - Non-EU Private - Debit **

 4000131000000000

06/24 

684 

 Approved

MasterCard - DK Business - Credit **

5534721000000000

06/24

684

Approved

 MasterCard - EU Business - Credit ** 

 5137171000000000

06/24 

684 

 Approved

 MasterCard - EU Business - Debit ** 

 5529601000000000

06/24 

684 

 Approved

 MasterCard - Non-EU Business - Credit **

 5317111000000000

06/24 

684 

 Approved

 MasterCard - Non-EU Private - Credit **

 5253121000000000

06/24 

684 

 Approved

 MasterCard - Non-EU Private - Debit **

 5335041000000000

06/24 

684 

 Approved

 Amex - Non-EU Private - Credit **

 3400001000000000

06/24 

684 

 Approved

 JCB - Non-EU Private - Credit **

 3528001000000000

06/24 

684 

 Approved

 China Union - Non-EU Private - Credit **

 6221591000000000

06/24 

684 

 Approved

 China Union - Non-EU Private - Debit **

 6013821000000000

06/24 

684 

 Approved

 Diners - Non-EU Private - Credit **

 3600001000000000

06/24 

684 

 Approved

 

Prefixes

Below is a list of card number prefixes for testing. These have no effect on the payment being approved or declined.

 Card
Card type
Prefix

Dankort

DK

5019

VISA/Dankort

V-DK

4571

VISA (SE)

VISA(SE)

402005

VISA

VISA

4711

Eurocard/Mastercard (DK)

MC(DK)

541303

Eurocard/Mastercard (SE)

MC(SE)

512586

Eurocard/Mastercard

MC

5100

Diners Club (DK) *

DIN(DK)

361480

Diners Club *

DIN

3040

American Express (DK)

AMEX(DK)

3747

American Express

AMEX

3700

Maestro (DK)

MTRO(DK)

676927

Maestro

MTRO

5020

VISA Electron

ELEC

417500

JCB

JCB

3528

Forbrugsforeningen

FFK

600722

*: Diners Club cards should only consist of a total of 14 digits instead of 16.

Postfixes for authorization

The following postfixes will have effect on the authorization result.

Postfix
Expiry date
CVC
Reason
Flexwin result
DIBS Payment Window result

000000000000

06/24

684

0

Rejected by acquirer

Rejected by acquirer

000000000001

06/24

684

1

Communication problems

Communication problems

000000000002

06/24

684

2

Error at DIBS

Internal error

000000000003

06/24

684

3

Error at acquirer

Acquirer error

000000000004

06/24

684

4

Card expired

Rejected by acquirer

100000000000

06/24

684

 

Approved

Approved

 

Postfixes for capture

The following postfixes will be approved in the authorization, but have different effects on the result of a capture attempt.

 PostfixExpiry dateCVC Flexwin result DIBS Payment Window result

100000000000

06/24

684

Approved

Approved

100000000001

06/24

684

Rejected by acquirer

Error

100000000002

06/24

684

Rejected by acquirer

Error

100000000003

06/24

684

Card expired

Error

100000000004

06/24

684

Rejected by acquirer

Declined

100000000005

06/24

684

Authorization outdated

Declined

100000000006

06/24

684

Incorrect status in DIBS

Declined

 

Do you have a question or need help?
Follow us
DIBS Payment Services
Stockholm +46 (0)8-527 525 00
Göteborg +46 031-600 800
København +45 7020 3077
Oslo +47 21 55 44 00
Close menu