Commit ab6304cdadd4cef1617f5bb8c841093c8c7c85b0
1 parent
cfe0332a
Exists in
master
bug fixed: Multi-account appparams key blank
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
lib/wx_pay/service.rb
... | ... | @@ -28,6 +28,7 @@ module WxPay |
28 | 28 | params = { |
29 | 29 | appid: options.delete(:appid) || WxPay.appid, |
30 | 30 | partnerid: options.delete(:mch_id) || WxPay.mch_id, |
31 | + key: options.delete(:key) || WxPay.key, | |
31 | 32 | package: 'Sign=WXPay', |
32 | 33 | timestamp: Time.now.to_i.to_s |
33 | 34 | }.merge(params) | ... | ... |