splitpay_info.cgi
Description
The script retrieves information about a Split Payment.
Function call
https://user:passwd@payment.architrade.com/cgi-adm/splitpay_info.cgi
Username and password from the API-user created in the Dibs administration is required in the URL.
Input parameters
splitpay_info.cgi accepts the following parameters:
Parameter | Description |
| merchant | Shop identification. The Merchant number appears in the e-mail received from DIBS during registration with DIBS or on your contract. Your merchant number can also be retreived by contacting your respective DIBS support department below. Denmark Norway Sweden |
| transact | The unique DIBS identification number for the transaction you want to capture. The transact is returned from a successful authorisation, and is a as minimum 6-digit integer , e.g. transact=123456. |
Return parameters
The function splitpay_info.cgi returns the following response parameters:
Parameter | Description |
| transact | All transactions are given a unique DIBS identification number. It is at minimum a 6-digit integer, e.g. transact=123456. If "split" is used, then "transact" is replaced by "transact1", "transact2", etc. |
| amountleft | The remaining amount. |
| authamount | The authorized amount. |
| spcaps | Number of Split Payment sub-transactions. |
| settled | Net settled amount. |
| captured | The sum of captured amounts. |
| refunded | The sum of refunded amounts. |
| status | Status of the Split Payment base transaction. 1 = open 2 = closed 3 = pending closure |
| stransact_01 ... nn | For each Split Payment sub transaction, the id is assigned its own HTTP value. Eg. stransact_01=xxxxxxxx. |
| sorderid_01 ... nn | For each Split Payment sub-orderid, the id is assigned its own HTTP value. Eg. sorderid_01=xxxxxxxx . |
| [pending_captures] | The sum of captures awaiting batch. |
| [pending_refunds] | The sum of refunds awaiting batch. |
Example
This example shows the call to splitpay_info.cgi in the form of a simplified standard HTML form:
|
<form action="https://user:passwd@payment.architrade.com/cgi-adm/splitpay_info.cgi" method=POST> |