Commit f9fdbbeda2634cb36aeea976ae0fe3c45fd65a28
Committed by
GitHub
1 parent
8dcedf14
Exists in
master
update SANDBOX_GATEWAY_URL
reference: https://developers.weixin.qq.com/community/pay/doc/0002c437a1c6f00ba87ef1a1a5ec01?blockType=8 https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=23_1
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/wx_pay/service.rb
... | ... | @@ -7,7 +7,7 @@ require 'active_support/core_ext/hash/conversions' |
7 | 7 | module WxPay |
8 | 8 | module Service |
9 | 9 | GATEWAY_URL = 'https://api.mch.weixin.qq.com'.freeze |
10 | - SANDBOX_GATEWAY_URL = 'https://api.mch.weixin.qq.com/sandboxnew'.freeze | |
10 | + SANDBOX_GATEWAY_URL = 'https://api.mch.weixin.qq.com/xdc/apiv2sandbox'.freeze | |
11 | 11 | FRAUD_GATEWAY_URL = 'https://fraud.mch.weixin.qq.com'.freeze |
12 | 12 | |
13 | 13 | def self.generate_authorize_url(redirect_uri, state = nil) | ... | ... |