5. Your own test

With the help of our test system, virtually any situation imaginable can be tested prior to going online.

Test mode start-up

To place DIBS in the test mode, two things must be carried out first:

  1. Your shop should have activated the test mode with DIBS. New shops always start with the test mode activated, but the test mode is deactivated as soon as the shop goes “live” (so test cards can no longer be used). If you wish to activate the test mode again at a later date, this can be arranged by contacting us at support(at)dibs.dk.

  2. A CGI variable must be declared, which notifies DIBS that tests are being conducted. This variable is inserted as a “hidden field” together with the other variables:

    <input type="hidden" name="test" value="foo"/>

Once this variable is declared, the transaction will not be sent to the acquirer, but will instead be handled by the DIBS test system. When a transaction is carried out, the test transaction can be seen in DIBS Administration, where the transaction can also be completed. Test transactions can be distinguished from actual transactions, since test transactions are shown in italics in the administration and also feature the addition of (test) next to the indication of the card type.

If you have integrated the capture functionality with the help of DIBS-API, it is also possible to test this communication.

Test module structure

The module is set up so that certain card numbers give certain replies. If a card number, contrary to those described below, is inadvertently sent, the reply will be “Rejected by acquirer”. Examples of other error codes are:

  • Card type not accepted by this shop
  • Order ID must be unique
  • Too few amount fields for split payments
  • Control numbers are required by this shop
  • Card does not match the card type shown

Test card numbers

Below is a list of card numbers relating to various card types which return different error types (or are approved) so you can test your own system’s reactions to these errors.

Test card numbers are composed of a prefix and a postfix. The prefix indicates the card type and the postfix indicates the desired result. I.e.:

Test card number = prefix + postfix

Example of a 4-numeral prefix:

You wish to test the authorization of a Dankort, and to have it approved:
Prefix for Dankort: 5019
Code for approval: 100000000000
Test-Dankort with an approved authorization: 5019100000000000

List of prefixes

Card

Prefix

Card type

Test cards which will be approved

Dankort

5019

DK

5019100000000000

VISA/Dankort

4571

V-DK

4571100000000000

VISA (SE)

402005

VISA(SE)

4020051000000000

VISA

4711

VISA

4711100000000000

Eurocard/Mastercard (DK)

541303

MC(DK)

5413031000000000

Eurocard/Mastercard (SE)

512586

MC(SE)

5125861000000000

Eurocard/Mastercard

5100

MC

5100100000000000

Diners Club (DK) *)

361480

DIN(DK)

36148010000000

Diners Club *)

3040

DIN

30401000000000

American Express (DK)

3747

AMEX(DK)

3747100000000000

American Express

3700

AMEX

3700100000000000

Maestro (DK)

676927

MTRO(DK)

6769271000000000

Maestro

5020

MTRO

5020100000000000

VISA Electron

417500

ELEC

4175001000000000

JCB

3528

JCB

3528100000000000

Forbrugsforeningen

600722

FFK

6007221000000000

*) Diners Club consists of only 14 digits minus the two middle zeros.


Authorization

Card number

Expiry date

CVC

Reason

Result

100000000000

06/24

684

Approved

000000000000

06/24

684

0

Rejected by acquirer

000000000001

06/24

684

1

Communication problems

000000000002

06/24

684

2

Error at DIBS

000000000003

06/24

684

3

Error at acquirer

000000000004

06/24

684

4

Card expired

*) Card Verification Code


Capture

Card number

Expiry date

CVC

Reason

100000000000

06/24

684

Approved

100000000001

06/24

684

Rejected by acquirer

100000000002

06/24

684

Rejected by acquirer

100000000003

06/24

684

Card expired

100000000004

06/24

684

Rejected by acquirer

100000000005

06/24

684

Authorization outdated

100000000006

06/24 684

Incorrect status in DIBS

 

Invoice Testing


PayByBill Testing - Norway

You can conduct tests of an invoice transaction using the following test data for the Norwegian market. It may also be possible to perform test transactions with a valid social security number & postal address, but this is not recommended. Rating requirement for an order to be accepted is 35.

1. Name TESTDAME PETRA – Rating 81
Social security number: 18106500076
Street address: SOFIENBERGGATE 56
Postal address: 0563 OSLO

2. Name: TESTMANN PETTER – Rating 81
Social security number: 18106500157
Street address: HUNDREMETERSKOGEN 100
Postal address: 0563 OSLO

3. Name: HANSEMANN HANS – Rating 75
Social security number: 12053400068
Street address: HANSEGATEN 17
Postal address: 0567 OSLO

4. Name: NOFF NASSE – Rating -3
Social security number: 18126500137
Street address: HUNDREMETERSKOGEN 100
Postal address: 0303 OSLO

PayByBill Testing - Sweden

You can conduct tests of an invoice transaction using the following test data for the Swedish market.

Social security number – 8301153550, 6604257292, 6112030215, 6608152994, 8312106639, 6804289509, 8506306607 Postnummer - 12345

PayByBill Testing - Denmark

You can conduct tests of an invoice transaction using the following test data for the Danish market.

Name: Susanne Fjelsted
Social security: 24101957
Street address: Gammelgårds Alle 1
Postal address: 2665  Vallensbæk Strand

Name: Mona Hansen
Social security: 05071948
Street address: Fjordmarken 8
Postal address: 6200  Aabenraa

Name: Bettina Werner
Social security: 20031966
Street address: Persillehaven 127
Postal address: 2730  Herlev

Name: Hans Jørgen Mogensen
Social security: 28061957
Street address: Jørgen Glavinds Vej 12
Postal address: 7200  Grindsted

Handelsbanken Finans Invoice Testing - Sweden


Test results

When testing Handelsbanken Finans invoice it is the total order sum amount that determines the credit decision depending of the last digit according to the table below. If the numbers below aren't used the credit answer is "Authorization OK".

Last number/digit of the total order
sum amount

Credit decision
8 Denied
9 Technical error


Test persons

You are free to use any correct Swedish "personnummer" and then decide the credit decsision depending on the amount you send. You will be returned a random name with an address. If you send the same "personnummer" again at a later time, the same name and address will be returned.
It is recommended to use the following test persons that have predefined names and addresses.

"Swedish personnummer"

Name and Adress

640825-2333 ISAKSSON TOMAS
VÄNERSVIKSGATAN 4
553 25 JÖNKÖPING
651106-3155 HENRIKSSON RUBEN
GETSTIGEN 4
129 69 HÄGERSTE


Collector PayPort Invoice Testing


Below are swedish and norwegian test data for approved and declined transactions.

Swedish test data:

Approved "Swedish test personnummer"

Name and Adress

1602079954 FÖRNAMNAKT211 EFTERNAMNAKT211
GATUADRESSAKT 211
90737  UMEÅ
1602079962 FÖRNAMNAKT25 EFTERNAMNAKT25
GATUADRESSAKT 25
70213  ÖREBRO
1602079988 FÖRNAMNAKT26  EFTERNAMNAKT26
GATUADRESSAKT 26
66830 ED

Rejected "Swedish test personnummer"

Name and Adress

1602129965

Leave these fields empty

1602099960

Leave these fields empty

1603018878

Leave these fields empty


Norwegian test data:

Approved "Norwegian test personnummer"

Name and Adress

06073910828Tester Person
Startveien 56
9300 FINNSNES
03078525737Test Ung Person
Supporterveien 357
5033 BERGEN
01010112377Person Demo
Testegata 76
4950 RISØR

Rejected "Norwegian test personnummer"

Name and Adress

23077517375

Leave these fields empty

13116311229

Leave these fields empty

02028521130

Leave these fields empty




Finnish test data:

Approved "Finnish test personnummer"

Name and Adress

071259999M Dmitri Jonatan Casimirsson
Sepänkatu 11 A 1
70100 KUOPIO
2505499980 Minja Maija-Leena Tuulispää
Klemetsögatan 3 B 27
65100 VASA

Rejected "Finnish test personnummer"

Name and Adress

010449998P

Leave these fields empty

280362998N

Leave these fields empty




SveaWebPay Testing


Swedish person test data:
Approved payment : 4605092222
Rejected payment : 4610081111
Fraud: 4606082222
Insufficent funds payment: 4611071111

Swedish company test data:
Approved payment 4608142222
Rejected payment : 4608302222
Fraud: 4609191111
Insufficent funds payment: 4506172222

Norwegian person test data:
Approved payment 17054512066
Rejected payment : 14077421433
Fraud: 22084419684
Insufficent funds payment: 30036549854

Norwegian company test data:
Approved payment 923313850
Rejected payment : 842852102
Fraud: 812345672
Insufficent funds payment: 931024280



Klarna Testing


Klarnas test persons and test companies for supported countries are listed here. All approved persons have unlimited credit and the system will never accept purchases from the non-approved ones.Klarna will not pay for the invoices created with test persons nor test companies and will not collect any fees for these invoices.


SWEDEN
PersonApprovedNot approved
Social security no: 410321-9202 411028-8083
First name: Testperson-se Testperson-se
Last name: Approved Denied
Street: Stårgatan 1 Stårgatan 1
Zip code: 12345 12345
City: Ankeborg Ankeborg
Phone number: 0765260000 0765260000


Company Approved Not approved
Company registration no: 16002031-0132 16002032-0131
Company name: Testcompany-se Testcompany-se
Street 1: Stårgatan 1 Stårgatan 1
Zip code 1: 12345 12345
City 1: Ankeborg Ankeborg
Street 2: Lillegatan 1 Lillegatan 1
Zip code 2: 12334 12334
City 2: Ankeborg Ankeborg
Phone number: 0765260000 0765260000




DENMARK

PersonApprovedNot approved
Social security no: 3011986024 3011986331
First name: Testperson-dk Testperson-dk
Last name: Approved Denied
Street: Sæffleberggate 56,1 mf Sæffleberggate 56,1 mf
Zip code: 6800 6800
City: Varde Varde
Phone number: 20123456 20123456


Company Approved Not approved
Company registration no: 27968880 99999993
Company name: Testcompany-dk Testcompany-dk
Street 1: Sæffleberggate 56,1 mf Sæffleberggate 56,1 mf
Zip code 1: 6800 6800
City 1: Varde Varde
Street 2: N/A N/A
Zip code 2: N/A N/A
City 2: N/A N/A
Phone number: 20123456 20123456


NORWAY
PersonApprovedNot approved
Social security no: 01121579533 01121598422
First name: Testperson-no Testperson-no
Last name: Approved Denied
Street: Sæffleberggate 56 Sæffleberggate 56
Zip code: 0563 0563
City: Oslo Oslo
Phone number: 40123456 40123456


Company Approved Not approved
Company registration no: 999999999 811111112
Company name: Testcompany-no Testcompany-no
Street 1: Sæffleberggate 56 Sæffleberggate 56
Zip code 1: 0563 0563
City 1: Oslo Oslo
Street 2: N/A N/A
Zip code 2: N/A N/A
City 2: N/A N/A
Phone number: N/A N/A



Go to step 6 in the 10 Step Guide
 
CMS - Content Management System By SiteLoom