class Paydunya::Checkout::Core
Attributes
description[RW]
response_code[RW]
response_text[RW]
result[RW]
status[RW]
token[RW]
transaction_id[RW]
Public Instance Methods
push_results(result = {})
click to toggle source
# File lib/paydunya/checkout.rb, line 7 def push_results(result = {}) @result = result @transaction_id = result['transaction_id'] @description = result['description'] @response_code = result['response_code'] @response_text = result['response_text'] @token = result['token'] @status = @response_code == '00' ? Paydunya::SUCCESS : Paydunya::FAIL end