lib/chan_pay.rb in chan_pay-0.2.0 vs lib/chan_pay.rb in chan_pay-0.3.0
- old
+ new
@@ -1,22 +1,31 @@
+# coding: utf-8
require "uri"
require "net/http"
require "json"
require "openssl"
require "base64"
require "chan_pay/version"
require "chan_pay/utils"
+# 加密验签
require "chan_pay/sign/rsa"
require "chan_pay/encrypt/rsa"
+# 通信
require "chan_pay/http/ret_code"
require "chan_pay/http/communicate"
+# 快捷支付的 api
require "chan_pay/api/sms_pay_request"
require "chan_pay/api/sms_pay_confirm"
require "chan_pay/api/sms_pay_resend"
-require "chan_pay/api/quick_pay"
+require "chan_pay/api/withhold_pay"
require "chan_pay/api/query_order"
+# 代付代扣的 api
+require "chan_pay/api/quick_draw"
+require "chan_pay/api/query_quick_order"
+# 通用 api
require "chan_pay/api/query_balance"
+
require "chan_pay/client"
module ChanPay
end