Commit 45aaeb8a16c51ae0d3978c66c5dc3a356867c7da

Authored by Kexian Zhong
Committed by GitHub
1 parent 3613657f
Exists in master

Guide do dup on another account options

We always set the another account in a global variable, but the API method will delete the option value.
It's better to guide people to do dup.
Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
README.md
... ... @@ -275,7 +275,8 @@ you can pass `appid`, `mch_id`, `key`, `apiclient_cert`, `apiclient_key` as a ha
275 275  
276 276 For example
277 277 ```ruby
278   -WxPay::Service.generate_app_pay_req params, {appid: 'APPID', mch_id: 'MCH_ID', key: 'KEY'}
  278 +another_account = {appid: 'APPID', mch_id: 'MCH_ID', key: 'KEY'}.freeze
  279 +WxPay::Service.generate_app_pay_req params, another_account.dup
279 280 ```
280 281  
281 282 ## Contributing
... ...