Class: QiwiPay::Api::ReversalOperation

Inherits:
PaymentOperation show all
Defined in:
lib/qiwi-pay/api/reversal_operation.rb

Overview

Note:

Параметры запроса merchant_site Обязательно integer Идентификатор сайта ТСП txn_id Обязательно integer Идентификатор транзакции amount Опционально string(20) Сумма операции cheque Опционально string Данные для кассового чека по 54-ФЗ

Операция отмены платежа (средства расхолдируются практически сразу)

Examples:

Запрос

{
  "opcode":6,
  "merchant_site": 99,
  "txn_id": 181001,
  "amount": "700",
  "sign": "bb5c48ea540035e6b7c03c8184f74f09d26e9286a9b8f34b236b1bf2587e4268"
}

Ответ

{
  "txn_id":182001,
  "txn_status":3,
  "txn_type":4,
  "txn_date": "2017-03-09T17:16:06+00:00",
  "error_code":0,
  "amount": 700
}

Constant Summary

Constants inherited from PaymentOperation

PaymentOperation::ATTRIBUTES

Class Method Summary collapse

Methods inherited from PaymentOperation

#perform

Methods inherited from PaymentOperation

#amount, #callback_url=, #description, #initialize, #opcode, #order_expire=

Constructor Details

This class inherits a constructor from QiwiPay::PaymentOperation

Class Method Details

.descriptionObject

Описание операции



37
38
39
# File 'lib/qiwi-pay/api/reversal_operation.rb', line 37

def self.description
  'Отмена платежа'
end

.opcodeObject

Код операции sale



32
33
34
# File 'lib/qiwi-pay/api/reversal_operation.rb', line 32

def self.opcode
  6
end