Simple text reply

The FlexWin API offers the facility, that the response from the DIBS server is returned in a simple text format instead of the normal HTML format. This is beneficial when local scripts are required to process/parse the response from the DIBS server before setting up the page that is returned to the customer

Description

The format of the response from the DIBS FlexWin APIs is simple text reply. It is formatted similarly to a normal GET HTTP request, e.g.

status=<status>&transact=<transact>&accepturl=<accepturl>

The simple text reply may contain other parameters depending on the function that is called.

Some functions have the possibility to take the parameters accepturl, declineurl and cancelurl. If these are sent along (while simple text reply is used, they should contain a list of parameters to be returned instead of a url. For example, if one wants a parameter "myparam" with the value "accepted" to be returned only when the API request is accepted, the accepturl should have the value "myparam=accepted".

Notes:

Your scripts must always be prepared to accept that more parameters than specified in the above are returned from the DIBS server. In other words, you script should not fail, should it happen that future changes in the API leads to the functions returning more parameters.

Your scripts must also be prepared to accept that the return-parameters may occur in random order.

For example, if a call to the FlexWin API returns the following string today:

status=<status>&transact=<transact>&cardtype=<cardtype>&approvalcode=<approvalcode>&fee=<fee>

Then tomorrow a similar call could return the following string:

newparam=<newparamvalue>&status=<status>&cardtype=<cardtype>&approvalcode=<approvalcode>&fee=<fee>&transact=<transact>
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