Callbackurl

The response feature offers the possibility of receiving information about a transaction using the callback functionality. This enables you to keep your system updated. Callbackurl will inform you if the transaction went well or there was an error. In other words, you should not only use the continueurl to process the order in your shop-system. Skilled evil minded people can trick the continueurl and call it to place a fake order.

Our advice is therefore, always use the callbackurl.

Upon a transaction, if the field "callbackurl" is defined, the QuickPay system will make a HTTP POST request to that URL. Callbackurl is only reachable for us on port 80 and 443.

Please note that we use multipart/form-data from Version 4 of the payment window.

You should always look at the last post from the callbackurl. The session in the payment window times out after being inactive for 15 min. So you will not receive posts from the callbackurl the next day from an old transaction.

See a simple example of a callbackurl written in PHP

Our example returns a number of variables and a MD5 check, the data could like the list below:

msgtype: capture
ordernumber: 1288254552
amount: 100
currency: DKK
time: 101028102929
state: 3
qpstat: 000
qpstatmsg: OK
chstat: 000
chstatmsg: OK
merchant: Quickpay.dk demo gateway
merchantemail: mail@domain.tld
transaction: 25321877
cardtype: Visa-Dankort
cardnumber: XXXXXXXXXXXX1234
md5check: d610b66fcefc9b2bea7ac6dabefac5bc

You can perform you own MD5 check on the data returned to you. Please note, that the data we return is not the same values that you posted to the payment window. An example of MD5 calculation from the above listed values, could look like this and remember to calculate the values in the correct order (msgtype, ordernumber, amount, currency, time, state, qpstat, qpstatmsg, chstat, chstatmsg, merchant, merchantemail, transaction, cardtype, cardnumber, cardexpire, splitpayment, fraudprobability, fraudremarks, fraudreport, fee, secret)

capture
1288254552
100
DKK
101028102929
3
000
OK
000
OK
Quickpay.dk demo gateway
mail@domain.tld
25321877
Visa-Dankort
XXXXXXXXXXXX1234
md5 secret from the Quickpay-manager

Tags

callback