Module: WxPay

Defined in:
lib/wx_pay.rb,
lib/wx_pay/sign.rb,
lib/wx_pay/result.rb,
lib/wx_pay/service.rb,
lib/wx_pay/version.rb

Defined Under Namespace

Modules: Service, Sign Classes: Result

Constant Summary collapse

VERSION =
"0.2.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.apiclient_cert_pathObject

Returns the value of attribute apiclient_cert_path.



7
8
9
# File 'lib/wx_pay.rb', line 7

def apiclient_cert_path
  @apiclient_cert_path
end

.appidObject

Returns the value of attribute appid.



7
8
9
# File 'lib/wx_pay.rb', line 7

def appid
  @appid
end

.keyObject

Returns the value of attribute key.



7
8
9
# File 'lib/wx_pay.rb', line 7

def key
  @key
end

.mch_idObject

Returns the value of attribute mch_id.



7
8
9
# File 'lib/wx_pay.rb', line 7

def mch_id
  @mch_id
end

Class Method Details

.apiclient_cert(cert_path, mch_id) ⇒ Object



17
18
19
# File 'lib/wx_pay.rb', line 17

def apiclient_cert(cert_path, mch_id)
  OpenSSL::PKCS12.new(File.read(cert_path), mch_id)
end

.extra_rest_client_optionsObject



13
14
15
# File 'lib/wx_pay.rb', line 13

def extra_rest_client_options
  @rest_client_options || {}
end

.extra_rest_client_options=(options) ⇒ Object



9
10
11
# File 'lib/wx_pay.rb', line 9

def extra_rest_client_options=(options)
  @rest_client_options = options
end