Commit 3e655def2d7fe7cbb832d356778b658660fcc3a2
Committed by
GitHub
Exists in
master
Merge pull request #59 from houdl/fix_gettransferinfo_params
fix gettransferinfo wrong params
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
lib/wx_pay/service.rb
@@ -164,8 +164,8 @@ module WxPay | @@ -164,8 +164,8 @@ module WxPay | ||
164 | GETTRANSFERINFO_FIELDS = [:partner_trade_no] | 164 | GETTRANSFERINFO_FIELDS = [:partner_trade_no] |
165 | def self.gettransferinfo(params, options = {}) | 165 | def self.gettransferinfo(params, options = {}) |
166 | params = { | 166 | params = { |
167 | - mch_appid: options.delete(:appid) || WxPay.appid, | ||
168 | - mchid: options.delete(:mch_id) || WxPay.mch_id, | 167 | + appid: options.delete(:appid) || WxPay.appid, |
168 | + mch_id: options.delete(:mch_id) || WxPay.mch_id, | ||
169 | nonce_str: SecureRandom.uuid.tr('-', '') | 169 | nonce_str: SecureRandom.uuid.tr('-', '') |
170 | }.merge(params) | 170 | }.merge(params) |
171 | 171 |