Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the error of calling payment jsapi, such as missing parameters, timeStamp, etc.

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly describes how to solve the call to pay jsapi missing parameters, timeStamp and other errors, the text is very detailed, has a certain reference value, interested friends must read!

There is a problem and screenshots are as follows:

At that time, the problem felt very strange. I tested it many times and it was OK. When the problem came, I quickly solved it. Finally, I found a solution:

The reason is that a string variable in the program is incorrectly set to a numeric type. The solution is simple. You only need to put double quotes on it.

Open WxPay.JsApiPay.php

$jsapi->SetTimeStamp($timeStamp);

$jsapi->SetTimeStamp("$timeStamp");

Another point to remind is that since Weixin Official Accounts payment needs to obtain user information through web page authorization, the page address initiating payment cannot have parameters, otherwise it will prompt: returnurl does not exist.

The above is "how to solve the call to pay jsapi missing parameters, timeStamp and other errors" all the content of this article, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report