transinfo.cgi

 

Description

The function transinfo.cgi is used for retrieving the status and other transaction information for a specific transaction.

 

Function call

https://payment.architrade.com/cgi-bin/transinfo.cgi

 

Input parameters

The function transinfo.cgi accepts the following input parameters:

Pakker:

Ekstra services:

merchant

The merchant parameter is the shops DIBS identification number. The merchant number is available in the order confirmation email and is a 7-digit integer.

amount

Amount to be transferred. The amount must be given in smallest possible unit, e.g. cents 100 = USD 1.

currency

Currency code of the transfer in the ISO4217 form, e.g. 208 for DKK (other ISO4217 currency codes ).

orderid

The shops order number, which may contain a maximum of 50 characters.

[account]

If several departments in a company use the same acquirer contract it may be beneficial to keep track of the transactions by department. Setting the account parameter enables separation of the transaction by department in the DIBS administration interface.

 

Return parameters

The function transinfo.cgi returns the following response parameters:

Parameter

Type

Description

transact

integer

All transactions are given a unique DIBS identification number, it is a  as minimum 6-digit integer , e.g. transact=123456.

status

integer

The status of the transaction, where:

0 – rejected
1 – authorised
2 – captured
3 – pending info

[approvalcode]

string

For status=1 and status=2 only, the approvalcode contains the acquirer authorisation code. The parameter approvalcode is returned only when the credit card was scanned (track2 is part of the information).

[actioncode]

string

For status=0 only, the acquirer action code for rejecting the transaction is returned. The parameter actioncode is returned only when the credit card was scanned (track2 is part of the information).


Example

The following example shows a standard HTML form for calling transinfo.cgi:

<FORM action="<link https://payment.architrade.com/cgi-bin/transinfo.cgi>https://payment.architrade.com/cgi-bin/transinfo.cgi" method=POST>     <input type="text" name="merchant" value="1234567">
    <input type="text" name="orderid" value="b34xyz">
    <input type="text" name="currency" value="208">
    <input type="text" name="amount" value="123300">
</FORM>