Sha256: a56849c5294dc394e664eafed6e902f537bcb234a423fc7f4ee42889f1302255
Contents?: true
Size: 446 Bytes
Versions: 1
Compression:
Stored size: 446 Bytes
Contents
require 'wx_pay/result' require 'wx_pay/sign' require 'wx_pay/service' module WxPay class<< self attr_accessor :appid, :mch_id, :key, :apiclient_cert_path def extra_rest_client_options=(options) @rest_client_options = options end def extra_rest_client_options @rest_client_options || {} end def apiclient_cert(cert_path, mch_id) OpenSSL::PKCS12.new(File.read(cert_path), mch_id) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wx_pay_api-0.2.1 | lib/wx_pay.rb |