Module: WechatPay
- Defined in:
- lib/wechat-pay.rb,
lib/wechat-pay/sign.rb,
lib/wechat-pay/direct.rb,
lib/wechat-pay/version.rb,
lib/wechat-pay/ecommerce.rb,
lib/wechat-pay/ecommerce/bill.rb,
lib/wechat-pay/ecommerce/order.rb,
lib/wechat-pay/ecommerce/refund.rb,
lib/wechat-pay/ecommerce/balance.rb,
lib/wechat-pay/ecommerce/withdraw.rb,
lib/wechat-pay/ecommerce/applyment.rb,
lib/wechat-pay/ecommerce/subsidies.rb,
lib/wechat-pay/ecommerce/combine_order.rb,
lib/wechat-pay/ecommerce/profitsharing.rb
Overview
微信支付
设置关键信息
Defined Under Namespace
Modules: Direct, Ecommerce, Sign
Constant Summary collapse
- VERSION =
'1.1.0'
Class Attribute Summary collapse
-
.apiclient_cert ⇒ Object
Returns the value of attribute apiclient_cert.
-
.apiclient_key ⇒ Object
Returns the value of attribute apiclient_key.
-
.app_id ⇒ Object
Returns the value of attribute app_id.
-
.mch_id ⇒ Object
Returns the value of attribute mch_id.
-
.mch_key ⇒ Object
Returns the value of attribute mch_key.
-
.platform_cert ⇒ Object
Returns the value of attribute platform_cert.
Class Method Summary collapse
-
.apiclient_serial_no ⇒ Object
商户证书序列号.
-
.platform_serial_no ⇒ Object
平台证书序列号.
Class Attribute Details
.apiclient_cert ⇒ Object
Returns the value of attribute apiclient_cert.
16 17 18 |
# File 'lib/wechat-pay.rb', line 16 def apiclient_cert @apiclient_cert end |
.apiclient_key ⇒ Object
Returns the value of attribute apiclient_key.
16 17 18 |
# File 'lib/wechat-pay.rb', line 16 def apiclient_key @apiclient_key end |
.app_id ⇒ Object
Returns the value of attribute app_id.
15 16 17 |
# File 'lib/wechat-pay.rb', line 15 def app_id @app_id end |
.mch_id ⇒ Object
Returns the value of attribute mch_id.
15 16 17 |
# File 'lib/wechat-pay.rb', line 15 def mch_id @mch_id end |
.mch_key ⇒ Object
Returns the value of attribute mch_key.
15 16 17 |
# File 'lib/wechat-pay.rb', line 15 def mch_key @mch_key end |
.platform_cert ⇒ Object
Returns the value of attribute platform_cert.
16 17 18 |
# File 'lib/wechat-pay.rb', line 16 def platform_cert @platform_cert end |
Class Method Details
.apiclient_serial_no ⇒ Object
商户证书序列号
39 40 41 |
# File 'lib/wechat-pay.rb', line 39 def apiclient_serial_no @apiclient_serial_no ||= apiclient_cert.serial.to_s(16) end |
.platform_serial_no ⇒ Object
平台证书序列号
34 35 36 |
# File 'lib/wechat-pay.rb', line 34 def platform_serial_no @platform_serial_no ||= platform_cert.serial.to_s(16) end |