Инструменты страницы
Request for order payment
In this document, the following data type conventions are used when describing request and response parameters:
- string – string;
- array – data array;
- object – data object;
- data – date;
- boolean – boolean (logical) data type;
- int. (integer) – integer data type;
- amount – a numeric data type (amount).
This request also allows to accept a one-phase P2P_debit
payment only if the order is registered as a P2P order with the passed parameter WITHOUT_TO_CARD feature
.
Request parameters:
Parameter | Type | Description | Example |
---|---|---|---|
| string |
Order number in the payment gateway. Unique within the payment gateway. | 0f7a3d11-43ac-7942-80ce-08f700f18047 |
| string |
Sbersafe binding identifier. |
|
| string |
Payment card number. | 4276010013296064 |
| string |
The validity of the card. | 202412 |
| string |
Name of the cardholder. | Integration Tester |
| string |
CVC/CVV2 code on the back of the card. | 555 |
| string |
Customer's phone number without a leading «7». | 9875270160 |
| string |
Customer's email address. | test@test.com |
| string |
Delivery address. |
|
| string |
Loyalty program identifier. | sbrf_spasibo |
| string |
Amount of «Spasibo» bonuses (in units of bonuses). When you specify bonuses in the order registration request, they are deducted from the amount in | 100 |
| string |
A block containing information about the loyalty program identifier and the amount of points. |
|
| string |
Gateway Binding (External). |
|
| string |
Flag for importing bindings. |
|
| string |
Extra options. It is forbidden to pass reserved names in the parameter (if they are passed, the order may be rejected):
|
|
| string |
Google Pay payment token. |
|
| string |
Samsung Pay payment token. |
|
| string |
Apple Pay payment token. |
|
| string |
Transaction identifier created on the 3DS server. This parameter is used for Customer authentication using the 3DS Protocol version 2.0. |
|
| boolean |
Additional parameter used in order to avoid saving card data during payment. |
Response parameters:
Parameter | Type | Description | Value example |
---|---|---|---|
| int |
Error code. | 0 |
|
string | Error description. | «Invalid operation for the current order status» |
| string |
Order number in the payment gateway. Unique within the payment gateway. | de2ad073-79f5-7877-b600-69d00008e652 |
| string |
Order status in the payment system. | DEPOSITED |
| string |
Redirect address to the address of the ACS server. | "https://test.com/acs/auth/start.do" |
| string |
Parameter to pass to ACS for authentication. | eJxVUk1zgjAQ/SsM95KEr1pnjUOLnXqgYxUvvVHYAVQ+DFDUX99EUeshM/t2N2/3vQSmXCV5mU70dfj+N |
| string |
URL to redirect the payer to after authentication. | "https://test.com/release04/order/finishTds" |
| string | Return address after the payment. | "https://test.com/release04/merchants/sbersafe/finish.html4" |
| boolean |
Flag indicating that the payment/transfer will be made using the 3DS Protocol version 2.0. The following values are available:
This parameter is used for Customer authentication using the 3DS Protocol version 2.0. |
|
| string |
Packed data of challenge request. This value should be used as the value of the |
|
| string |
Transaction identifier created on the 3DS server. This parameter is used for Customer authentication using the 3DS Protocol version 2.0. |
|
| string |
The URL address of the ACS to collect data about the browser. This parameter is used for Customer authentication using the 3DS Protocol version 2.0. |
|
| string |
URL address of the 3DS server for connecting browser data to include in the AReq (Authentication Request) request from the 3DS server to the ACS server. This parameter is used for Customer authentication using the 3DS Protocol version 2.0. |
|
| string |
Base64-encoded CReq (Challenge Response) data to send to the ACS server. This parameter is used for Customer authentication using the 3DS Protocol version 2.0. |
Request example:
POST /order/payment?mdOrder=0f7a3d11-43ac-7942-80ce-08f700f18047&pan=4276010013296064&expiry=202412&cardholder=Integration%20Tester&cvc=555&phone=9875270160&email=test@test.com HTTP/1.1 Host: 3dsec.sberbank.ru/sbersafe Content-Type: application/x-www-form-urlencoded Accept: application/json Content-Length: <content-lenght>
Response example:
HTTP/1.1 200 OK Content-Type: application/json Cache-Control: no-cache {"errorCode":0,"mdOrder":"0f7a3d11-43ac-7942-80ce-08f700f18047","orderStatus":"DEPOSITED","redirect":"https://test.com/payment/merchants/rbs/finish.html?orderId=0f7a3d11-43ac-7942-80ce-08f700f18047&lang=ru","status":"SUCCESS"}