Class: QiwiPay::Api::CaptureOperation

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

Overview

Note:

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

Подтверждение авторизации в случае двухшагового сценария оплаты

Examples:

Запрос

{
  "opcode": 5,
  "merchant_site": 99,
  "txn_id": "172001",
  "sign": "bb5c48ea540035e6b7c03c8184f74f09d26e9286a9b8f34b236b1bf2587e4268"
}

Ответ

{
  "txn_id":172001,
  "txn_status":3,
  "txn_type":2,
  "txn_date": "2017-03-09T17:16:06+00:00",
  "error_code":0
}

Constant Summary

Constants inherited from PaymentOperation

PaymentOperation::ATTRIBUTES

Class Method Summary collapse

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

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



34
35
36
# File 'lib/qiwi-pay/api/capture_operation.rb', line 34

def self.description
  'Подтверждение авторизации в случае двухшагового сценария оплаты'
end

.opcodeObject

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



29
30
31
# File 'lib/qiwi-pay/api/capture_operation.rb', line 29

def self.opcode
  5
end