Example
Below is an example of a call to transinfo.cgi.
<form method="post" action="https://payment.architrade.com/cgi-bin/transinfo.cgi"> <input type="text" name="merchant" value="87654321"> <input type="text" name="orderid" value="b34xyz"> <input type="text" name="currency" value="208"> <input type="text" name="amount" value="123300"> </form>
Input parameters
Parameter | Description |
---|---|
account |
If several subaccounts are used in DIBS, this parameter is used to determine of which account the API call is from. The subaccounts can be used to seperate transactions from different departments using the same DIBS account. To get an account, please contact the sales department. |
amount * |
The smallest unit of an amount, eg. cent for EUR , øre for Danish crowns. Please refer to the ISO4217 standard for en extensive specification. |
currency * |
Currency specification as indicated in the ISO4217 standard. |
merchant * |
Merchant ID. Used as a unique identification number, and can be found in the DIBS administration or on the invoice from DIBS. |
orderid * | The shops order number for this particular puchase. It can be seen later when payment is captured, and will in some instances appear on the customers bank statement depending on the acquirer and account configuration. |
*: Mandatory parameters
Return parameters
Parameter | Type | Description |
---|---|---|
approvalcode | string. Max 6 characters |
For status=1 and status=2 only, the approvalcode contains the acquirer authorisation code. Note: approvalcode is returned only when the credit card was scanned (track2 is part of the information). |
status | integer |
The status of the transaction. 0: Declined 1: Ready to be captured 2: Captured 3: Inserted (no response from acquirer) |
transact | integer |
The unique DIBS identification number for the transaction. Note: For split payments, this parameter is replaced by 'transact1', 'transact2' and so forth for every sub transaction. |
Note that when using Split payments, the returned status will be anbiguous and should not be relied upon.