DengiOnline

2017-07-29 03:29:12

User redirection

When the user settles the invoice, he/she is automatically redirected to the payment result page at the System or Project site (if the Project has provided appropriate URL while invoicing or in the Technical settings in the Merchant's personal account).

Project needs:

Type of URL Method of specifying
URL-address to redirect the user back to the Project site in case of the payment success

1. Specified by the return_url_success parameter while invoicing.

2. In the Technical settings in the Merchant's personal account

URL-address to redirect the user back to the Project site in case of the payment failure

1. Specified by the return_url_fail parameter while invoicing.

2. In the Technical settings in the Merchant's personal account

URL-address to redirect the user back to the Project site in case the payment acquires "In processing" status

(e.g. MegaFon or Euroset payments)

1. In the Technical settings in the Merchant's personal account.

2. The main page of the Project's site by default

Parameters of the redirect request

The System uses the following rules:

  • method - POST/GET;
  • format - XML;
  • encoding - UTF-8.

To the propriate URL the System sends the request, which contains the invoicing parameters and the list of additional:

Parameter Description Format Mandatory

amount_rub

Payment amount in rubles.

decimal(10.2), delimiter — decimal point

Yes

paymentid

Unique Payment ID in the System

integer (30)

Yes

DOL_SIGN

Request signature. Formed as hash using md5 algorithm. Consists of all request parameters concatenated and sorted in the ascending alphabetical order. Parameter name = parameter value + Project secret word

md5('amount=' . $amount . 'amount_rub=' . $amount_rub . 'mode_type=' . $mode_type . 'nick_extra=' . $nick_extra . 'nickname=' . $nickname . 'order_id=' . $order_id . 'paymentid=' . $paymentid . 'project=' . $project . Project secret word)

Parameter names with the '$' prefix are parameter values, e.g. $amount = 1.0000.

Yes