Инструменты страницы
Request for payment using Google Pay with fiscal data (googlePay)
The request used for payment via Google Pay is googlePay
.
Use the following URL to connect to the Test Service (WSDL):
https://3dsec.sberbank.ru/payment/webservices/merchant-ws?wsdl.
Use the standard requests to the payment gateway for the operations of reversal, refund and payment completion.
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
The request parameters are given in table below.
Name | Type | Mandatory | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
AN..255 | Yes |
Merchant login in the payment gateway. |
|||||||||
|
ANS..32 | Yes |
The number (identifier) of the order in the store system is unique for each store within the system – up to 30 characters. If the order number is generated on the Payment Gateway side, this parameter is not mandatory. |
|||||||||
|
AN..8192 | Yes |
A token obtained from Google Pay and encoded in Base64. |
|||||||||
|
ANS..39 | No |
IP-address of the buyer. IPv6 is supported in all requests (up to 39 characters). |
|||||||||
|
N..12 | No |
Payment amount in minimum currency units. |
|||||||||
|
ANS..598 | No |
Description of the order in any format. Only the first 24 characters of this field are transferred to Sberbank's processing for inclusion in the merchant's financial statements. To enable sending this field to the processing system, contact the technical support service. |
|||||||||
|
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. |
|||||||||
|
Not applicable | No |
Additional parameters of the order that are stored in the merchant personal account for the subsequent viewing. For each additional parameter, use the
Below is an example of how to use this parameter.
<entry> <key>parameter_1</key> <value>value_1</value> </entry> <entry> <key>parameter_2</key> <value>value_2</value> </entry> If the merchant has fiscalization set up, when indicating email (the buyer's email address) and/or phone (the buyer's cell phone number) as additional parameters, these parameters are first used to send the fiscal receipt. It is forbidden to pass reserved names in the parameter (if they are passed, the order may be rejected):
|
|||||||||
|
A..5 | No |
Parameter that defines the necessity of a pre-authorization (putting the amount on hold on the customer's account until its debiting). The following values are available:
If the parameter is not specified in the request, a one-phase payment occurs. Two-phase payments functionality is available if specifically requested by Merchant from the bank. This parameter can be passed either as a boolean value (without quotation marks) or as a string (with quotation marks). |
|||||||||
|
ANS..255 | No |
Identifier of the Customer in the Store system. This parameter is used for the binding functionality. May be present if the store is allowed to create bindings. Specifying this parameter when processing payments with the use of bindings is mandatory. Otherwise, a payment will be unsuccessful. |
|||||||||
|
N3 | No |
Numeric ISO 4217 code of the payment currency. If this parameter is not specified, it is considered to be equal to the default currency code. |
|||||||||
|
ANS..40 | No |
Customer's email address. You can specify several comma separated (without spaces) email addresses – in this case the receipt will be delivered to all specified addresses. |
|||||||||
|
NS..12 | No |
Customer's phone number. It can be of the following format:
If the number is passed in a separate parameter and in additional parameters, the number specified in this |
|||||||||
|
ANS..512 | Yes |
The URL to which the user is to be redirected in case of a successful payment (and also in case of a failed payment where the |
|||||||||
|
ANS..512 | No |
The address to which the user is to be redirected in case of a failed payment. The address must be specified in full including the protocol used (for example, https://test.ru instead of test.ru). Otherwise, the user will be redirected to the address of the following type: http://<payment_gateway_address>/<merchant_address>.
The parameter is optional. In this case, an unsuccessful payment will lead to a redirect to |
|||||||||
|
Data block for transferring additional parameters of the OFD | Yes |
Some parameters of The transfer of this block is possible only when using the following OFDs:
|
|||||||||
|
Not applicable | Yes |
Block containg the cart of items of the order. The description of the attributes is given below. |
orderBundle
orderBundle
contains the following elements.
A parameter included in a block and indicated as mandatory is only mandatory within that block. If the section is optional and missing, then the parameters included in it should not be passed.
Name | Type | Mandatory | Description | FFD version |
---|---|---|---|---|
|
ANS..21 | No |
Order creation date in the format YYYY-MM-DDTHH:MM:SS. |
All versions. |
|
Not applicable | No |
Block containing attributes with data about the customer. The description of the attributes is given below. |
All versions. |
|
Not applicable | Yes |
Block with the attributes of the items in the cart. The description of the attributes is given below. |
All versions. |
customerDetails
customerDetails
contains the following elements.
A parameter included in a block and indicated as mandatory is only mandatory within that block. If the section is optional and missing, then the parameters included in it should not be passed.
Name | Type | Mandatory | Description | FFD version |
---|---|---|---|---|
|
ANS..40 | See note below. |
Customer's email address. You can specify several comma separated (without spaces) email addresses – in this case the receipt will be delivered to all specified addresses. |
All versions. |
|
NS..12 | See note below. |
Customer's phone number. It can be of the following format:
If the number is passed in a separate parameter and in additional parameters, the number specified in this
When using ATOL fiscalization, the |
All versions. |
|
ANS..40 | No |
Customer's preferred way of communication. |
All versions. |
|
|
No |
All versions. |
|
|
ANS..100 | No |
Payer's first name, last name, and patronymic. |
1.05 and later versions. |
|
ANS..100 | No |
The series and number of the payer's passport in the following format: |
1.05 and later versions. |
|
N..12 | No |
Taxpayer identification number. From 10 to 12 digits can be passed. |
1.05 and later versions. |
It is mandatory to pass one of the two parameters: email
or phone
.
deliveryInfo
deliveryInfo
contains the following elements.
Name | Type | Mandatory | Description | FFD version |
---|---|---|---|---|
|
ANS..20 | No |
Delivery method. |
All versions. |
|
A..2 | Yes |
The two-letter country code for the delivery country. |
All versions. |
|
ANS..40 | Yes |
Delivery city. |
All versions. |
|
ANS..255 | Yes |
Delivery address. |
All versions. |
A parameter included in a block and indicated as mandatory is only mandatory within that block. If the section is optional and missing, then the parameters included in it should not be passed.
cartItems
cartItems
contains the following elements.
A parameter included in a block and indicated as mandatory is only mandatory within that block. If the section is optional and missing, then the parameters included in it should not be passed.
Name | Type | Mandatory | Description | FFD version |
---|---|---|---|---|
|
Not applicable | Yes |
Tag containing the parameters with the data about one item from the cart .
Item number is specified as an attribute of the tag:
A request must contain a separate |
All versions. |
items
items« contains the following elements.
Name | Type | Mandatory | Description | FFD version |
---|---|---|---|---|
Name
TypeANS..100 DescriptionRESTName or the description of an item in any format.
Use REST Online LendingFor Online Lending functionality, it's necessary to specify a description of the line item in accordance with the Yandex.Market catalog, subject to the following requirements:
WSName or the description of an item in any format.
Use WS Online LendingFor online crediting functionality it's necessary to specify a description of the good item in accordance with the Yandex.Market. |
ANS..100 | Yes |
Name or the description of an item in any format.
Use |
All versions. |
|
Not applicable | No |
Additional block containing the parameters describing a line item. The description of the attributes is given below. The field size limit is 1024 bytes. |
All versions. |
|
N..18 | Yes |
Element describing the total of items of one |
All versions. |
|
N..12 | No |
The sum of the cost of all line items of one When calculating itemAmount = itemPrice*quantity parameter, the result is rounded up to the second digit after the decimal point. For example, if the calculation result is 100.255, then final value will be 100.26. |
All versions. |
|
N3 | No |
Currency code of a line item according to ISO 4217. If the parameter is not specified, it is considered to be equal to the order currency. |
All versions. |
|
ANS..100 | Yes |
Number (identifier) of a line item in the store system. |
All versions. |
|
Not applicable | Only for stores with enabled fiscalization settings |
An additional tag with attributes describing the tax. Nested tags are described below. |
All versions. |
|
N..18 | Only for stores with enabled fiscalization settings |
The price of one line item of one
|
All versions. |
|
See description. | Only for stores with enabled fiscalization settings |
Tag that serves to pass a set of attributes of the line item. Attributes must be specified as follows.
<attributes name="attribute_name_1">attribute_value_1</attributes> <attributes name="attribute_name_2">attribute_value_2</attributes> See description below. |
1.05 and later versions. |
==== itemAttributes ====
itemAttributes contains the
attributes array in which the attributes of a line item must be specified (see example and table below).
<sxh JavaScript>
«itemAttributes»:{«attributes»:[{«name»:«paymentMethod»,»value«:«1»},{«name»:«paymentObject»,»value«:«1»}]}
</sxh>
Name | Type | Mandatory | Description | FFD version |
---|---|---|---|---|
|
N..2 |
Yes |
Payment type. Possible values:
Values are passed in the following priority (indicated in descending order of priority):
For paymentMethod, the default value is 1 (full prepayment before the transfer of the payment item). |
1.05 and later versions. |
|
N..2 |
Yes |
Type of item being paid for. Possible values:
Values are passed in the following priority (indicated in descending order of priority):
The default value for paymentObject is 1 (item). |
1.05 and later versions. |
|
ANS | yes (if markQuantity is passed) |
Trade item code in text representation. Maximum length – 32 bytes. |
1.05 and later versions. |
|
| No |
Fractional quantity of the labeled item. |
1.2 and later versions. |
|
ANS..64 | No |
Value of user details. May be transferred only after approval by Federal Tax Service. |
1.05 and later versions. |
|
N..2 | Mandatory if agent_info object is passed. |
Agent type. The following values are available:
|
1.05 and later versions. |
|
|
No |
|
1.05 and later versions. |
|
|
No |
|
1.05 and later versions. |
|
Array ANS..19 | No |
Phone numbers array of the payments operator in +N format. |
1.05 and later versions. |
|
array ANS..19 | No |
An array of Money Transfer operator phone numbers in +N format. |
1.05 and later versions. |
|
ANS..64 | No |
Money Transfer operator name. |
1.05 and later versions. |
|
ANS..256 | No |
Money Transfer operator address. |
1.05 and later versions. |
|
N10..12 | No |
Money Transfer operator TIN. |
1.05 and later versions. |
|
Array ANS..19 | No |
An array of supplier phone numbers in +N format. |
1.05 and later versions. |
|
ANS..256 | No |
Supplier name. |
1.05 and later versions. |
|
N10..12 | No |
Supplier TIN. |
1.05 and later versions. |
==== quantity ====
quantity contains the following elements.
Name | Type | Mandatory | Description | FFD version |
---|---|---|---|---|
|
ANS..20 | Yes |
The unit of measurement for the quantity of line item instances. |
All versions. |
If the FFD is version 1.2 or later, then the following parameters are passed here:
Name | Type | Mandatory | Description | FFD version |
---|---|---|---|---|
|
N1 | Yes |
Quantity of line items in given |
1.2 and later versions. |
|
N..3 | Yes |
Unit of measurement for the quantity of the payment subject. In case of FFD version 1.2+, if the 'nomenclature' and 'markQuantity' parameters are passed, the value is always 0. In other cases, it can have some value. |
1.2 and later versions. |
Possible values of measure
Value | Description |
---|---|
0 | Used for payment subjects that can be sold individually or in units (as well as in the event that the payment subject is a product subject to mandatory labeling with an identification tool (which can be known from mark_code being passed)) |
10 | Gram |
11 | Kilogram |
12 | Ton |
20 | Centimeter |
21 | Decimeter |
22 | Meter |
30 | Square centimeter |
31 | Square decimeter |
32 | Square meter |
40 | Milliliter |
41 | Liter |
42 | Cubic meter |
50 | Kilowatt hour |
51 | Gigacalorie |
70 | Day (24h) |
71 | Hour |
72 | Minute |
73 | Second |
80 | Kilobyte |
81 | Megabyte |
82 | Gigabyte |
83 | Terabyte |
255 | Applicable when using other units of measurement |
==== markQuantity ====
Parameters of markQuantity tag:
A parameter included in a tag and indicated as mandatory is only mandatory within that tag. If the tag itself is not mandatory and is not passed, its included parameters should not be passed.
Name | Type | Mandatory | Description |
---|---|---|---|
|
N..12 | yes |
The numerator of the fractional part of the payment subject. |
|
N..12 | yes |
The denominator of the fractional part of the payment subject. |
==== itemDetails ==== 'itemDetails contains the following elements.
A parameter included in a block and indicated as mandatory is only mandatory within that block. If the section is optional and missing, then the parameters included in it should not be passed.
Name | Type | Mandatory | Description | FFD version |
---|---|---|---|---|
|
ANS..255 | Yes |
Parameter describing additional information regarding a line item. The description of the attributes is given below. |
All versions. |
itemDetailsParams
'itemDetailsParams contains the following elements.
Name | Type | Mandatory | Description | FFD version |
---|---|---|---|---|
Name
TypeAN..255 Type2ANS..255 DescriptionRESTName of the parameter describing the details of a line item WSName of the parameter describing the details of a line item |
AN..255 | Conditional. Mandatory if itemDetailsParams parameter is present. |
Name of the parameter describing the details of a line item |
All versions. |
==== tax ====
tax contains the following elements.
A parameter included in a block and indicated as mandatory is only mandatory within that block. If the section is optional and missing, then the parameters included in it should not be passed.
Name | Type | Mandatory | Description | FFD version |
---|---|---|---|---|
|
N..2 | No |
VAT rate. The following values are available:
If the cart and fiscalization data are not included in the request, then the default values specified in the personal account are passed to the Fiscal Data Operator (see User Manual for personal account). |
All versions. |
|
N..18 | No |
Amount of the tax calculated by the merchant. The amount is specified in minimum currency units |
All versions. |
==== additionalOfdParams ====
additionalOfdParams contains the following elements.
Name | Type | Mandatory | Description | FFD version |
---|---|---|---|---|
|
N..2 | Mandatory if agent_info object is passed. |
Agent type. The following values are available:
|
1.05 and later versions. |
|
|
No |
|
1.05 and later versions. |
|
|
No |
|
1.05 and later versions. |
|
Array ANS..19 | No |
Phone numbers array of the payments operator in +N format. |
1.05 and later versions. |
|
ANS..256 | No |
Money Transfer operator address. |
1.05 and later versions. |
|
N10..12 | No |
Money Transfer operator TIN. |
1.05 and later versions. |
|
ANS..64 | No |
Money Transfer operator name. |
1.05 and later versions. |
|
array ANS..19 | No |
An array of Money Transfer operator phone numbers in +N format. |
1.05 and later versions. |
|
Array ANS..19 | No |
An array of supplier phone numbers in +N format. |
1.05 and later versions. |
|
A..256 | No |
Cashier full name |
1.05 and later versions. |
|
ANS..16 | No |
Additional property of the receipt. |
1.05 and later versions. |
|
ANS..24 | No |
Name of the additional property of the user. |
1.05 and later versions. |
|
ANS..24 | No |
Value of the additional property of the user. |
1.05 and later versions. |
|
N..12 | No |
Cashier's INN |
1.2 and later versions. |
|
ANS..256 | No |
Customer address. |
1.2 and later versions. |
|
NS10 | No |
Customer birth date as dd.mm.yyyy |
1.2 and later versions. |
|
N3 | No |
Country numeric code of the county of Customer's citizenship. The country code is specified according to All-Russian World Countries Classifier (OKSM) |
1.2 and later versions. |
|
N2 | No |
Identification document type numeric code (for example, 21 stands for Russian Passport). |
1.2 and later versions. |
|
NS11 | No |
Series and number of the payer's passport: |
1.2 and later versions. |
|
ANS..64 | No |
Customer's email address. Exactly one of the two fields must be passed: |
1.2 and later versions. |
|
NS..19 | No |
Customer's phone number. Must be passed with the country code without spaces and additional characters (except for + character). For example, the number «+371 2 1234567» should be passed as «+37121234567»). Exactly one of the two fields must be passed: |
1.2 and later versions. |
|
N12 | No |
INN of the buyer. |
1.2 and later versions. |
|
ANS..256 | No |
Customer name. |
1.2 and later versions. |
|
|
No |
|
1.2 and later versions. |
|
|
No |
|
1.2 and later versions. |
|
|
No |
|
1.2 and later versions. |
|
|
No |
|
1.2 and later versions. |
|
NS10 | No |
Date of the legislative act of the federal body of executive power that sets forth the requirements for assigning the value of «sectoral attribute». Format: |
1.2 and later versions. |
|
ANS | No |
Identifier of federal body of executive power. Must be one of the values from directory of federal bodies of executive power |
1.2 and later versions. |
|
N..32 | No |
Number of the legislative act of the federal body of executive power that sets forth the requirements for assigning the value of «sectoral attribute». |
1.2 and later versions. |
|
ANS..256 | No |
A set of values defined by the legislative act of the federal body of executive power. |
1.2 and later versions. |
===== Response parameters ===== The response parameters are given in table below.
Name | Type | Mandatory | Description |
---|---|---|---|
|
A..5 | Yes |
Designates a successful request. The following values are available:
|
data block (returned only if the request was successful) |
|||
|
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. |
|
AN..512 | Only if additional authentication is used on the issuing bank's ACS |
URL to redirect the payer to after authentication. |
|
AN..512 | Only if additional authentication is used on the issuing bank's ACS |
Redirect address to the address of the ACS server. |
|
AN..512 | Only if additional authentication is used on the issuing bank's ACS |
Request for the payer authentication. |
|
AN..255 | The parameter is returned if the bindings are used |
Identifier of the binding created earlier. |
error block (returned only if the request resulted in an error) |
|||
|
N3 | Yes |
Error code. |
description | ANS..512 | Yes | A detailed technical explanation of the error – the contents of this parameter is not to be displayed to the customer. |
|
|
Yes |
|
===== Error codes =====
Error code | Error text |
---|---|
0 |
The request has been processed without system errors. |
5 |
Access denied. |
5 |
The user must change the password. |
7 |
System error. |
10 |
Invalid parameter value |
10 |
Invalid parameter value |
10 |
Invalid parameter value |
10 |
Invalid parameter value |
10 |
Encryption of the data passed in unsuccessful. |
===== Request example ==== <sxh xml> <soapenv:Envelope xmlns:soapenv=«http://schemas.xmlsoap.org/soap/envelope/» xmlns:mer=«http://engine.paymentgate.ru/webservices/merchant»> </soapenv:Header> <soapenv:Body> <mer:googlePay> <arg0> <additionalParameters/> <orderNumber>9eac9d14-4430-7e2a-a582-2d3b00096352</orderNumber> <paymentToken>eyJ2ZXJzaW9uIjoiUlNBX3YxIiwic2lnbmF0dXJlIjoiTUlBR0NTcUdTSWIzRFFFSEFxQ0FNSUFDQVFFeER6QU5CZ2xnaGtnQlpRTUVBZ0VGQURDQUJna3Foa2lHOXcwQkJ3RUFBS0NBTUlJRDVqQ0NBNHVnQXdJQkFnSUlhR0QybWRuTXB3O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5OEswOVlsTkFGN0hYVGhab21NYjF3Rnd3PT0iLCJlcGhlbWVyYWxQdWJsaWNLZXkiOm51bGwsInB1YmxpY0tleUhhc2giOiJqQUJpSGRVQjZDNWZkeWEvL0NnVHJ5MlBhajJ0L3VZUWxVTUFyeGYzNStNPSIsInRyYW5zYWN0aW9uSWQiOiJhNzdjYjg0OTc2OTlhZjkxYTIzZmFjODNjZDJmMGNlMmVmY2EzOTkzYTkxNzNkYzM4ZGIzNjVjM2VjZmIxOWJlIn0sImRhdGEiOiJRdGlXMFovV1k2dTZhQnV1RHVnYmVKbTZhODhoNnM4dFk5cHlidjRzcVd1ZHQ3NmtQNWIyVC9ZdHRkZDM2WXRDalZsTlJ2RWwvSWo3MmhUL0xrSkFsdnlMTmF4U1hjU2dQUnd5NEhvYytrRTFWY0RodG1uTUs5cmZIZ0dIT2phWUJDQW4yVTBNL0RhbGNEU0JXVDVLNnZzT0NCZUo1dE9rNFRTdHBYYUI5QzI2eXo5anorYSthVGNGdkVNVjlkNm1hSjF0ZEV3QkMxd2xLaDhEWTc2UFZHdHdxMnlPZmxuNmVmN1d6M3dITkdLeEN1RytHVGpmZnVXcGVvdThNM0hpelZWaGh5MFJLeCtKZ3p3L2VvcDR1aTJSTENtaFIzeG5XVHJWN1FyMGFWUFhkcTJuUVhrendUMkwzT0dpb2ZST3NZOWx3TEVla0ZFR3dHTnMyc2IzTHk3cFVTQWFMenJlWXJ1K1UyanVzbzZLN2hFVDhxd2tZYlljek9xUVhnQkRweVcyOGFCY21ZMXllUTR3TG5IU0pnTlA1Rm5tbjU0MVBId2RYS29McXdPeDQxVDRoM0VIZzNneVpYRFpCNzk0VVJkVXhwNzZ2b0QyOHlVcXhSN3QrUFJpc1E4PSJ9</paymentToken> <preAuth>0</preAuth> <recurrent>0</recurrent> <recurrentInitialize>?</recurrentInitialize> </arg0> <orderBundle> <customerDetails> <phone>+79123456789</phone> <inn>516974792202</inn> <passport>4507 443564</passport> </customerDetails> <!– Contents of the cart –> <cartItems> <!– Zero or more repetitions: –> <items positionId=«1»> <name>«SMALL»</name> <quantity measure=«0»>1</quantity> <itemCode>270_235.00</itemCode> <itemPrice>23500</itemPrice> <tax> <taxType>0</taxType> <taxSum>0</taxSum> </tax> <itemAttributes> <attributes name=«nomenclature»>010463003407001221CMK45BrhN0WLf</attributes> <attributes name=«paymentMethod»>1</attributes> <attributes name=«paymentObject»>30</attributes> <attributes name=«agent_info.type»>7</attributes> <attributes name=«agent_info.paying.operation»>testoperation</attributes> <attributes name=«agent_info.paying.phones»>+79123456789</attributes> <attributes name=«agent_info.paymentsOperator.phones»>+79123456789</attributes> <attributes name=«agent_info.MTOperator.phones»>+79123456789</attributes> <attributes name=«agent_info.MTOperator.name»>MT operator</attributes> <attributes name=«agent_info.MTOperator.address»>Moscow</attributes> <attributes name=«agent_info.MTOperator.inn»>8634330204</attributes> <attributes name=«supplier_info.phones»>+79123456789</attributes> <attributes name=«supplier_info.name»>Supplier</attributes> <attributes name=«supplier_info.inn»>287381373424</attributes> <attributes name=«excise»>10.0</attributes> <attributes name=«country_code»>810</attributes> <attributes name=«declaration_number»>12332234533</attributes> <attributes name=«userData»>user data</attributes> <attributes name=«markQuantity.numerator»>1</attributes> <attributes name=«markQuantity.denominator»>2</attributes> <attributes name=«sectoralItemProps[0].federalId»>001</attributes> <attributes name=«sectoralItemProps[0].date»>10.10.2021</attributes> <attributes name=«sectoralItemProps[0].number»>123/4567</attributes> <attributes name=«sectoralItemProps[0].value»>value1</attributes> <attributes name=«sectoralItemProps[1].federalId»>003</attributes> <attributes name=«sectoralItemProps[1].date»>10.10.2021</attributes> <attributes name=«sectoralItemProps[1].number»>321/4567</attributes> <attributes name=«sectoralItemProps[1].value»>value2</attributes> </itemAttributes> </items> </cartItems> </orderBundle> </mer:googlePay> </soapenv:Body> </soapenv:Envelope> </sxh> ==== Пример ответа ==== === Successful payment === <sxh xml> <soap:Envelope xmlns:soap=«http://schemas.xmlsoap.org/soap/envelope/»> <soap:Body> <ns1:googlePayResponse xmlns:ns1=«http://engine.paymentgate.ru/webservices/merchant»> <return> <success>true</success> <data> <orderId>ef72d37b-d87b-75f6-a87a-364e000d813a</orderId> <transactionId>0cb952bc-af65-45c5-8674-b5e2b556ae34</transactionId> </data> <orderStatus orderNumber=«138003» orderStatus=«2» actionCode=«0» actionCodeDescription=»« amount=«23500» currency=«643» date=«2022-01-25T17:12:52.302+03:00» ip=«10.99.50.35» errorCode=«0»> <attributes name=«mdOrder» value=«ef72d37b-d87b-75f6-a87a-364e000d813a»/> <cardAuthInfo maskedPan=«411111**1111» expiration=«202412» cardholderName=«Surname Name» approvalCode=«123456» paymentSystem=«VISA»> <secureAuthInfo> <eci>7</eci> <threeDSInfo> <cavv>TVRJek5EVTJOemc1TVRJek5EVTI=</cavv> </threeDSInfo> </secureAuthInfo> </cardAuthInfo> <authDateTime>2022-01-25T17:12:52.575+03:00</authDateTime> <authRefNum>691879196645</authRefNum> <paymentAmountInfo paymentState=«DEPOSITED» approvedAmount=«23500» depositedAmount=«23500» refundedAmount=«0» feeAmount=«0» totalAmount=«23500»/> <bankInfo bankName=«TEST BANK» bankCountryCode=«RU» bankCountryName=«Россия»/> <chargeback>false</chargeback> <operations amount=«23500» cardHolder=«Surname Name» authCode=«123456»/> </orderStatus> </return> </ns1:googlePayResponse> </soap:Body> </soap:Envelope> </sxh> === Failed payment === <sxh xml> <soap:Envelope xmlns:soap=«http://schemas.xmlsoap.org/soap/envelope/»> <soap:Body> <ns1:googlePayResponse xmlns:ns1=«http://engine.paymentgate.ru/webservices/merchant»> <return> <success>false</success> <error> <code>10</code> <description>Invalid parameter [orderNumber]</description> </error> <orderStatus errorCode=«0»/> </return> </ns1:googlePayResponse> </soap:Body> </soap:Envelope> </sxh>