2018php Alipay payment interface payment is successful, but both asynchronous notification and synchronous notification fail to verify and prompt fail solution-By Qinqin Senior

In the past few days, I have made payment for customers, and the deployment debugging found that it has always prompted errors, but the returned $_POST information is normal, and it also prompted me that the payment was successful, but the verification failed. This bothered me for about an hour, and it was only when I searched that I found the similarities.

Because debugging must be paid, I changed the app_id to mine, although the merchant private key and the merchant public key are the same. However, the generated Alipay public key may be different, so the verification fails all the time.

If you also encounter this problem,

It is also possible that the rsa key needs to be updated https://docs.open.alipay.com/291/105971/

I changed it randomly. Alipay public key, app_id, and merchant private key must be correct.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326429972&siteId=291194637