module MPower module Checkout class Core include MPower::Utilities attr_accessor :status, :response_text, :response_code, :transaction_id, :description, :token def push_results(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 = MPower::SUCCESS : @status = MPower::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