Sha256: bb6026265dc6085a4db9e432e3f0789dbfff730c967577d5a6d5a4582516d58c
Contents?: true
Size: 460 Bytes
Versions: 4
Compression:
Stored size: 460 Bytes
Contents
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
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
qtpay-0.0.4 | lib/qtpay.rb |
qtpay-0.0.3 | lib/qtpay.rb |
qtpay-0.0.2 | lib/qtpay.rb |
qtpay-0.0.1 | lib/qtpay.rb |