Commit 3e655def2d7fe7cbb832d356778b658660fcc3a2

Authored by Jun Jiang
Committed by GitHub
2 parents bcf07fe7 6243571b
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 164 GETTRANSFERINFO_FIELDS = [:partner_trade_no]
165 165 def self.gettransferinfo(params, options = {})
166 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 169 nonce_str: SecureRandom.uuid.tr('-', '')
170 170 }.merge(params)
171 171  
... ...