wx.requestPayment 部分机型有时候无法发起微信支付,没有回调?

小程序 文章 2021-03-11 09:21 1642 0 全屏看文

AI助手支持GPT4.0

wx.requestPayment 部分机型有时候无法发起微信支付,没有回调?Some models of wx.requestPayment sometimes fail to initiate WeChat payment, and there is no callback?

wx.requestPayment 部分机型有时候无法发起微信支付,没有回调?

wx.requestPayment 这个方法调用的时候出现部分机型有时候无法唤起支付,success fail complete 都没回调,好像根本没调用这个方法似得。

部分机型出现这个问题后,重新打开小程序可以正常一段时间,但是还是会再出现这个问题。

在真机调试时出问题的nonceStr,package,signType,paySign等信息复制在开发者工具内请求wx.requestPayment方法测试,可以正常唤起支付,生成付款的数据应该没问题。



fail success complete 都没回调结果



wx.requestPayment When this method is called, some models sometimes fail to call up payment, and success fail complete is not called back, as if this method was not called at all. After this problem occurs in some models, it is normal to re open the applet for a period of time, but it will still occur again. When debugging the real machine, the information such as noncestr, package, signtype, paysign, etc. that have problems should be copied and requested in the developer tool wx.requestPayment Method test, can normally call up payment, generate payment data should be no problem. Failure success complete

回答:

FX:没遇到过蛮
Brother斌🎈:

无法发起的调试里有报错信息吗

吴中山:没有任何报错信息,表面结果看上去就是没有走wx.requestPaymen那个方法
跨商通:

大概率发生在老苹果手机上。

1、打开增强编译;

2、改async/await一类调用方式为原生异步方式;

吴中山:iphonexr iphone se2 都出现这个问题。增强编译开了,然后并未使用async/await 这类调用

-EOF-

AI助手支持GPT4.0