简体   繁体   中英

Getting referer info from Paypal successful payment?

Let's say someone paid successfully and redirected to my "successful payment" page. Can I track the referer url by

$_SERVER['HTTP_REFERER'];

I want to do this because I should show "thank you" page only if visitor comes from paypal.

I can't get echo $_SERVER['HTTP_REFERER']; to display the PayPal referring URL after a transaction completes and I'm taken back to my return URL. I did try some other tests to make sure the command worked - and it did. I can get the referring URL to appear.

I did a bit of research and apparently PayPal hides that information. I'm not sure why though but I'm sure it has something to do with security - sorry.

If you're looking to verify information when someone navigates to your return page you can use Payment Data Transfer.

由于PayPal使用HTTPS,因此只有在使用HTTPS而非HTTP )的情况下,您才可以跟踪引荐来源网址。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM