The request used for debiting a pre-authorized order is depositOrder
. This operation can be performed provided that the merchant has the corresponding permissions in the system.
Use the following URL to connect to the Test Service (WSDL):
https://3dsec.sberbank.ru/payment/webservices/merchant-ws?wsdl.
When orders are completed, the cart is passed in the element deposititems
.
positionId
, name
, and itemCode
must match. If at least one value does not coincide, it is considered that the line item is missing from cart in the registration order.quantity
element in the cart of the completion request must not exceed the value of the same parameter in the cart of the registration order request.itemAmount
element value of the items
block must not exceed the value of the same parameter in the original order.quantity
parameter is to be checked for each line item. If the value is too large or too small, the request will fail.If at least one of the above conditions is not met, the order completion request is considered incorrectly formed and the payment gateway returns an error.
In this document, the following data type conventions are used when describing request and response parameters:
Name | Type | Mandatory | Description |
---|---|---|---|
|
ANS36 | Yes |
Identifier of the order in the payment system. It is unique within the system. The identifier is missing if the order registration failed due to an error detailed in errorCode. |
|
N..5 | Yes |
To complete the operation with the full pre-authorization amount, it is necessary to send the full amount of the order or 0.
If the |
|
A2 | No |
Language code in accordance with ISO 639-1. If this parameter is not specified, it is considered that the language is Russian. An error message will be returned in this language. |
If you do not specify the depositAmount
parameter, completion will take place for the entire pre-authorized amount.
Name | Type | Mandatory | Description |
---|---|---|---|
|
N3 | Yes |
Error code. |
|
|
No |
|
Value | Description |
---|---|
0 |
The request has been processed without system errors. |
5 |
The deposit amount exceeds the amount put on hold. |
5 |
The deposit amount must be equal to zero or not less than one roble. |
5 |
Access denied. |
5 |
The user must change the password. |
6 |
Wrong order number. |
6 |
|
7 |
Payment must be in the correct state. |
7 |
System error. |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mer="http://engine.paymentgate.ru/webservices/merchant"> <soapenv:Header/> <soapenv:Body> <mer:depositOrder> <order language="ru" orderId="8c76c56b-426c-435d-a24c-1c0927dd6fca" depositAmount=" "> <!--Optional:--> <!--Zero or more repetitions:--> <params name=" " value=" "/> </order> </mer:depositOrder> </soapenv:Body> </soapenv:Envelope>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns1:depositOrderResponse xmlns:ns1="http://engine.paymentgate.ru/webservices/merchant"> <return errorCode="0"/> </ns1:depositOrderResponse> </soap:Body> </soap:Envelope>