搞心态的“当前页面URL未注册”

微信支付 文章 2021-03-03 18:41 507 0 全屏看文

AI助手支持GPT4.0

搞心态的“当前页面URL未注册”The mentality of "current page URL is not registered"

搞心态的“当前页面URL未注册”

在社区里面把帖子都翻遍了,都没找到合适的解决方式,有大神能支个招可以从哪些地方检查问题所在吗?

以下是我的配置,

  1. 提示错误的URL:
  2. 查看公众号关联的商户:
  3. 进入商户号管理平台验证商户号:
  4. 商户号管理平台 - JSAPI支付授权目录配置:
  5. 前端调用支付方式
wx.ready(function() {   wx.chooseWXPay({      timestamp: res.timeStamp, // 支付签名时间戳      nonceStr: res.nonce_str, // 支付签名随机串      package: res.prepay_id, // 统一支付接口返回的prepay_id参数值,提交格式如:prepay_id=***)      signType: res.sign_type, // 签名方式,默认为'SHA1',使用新版支付需传入'MD5'      paySign: res.paySign, // 支付签名      success: function(res) {         // 支付成功后的回调函数      },      error: function(data) {      }   });});


请问下在座各位大佬可有其它排错建议?跪谢!

补充下:域名也是备案过的,prepay_id也能获取到

In the community, I've read all the posts, but I haven't found a suitable solution. Is there a big God who can give me a way to check where the problem lies? The following is my configuration, which prompts the wrong URL: check the merchant number associated with the official account: enter the merchant number management platform verification merchant number: merchant number management platform - JSAPI payment authorization directory configuration: front-end call payment method wx.ready (function() { wx.chooseWXPay ({ timestamp: res.timeStamp , / / payment signature timestamp noncestr: res.nonce_ STR, / / payment signature random string package: res.prepay_ ID, / / prepay returned by unified payment interface_ ID parameter value, submission format, such as: prepay_ id=***) signType: res.sign_ Type, / / signature method. The default is' SHA1 '. To use the new version of payment, you need to pass in' MD5 'paysign: res.paySign , / / payment signature success: function (RES) {/ / callback function after successful payment}, error: function (data) {});}); do you have any other troubleshooting suggestions? Thank you on your knees! Add: domain name is also registered, prepay_ ID can also be obtained

回答:

微信支付技术社区运营-Tasting:

请检查下单接口中使用的商户号是否在商户平台(pay.weixin.qq.com)配置了对应的支付目录。

Memory:

?!:这边也尝试过只设置域名,其它目录都删了,还是报错“URL未注册”
Memory:操作之后有生效时间
?!:上午改的授权目录,现在还是报错“URL未注册” 😢
Memory:确认实际支付域名是否一致,确认下HTPPS和HTTP
Dawnset:

我看这是个小程序的提示?

业务域名加了么

?!:啊 不是小程序 就是微信网页 业务域名加了的,不然进不了发起支付的页面

-EOF-

AI助手支持GPT4.0