transstat.cgi

 

Description

transstat.cgi is used for checking the current status of a transaction. The response is sent as a number.

 

Function call

 http://payment.architrade.com/cgi-bin/transstat.cgi


Input parameters

The function transstat.cgi accepts the following input parameters:

Parameter

Description

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.

transact

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

orderid

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

currency

Currency code of the transfer in the ISO4217 form, (see other ISO4217 currency codes).

[account]

If the account parameter was initially used when the payment was made it should also be used here.


Return parameters

The function transstat.cgi returns an integer code. The possible values are:

 

0: or nothing – the transaction was not found.

1: the transaction was found, but it needs re-authorisation/confirmation.

2: the transaction was found and is either captured or ready to be captured

 

Notes

An alternative to transstat.cgi is the function transimg.cgi , which returns an image indicating the status of a specific transaction, rather than a number.