recurrentPayment
Рекуррентный (CoF) платеж
Запрос для осуществления рекуррентного (CoF) платежа
post/api/v1/payment_recurring
Request
- Base URL: https://securesandbox.webpay.by
- URL: https://securesandbox.webpay.by/api/v1/payment_recurring
- Auth: none declared
Request body
Example request
{
"wsb_order_num": "ORDER-12345678",
"wsb_currency_id": "BYN",
"wsb_version": 2,
"wsb_seed": "1242649174",
"wsb_test": 1,
"wsb_invoice_item_name": [
"Товар 1",
"Товар 2"
],
"wsb_invoice_item_quantity": [
2,
1
],
"wsb_invoice_item_price": [
10,
0.5
],
"wsb_total": 31.4,
"wsb_customer_id": "aA1217Zz",
"wsb_operation_type": "recurring_pay",
"wsb_recurring_token": "834836387",
"wsb_signature": "d1a5110dc27d38a5fed50f98def59029ed5e1564",
"wsb_store": "Название Вашего магазина",
"wsb_language_id": "russian",
"wsb_redirect": 1,
"wsb_return_format ": "json",
"wsb_return_url": "http://yoursiteurl.com/success.php",
"wsb_cancel_return_url": "http://yoursiteurl.com/cancel.php",
"wsb_notify_url": "http://yoursiteurl.com/notify.php",
"wsb_customer_name": "Иванов Петр Петрович",
"wsb_customer_address": "Минск ул. Шафарнянская д.11 оф.54",
"wsb_service_date": "Доставка до 1 января 2022 года",
"wsb_tax": 10.5,
"wsb_shipping_name": "Стоимость доставки",
"wsb_shipping_price": 0.98,
"wsb_discount_name": "Скидка на товар",
"wsb_discount_price": 0.58,
"wsb_order_tag": "Договор №152/12-1 от 12.01.19",
"wsb_email": "ivanov@test.by",
"wsb_phone": "375291234567",
"wsb_order_contract": "Договор №152/12-1 от 12.01.19",
"wsb_tab": "cardPayment",
"wsb_startsessdatetime": "2020-10-22T16:20:01+03:00"
}Response
Payment response
Example response
{
"data": {
"currency_id": "BYN",
"customer_id": "aA1217Zz",
"payment_method": "cc",
"site_order_id": "ORDER-12345678",
"operation_type": "recurring_pay",
"order_id": "307139115",
"terminal": "99995551",
"transaction_id": "834836387",
"recurring_token": "834836387",
"payment_type": 10,
"rrn": "257885184293",
"rc": "W0001(00)",
"rc_text": "Successfully completed",
"approval": "257885",
"card": "434179xxxxxx0051"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.