Sha256: 4d0791bb3344bff7a692ecacda3650025b83cefb66af470a16807cf6ece6867a
Contents?: true
Size: 921 Bytes
Versions: 2
Compression:
Stored size: 921 Bytes
Contents
# coding: utf-8 # 客户端 module JytPay class Client # 代付代扣的 api include JytPay::Api::QuickPay include JytPay::Api::QuickDraw include JytPay::Api::QueryOrder # 通用 api include JytPay::Api::QueryBalance # 认证银行卡 api include JytPay::Api::AuthCard def initialize(options_arg) options = Utils.symbolize_keys(options_arg) @uris = { pay: URI(options[:pay_url]), draw: URI(options[:draw_url]), auth: URI(options[:auth_url]), query_balance: URI(options[:query_balance_url]), } @merchant_id = options[:merchant_id] @mer_viral_acct = options[:mer_viral_acct] @private_key = options[:private_key] @jyt_public_key = options[:jyt_public_key] @rsa_private_key = OpenSSL::PKey::RSA.new(@private_key) @rsa_jyt_public_key = OpenSSL::PKey::RSA.new(@jyt_public_key) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jyt_pay-0.2.0 | lib/jyt_pay/client.rb |
jyt_pay-0.1.0 | lib/jyt_pay/client.rb |