小程序中调用webview组件,内嵌h5支付的问题?

小程序 文章 2021-03-23 18:43 73 0 全屏看文

小程序中调用webview组件,内嵌h5支付的问题?Is there a problem with the embedded h5 payment when the webview component is called in the applet?

小程序中调用webview组件,内嵌h5支付的问题?

最近在开发一个小程序,将之前的一个h5的页面通过webview组件放到到小程序中,h5的页面有一个h5的支付,查阅很多资料说webview中不能只用微信支付,于是就在h5支付的时候携带参数跳回小程序唤起支付,但是这些参数都是h5页面生成的,使用的是公众号的appid,这样唤起支付报错说“商户传入的appid不正确”,想请问下有没有类是的问题?怎么解决!

Recently, a small program has been developed, which puts a previous H5 page through the WebView component into the small program. The H5 page has a H5 payment. It can not only use WeChat to pay official account in many pages. So, when the H5 pays, the parameters are brought back to the applet to arouse the payment, but these parameters are generated by H5 pages, and the appid is used by the public number. I want to ask if there is a problem with the class, because I have reported an error saying "the appid passed in by the merchant is incorrect"? How to solve it!

回答:

跨商通:

小程序里只用小程序支付。其他都不好使。

微加加的朋友:

小程序和公众号绑定的商户号就是同一个!但是我测试的好像还是不可以


Brother斌🎈:

跳回小程序唤起支付的时候也要用小程序支付的参数及appid之类的

微加加的朋友:必须要吗?如果小程序和这个公众号关联了可不可以?

-EOF-