Инструменты страницы
Request for order payment by binding (paymentOrderBinding.do)
In this document, the following data type conventions are used when describing request and response parameters:
- A<n> – a sequence of Latin letters of length <n>;
- A..<n> – a sequence of Latin letters with a length not exceeding <n>;
- N<n> – a sequence of digits of length <n>;
- N..<n> – a sequence of digits with a length not exceeding <n>;
- AN<n> – a sequence of Latin letters and numbers of fixed length <n>;
- AN.. <n> – a sequence of Latin letters and numbers with a length not exceeding <n>;
- ANS<n> – a sequence of Latin letters, numbers and characters of fixed length <n>
- ANS.. <n> – a sequence of Latin letters, numbers and characters with a length not exceeding <n>;
- UTC – date and time, in this case: the date must be passed without specifying the time zone, Moscow time, for the SOAP protocol, the standard encoding xs: dateTime is used.
Request parameters
Name | Type | Mandatory | Description |
---|---|---|---|
|
AN..30 | Yes |
Login of the service account of the merchant. |
|
AN..30 | Yes |
Merchant's service account password. |
|
ANS..36 | Yes |
Order number in the payment gateway. Unique within the payment gateway. |
|
AN..255 | Yes |
The identifier of the previously created binding. Can only be used if the merchant has permission to work with bindings. If this parameter is passed in the given request, it means that: |
|
A2 | No |
Language in the ISO 639-1 encoding. If the language is not specified, the default language defined in the store settings is used. |
|
ANS..39 | Yes |
IP-address of the buyer. IPv6 is supported in all requests (up to 39 characters). |
|
N3 | No |
CVC/CVV2 code on the back of the card. |
|
ANS..40 | No |
Customer's email address. |
Response parameters
Name | Type | Mandatory | Description |
---|---|---|---|
|
ANS..* | No |
On a successful response. In the case of a payment without the need for authentication to the ACS – URL to which redirect is performed after the payment. In case of a 3D-Secure payment, the URL to return to ACS. |
|
ANS..* | No |
On a successful response. Result of a payment attempt. The available values are presented below.
|
|
ANS..3 | Yes |
Error code. Can be missing if the result has not caused an error. |
|
|
No |
|
|
AN..512 | No |
On a successful response in case of payment using 3-D Secure. The URL to go to the access control server. |
|
AN..512 | No |
On a successful response in case of payment using 3-D Secure. Payment Authentication Request – payment authentication request. |
|
AN..512 | No |
In case of a successful response, in the case of a payment in which a check was made to ensure that the card belongs to 3-D Secure. The URL to return from the access control server. |
Error codes
Error code | Error text |
---|---|
0 |
The request has been processed without system errors. |
1 |
|
1 | It is necessary to specify CVC2/CVV2 because the merchant does not have a permission to process payments without CVC |
1 | Incorrect language |
1 | [bindingId] is empty |
1 | [mdOrder] is empty |
1 | Card expired |
2 |
The binding is not found. |
2 |
Order not found. |
3 | The order cannot be paid, contact the merchant |
5 |
Access denied. |
5 |
The user must change the password. |
5 | The maximum number of payments attempted run out or the session timeout expired |
7 |
System error. |
Examples
POST request example
mdOrder=eb49300c-95b7-4dcd-9739-eee6c61f2ac4&bindingId=308042e8-2b28-484a-811e-f786c9776c3b&cvc=123
Example of a successful response for an SSL payment
{"redirect":"http://ya.ru?orderId=eb49300c-95b7-4dcd-9739-eee6c61f2ac4","info":"Your payment has been processed, redirecting...","errorCode":0}
Example of a successful response for a 3DS payment
{"info":"Your payment has been processed, redirecting...","acsUrl":"https://test.paymentgate.ru/acs/auth/start.do","paReq":"eJxVUdtugkAQ/RXCOy7LRdQMa2ixKU28pGrfyTICqSzKpcW/765AbR8mOWcyOWfmDCy74qx9YVXn\npfB1OjF1DQUvk1ykvn48vBgzfcngkFWI4R55WyGDNdZ1nKKWJ74+TVz05tPE8NyZbThOfDJmFjcN\ni55Mz+MJzu25zmAXvOOVwWDEpM/EAjJSqVjxLBYNg5hfn6INcyxvappABgoFVlHIPCA9ABEXyPb4\nhWKVp1mzyQUCuTeBl61oqhubOjaQkUBbnVnWNJcFId5sPuFlAUT1gDy8d61CtdTo8oStw+C7r5W5\nCVNZx9v6ENmyfCBqApK4QWaZ1KXUcjVqLVx7Ycu77n2IC2XOqDqjh3BRDsGj/5eDDLeS2Y+bjwyw\nu5QC5YRU/sVAHts+v6rceCODyfbb7m3bfmzD22dnlycaFHF+DGl0y6hK8z6kFHMZity7l1QEiJIh\nw6PI8GOJ/v3+BweMtyE=","termUrl":"https://test.paymentgate.ru:443/testpayment/rest/finish3ds.do","errorCode":0}
Example of an error response
{"error":"Access denied","errorCode":5,"errorMessage":"Access denied"}