class AmplifypayRuby::Checkout::Core

Attributes

description[RW]
invoice_token[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/amplifypay_ruby/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"]
  @response_code == "00" ? @status = AmplifypayRuby::SUCCESS : @status = AmplifypayRuby::FAIL
end