Validate that IPN call is from PayPal?

前端 未结 6 1981
南方客
南方客 2020-12-09 21:58

How can I validate that a PayPal IPN POST request to my specified notifyURL is indeed coming from PayPal?

I don\'t mean comparing the data to what I sent earlier, bu

6条回答
  •  失恋的感觉
    2020-12-09 22:19

    If I remember correctly, the PayPal uses a static IP for it's IPN calls.

    So, checking for the correct IP should work.

    alternatively, you could make use of gethostbyaddr or gethostbyname.

提交回复
热议问题