Commit 3613657f59e899943152a37b3674dcedc8528244

Authored by Jun Jiang
Committed by GitHub
2 parents e6288b5a 399f4f01
Exists in master

Merge pull request #106 from lingceng/patch-1

pay request for JSAPI noncestr should be rand
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
README.md
... ... @@ -180,7 +180,7 @@ r = WxPay::Service.generate_app_pay_req params
180 180 # required fields
181 181 params = {
182 182 prepayid: '1101000000140415649af9fc314aa427', # fetch by call invoke_unifiedorder with `trade_type` is `JSAPI`
183   - noncestr: '1101000000140429eb40476f8896f4c9', # must same as given to invoke_unifiedorder
  183 + noncestr: SecureRandom.hex(16),
184 184 }
185 185  
186 186 # call generate_js_pay_req
... ...