class Tinkoff::Notification
Attributes
amount[R]
card_id[R]
error_code[R]
order_id[R]
pan[R]
payment_id[R]
rebill_id[R]
status[R]
success[R]
terminal_key[R]
token[R]
Public Class Methods
new(params)
click to toggle source
# File lib/tinkoff/notification.rb, line 6 def initialize(params) @terminal_key = params['TerminalKey'] @order_id = params['OrderId'] @success = params['Success'] == 'true' @status = params['Status'] @payment_id = params['PaymentId'].to_i @error_code = params['ErrorCode'] @amount = params['Amount'].to_i @rebill_id = params['RebillId'].to_i @card_id = params['CardId'].to_i @pan = params['Pan'] @token = params['Token'] end
Public Instance Methods
failure?()
click to toggle source
# File lib/tinkoff/notification.rb, line 24 def failure? !@success end
success?()
click to toggle source
# File lib/tinkoff/notification.rb, line 20 def success? @success end