Commit 3b16d39b34d9d535758f7d27834e3daaeda3a853

Authored by Jun Jiang
Committed by GitHub
2 parents dfd5d148 86cae3d3
Exists in master

Merge pull request #109 from hging/master

add tips that mch_id require String type
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
@@ -37,7 +37,7 @@ Create `config/initializers/wx_pay.rb` and put following configurations into it. @@ -37,7 +37,7 @@ Create `config/initializers/wx_pay.rb` and put following configurations into it.
37 # required 37 # required
38 WxPay.appid = 'YOUR_APPID' 38 WxPay.appid = 'YOUR_APPID'
39 WxPay.key = 'YOUR_KEY' 39 WxPay.key = 'YOUR_KEY'
40 -WxPay.mch_id = 'YOUR_MCH_ID' 40 +WxPay.mch_id = 'YOUR_MCH_ID' # required type is String, otherwise there will be cases where JS_PAY can pay but the APP cannot pay
41 WxPay.debug_mode = true # default is `true` 41 WxPay.debug_mode = true # default is `true`
42 WxPay.sandbox_mode = false # default is `false` 42 WxPay.sandbox_mode = false # default is `false`
43 43
@@ -56,7 +56,7 @@ If you need to use sandbox mode. @@ -56,7 +56,7 @@ If you need to use sandbox mode.
56 56
57 ```ruby 57 ```ruby
58 WxPay.appid = 'YOUR_APPID' 58 WxPay.appid = 'YOUR_APPID'
59 -WxPay.mch_id = 'YOUR_MCH_ID' 59 +WxPay.mch_id = 'YOUR_MCH_ID' # required type is String, otherwise there will be cases where JS_PAY can pay but the APP cannot pay
60 WxPay.debug_mode = true # default is `true` 60 WxPay.debug_mode = true # default is `true`
61 WxPay.sandbox_mode = true # default is `false` 61 WxPay.sandbox_mode = true # default is `false`
62 result = WxPay::Service.get_sandbox_signkey 62 result = WxPay::Service.get_sandbox_signkey