Home>Article>Backend Development> What to do if php Alipay verification fails

What to do if php Alipay verification fails

藏色散人
藏色散人 Original
2020-07-11 10:20:52 3500browse

php Solution to Alipay verification failure: 1. Set the encoding of all files to be unified; 2. Check whether the applied SDK is entered correctly; 3. Check the Alipay account password; 4. Restart the server.

What to do if php Alipay verification fails

Alipay mobile interface, solution to server-side PHP verification failure

First look at the returned parameters, It is usually caused by incorrect sign. If you see extra parameters, delete the unnecessary parameters in the block before the generated signature in the class. unset($_POST['Unnecessary value'])

You can check from the following aspects:

1. It may be an encoding problem. Check whether all files use unified encoding. For example, utf8;

2. Check whether the applied SDK is entered correctly and whether the applied SDK is entered completely;

3. If it is a problem with the Alipay account and password, then I won’t talk about it

4. It is recommended to wait a few minutes after starting the server and then perform verification.

For more related knowledge, please visitPHP Chinese website!

The above is the detailed content of What to do if php Alipay verification fails. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn