Инструменты страницы



Request for a binding activation (bindCard)

The request used for activating a binding that has been deactivated earlier is bindCard.

Use the following URL to connect to the Test Service (WSDL):
https://3dsec.sberbank.ru/payment/webservices/merchant-ws?wsdl.

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

bindingId

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:
1. The given order can be paid only using a binding;
2. The payer will be redirected to the payment page on which only entering CVC is required.

Response parameters

Name Type Mandatory Description

errorCode

ANS..3

Yes

Error code.

errorMessage

AN..512

(on an error)

Error description in the language passed in the language parameter in the request.

Error codes

Error code Error text
0

The request has been processed without system errors.

2

Wrong binding state.

(On an attempt to activate an active binding.)

2

The binding is not found.

5

Access denied.

5

The user must change the password.

7

System error.

Examples

Request example

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mer="http://engine.paymentgate.ru/webservices/merchant">
    <soapenv:Header/>
    <soapenv:Body>
       <mer:bindCard>
          <bindingId>fd3afc57-c6d0-4e08-aaef-1b7cfeb093dc</bindingId>
       </mer:bindCard>
    </soapenv:Body>
 </soapenv:Envelope>

Response example

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
       <ns1:bindCardResponse xmlns:ns1="http://engine.paymentgate.ru/webservices/merchant">
          <return errorCode="5" errorMessage="The user must change their password"/>
       </ns1:bindCardResponse>
    </soap:Body>
 </soap:Envelope>