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.
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 visit PHP 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!