Sha256: 7e0e0ecab4ef906fc95c801bf5120e72cd99899e5b005d5064a8b9206e53e38a
Contents?: true
Size: 729 Bytes
Versions: 1
Compression:
Stored size: 729 Bytes
Contents
module Paydunya module Checkout class Core include Paydunya::Utilities attr_accessor :status, :response_text, :response_code, :transaction_id, :description, :token, :result 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 end end end %w[checkout/redirect_invoice checkout/onsite_invoice checkout/store].each do |lib| require File.join(File.dirname(__FILE__), lib) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
paydunya-1.0.6 | lib/paydunya/checkout.rb |