Sha256: 4d1b2d34c2c3338c92bec7e87a6e6076a13caf9fe6f3921078d6b3067029c4ff

Contents?: true

Size: 753 Bytes

Versions: 4

Compression:

Stored size: 753 Bytes

Contents

# coding: utf-8

# 客户端

module ChanPay
  class Client

    # 快捷支付的 api
    include ChanPay::Api::SmsPayRequest
    include ChanPay::Api::SmsPayConfirm
    include ChanPay::Api::SmsPayResend
    include ChanPay::Api::WithholdPay
    include ChanPay::Api::QueryOrder
    # 代付代扣的 api
    include ChanPay::Api::QuickDraw
    include ChanPay::Api::QueryQuickOrder
    # 通用 api
    include ChanPay::Api::QueryBalance

    def initialize(options_arg)
      options = Utils.symbolize_keys(options_arg)

      @partner_id = options[:partner_id]
      @seller_id = options[:seller_id]
      @server_uri = URI options[:server_url]
      @private_key = options[:private_key]
      @public_key = options[:public_key]
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
chan_pay-0.7.0 lib/chan_pay/client.rb
chan_pay-0.6.0 lib/chan_pay/client.rb
chan_pay-0.4.0 lib/chan_pay/client.rb
chan_pay-0.3.0 lib/chan_pay/client.rb