Capture

This service can be used to capture previously authorized transactions

Capture can be executed on all authorized transactions.

File format

File type

File name syntax

File name example

Request file

requestDDMMYY_NN.txt

request311213_01.txt

Request run file

requestDDMMYY_NN.run

request311213_01.run

Response file

responseDDMMYY_NN.txt

response311213_01.txt

Response run file

responseDDMMYY_NN.run

response311213_01.run

The .txt file is in the csv file format. The first line of the .txt files contains the headers for the columns which includes:

Header

Type

Mandatory

transact

Integer

Yes

orderid

String

Yes

amount

Integer

Yes

currency

Integer

Yes

test

String (“true” or ”false”)

No

Please note that the optional parameters are only available if the DIBS Header is used (see below).

A simple example of file content:

123456789,”myOrderId1”,100,208
123456790,”myOrderId2”,200,978
 

An advanced example of the file content:

  
CsvHeader: true
NumberOfCsvRecords: 2
ReturnReason: true
ReturnActionCode: true

“transact”,”orderid”,”amount”,”currency”,”test”
123456789,”myOrderId1”,100,208,”true”
123456790,”myOrderId2”,200,978,”true”
 
Response:
  
CsvHeader: true
NumberOfCsvRecords: 2

"transact","resultcode","actioncode","reason"
1119139425,0,,
1119139700,0,,
 

The CSV header contains general information of the CSV table and information about which return information that is desired. Aside from below fields, the standard header fields are also available.

The following return information is available for captures:

CSV header Discription

ReturnReason: true

If this header is set, then the response parameters will include the "reason".

ReturnActionCode: true

If this header is set, then the response parameters will include "actioncode".

 

Do you have 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