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. When the shop goes live, the test system is normally disabled, and should the shop want to use the test mode at a later date the DIBS support can be contacted for reactivation.

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:

Card Card number Expiry date CVC Result

 VISA

 4711100000000000

06/24 

684 

 Approved

MasterCard

5100100000000000

06/24

684

Approved

VISA Electron

4175001000000000

06/24

684

Approved

Dankort

4571100000000000

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.

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