Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

The cheque in the order

The cheque is passed within the authorization request. An additional parameter ChequeItems must be passed in the request. The ChequeItems parameter should contain a structure in JSON-format looking like a following example.

...

Name

Mandatory

Type

Description

id

Yes

int

# of the cheque's position

product

Yes/ No*

string(50)

Product's code

name

Yes/ No*

string(250)

Product's name

price

Yes

float(10.2)

The cost of a product unit in Russian rubles (RUB)

quantity

Yes

float

The product's quantity in the units of the product measurements

amount

Yes

float(18.2)

The cost of a specified quantity of product

tax

Yes**

string(10)

Tax rate identifier

hscode

No

string(13)

Code of Harmonized Commodity Description and Coding System (13 digits)

fpmode

No**

int

Payment method 

...

The cheque within the recurring payment

The parameter RecurringIndicator = 1 should be set in initial authorization request (see paragraph 2.1) in order to initiate the recurrent payment. Also the parameters of the range of amounts in subsequent recurring payments, payment frequency (in days) and the end date of subscription should be provided.

Then periodically the company will initiate the payment, setting the payment amount only and the rest required payment information (credit card data) is taken from the original payment.

The request URL for the recurring payment and list of request parameters are the same as the values specified here. To send a recurring payment cheque via HTTP POST method, only an additional parameter ChequeItems is added, which contains a structure in JSON-format looking like a following example.

An example of a cheque structure in the ChequeItems parameter:

Code Block
languagexml
{"items":[
{ "id": 1,
    "product": "123460176",
    "name": "First item",
    "price": 201.45,
    "quantity": 21.12,
    "amount": 8530.40,
    "tax": "vat10"},
    "fpmode": 1}
{ "id": 2,
    "product": "123460189",
    "name": "Second item",
    "price": 15301.01,
    "quantity": 0.064,
    "amount": 979.26,
    "tax": "vat20"},
    "fpmode": 1}
]}

To send a recurring payment cheque via SOAP method, only an additional repeating structure ChequeItem is added, in which the cheque items are transferred, as in following example.

Example of cheque item structures ChequeItem:

Code Block
languagexml
<chequeitem>
<id>1</id>
<product>123460176</product>
<name>First item</name>
<price>201.45</price>
<quantity>21.12</quantity>
<amount>8530.40</amount>
<tax> vat10</tax>
<fpmode>1</fpmode>
</chequeitem>
<chequeitem>
<id>2</id>
<product>123460176</product>
<name>Second item</name>
<price>15301.01</price>
<quantity>0.064</quantity>
<amount>979.26</amount>
<tax> vat20</tax>
<fpmode>1</fpmode>
</chequeitem>

Back on top