Alipay, China's leading third-party online payment solutionAlipay, China's leading third-party online payment solution

How to verify whether request is sent by Alipay

  • Purpose:

To verify whether this notification information is sent by Alipay server in order to assist the verification of whether the data fed back is true or false.

  • Operating Principle:Obtain notify verification ID (notify_id) of one of the returned data by Alipay and construct the request link in the format required by Alipay, for example:
    https://mapi.alipay.com/gateway.do?service=notify_verify&partner=2088002396712354&notify_id=RqPnCoPT3K9%252Fvwbh3I%252BFioE227%252BPfNMl8jwyZqMIiXQWxhOCmQ5MQO%252FWd93rvCB%252BaiGg

Visit this request link, simulate http by way of programming and request interaction with Alipay server to obtain the processing result of Alipay server. 

If the information obtained is true, the verification succeeds or otherwise the verification fails.