require 'net/http' require 'cgi' require 'qtpay/version' require 'qtpay/utils' require 'qtpay/sign' require 'qtpay/service' module Qtpay @debug_mode = true @env = 'sandbox' class << self attr_accessor :app_code, :server_key, :env, :debug_mode def debug_mode? !!@debug_mode end def gateway_url if @env == 'live' 'https://qtapi.qfpay.com' else 'https://qtsandbox.qfpay.com' end end end end