Module: WxPay
- Defined in:
- lib/weixin_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.0"
Class Attribute Summary collapse
-
.apiclient_cert_path ⇒ Object
Returns the value of attribute apiclient_cert_path.
-
.appid ⇒ Object
Returns the value of attribute appid.
-
.key ⇒ Object
Returns the value of attribute key.
-
.mch_id ⇒ Object
Returns the value of attribute mch_id.
Class Method Summary collapse
- .apiclient_cert ⇒ Object
- .extra_rest_client_options ⇒ Object
- .extra_rest_client_options=(options) ⇒ Object
Class Attribute Details
.apiclient_cert_path ⇒ Object
Returns the value of attribute apiclient_cert_path.
7 8 9 |
# File 'lib/weixin_pay.rb', line 7 def apiclient_cert_path @apiclient_cert_path end |
.appid ⇒ Object
Returns the value of attribute appid.
7 8 9 |
# File 'lib/weixin_pay.rb', line 7 def appid @appid end |
.key ⇒ Object
Returns the value of attribute key.
7 8 9 |
# File 'lib/weixin_pay.rb', line 7 def key @key end |
.mch_id ⇒ Object
Returns the value of attribute mch_id.
7 8 9 |
# File 'lib/weixin_pay.rb', line 7 def mch_id @mch_id end |
Class Method Details
.apiclient_cert ⇒ Object
17 18 19 |
# File 'lib/weixin_pay.rb', line 17 def apiclient_cert @apiclient_cert ||= OpenSSL::PKCS12.new(WxPay.apiclient_cert_path, WxPay.mch_id) end |
.extra_rest_client_options ⇒ Object
13 14 15 |
# File 'lib/weixin_pay.rb', line 13 def @rest_client_options || {} end |
.extra_rest_client_options=(options) ⇒ Object
9 10 11 |
# File 'lib/weixin_pay.rb', line 9 def () @rest_client_options = end |