Return URL

PatrickLewis
Contributor
Contributor

I have a return URL set up and working. It will update my database with the sold item so that it is no longer available to sell (via php/mySQL).  I need to validate that the visitor came from the paypal site and completed the payment.  I have had instances where the page gets hit, but nothing is sold.  Not sure if this is a spider crawling or someone hitting the page.

 

The return url is sold.php?item=3

 

3 would be the item number that sold and the status of that item gets changed from available to sold.

 

I was trying to use the referring URL, but that comes up as blank in php.

 

So, now I have to manually update the status of any sold item.

 

Any help would be appreciated.

Login to Me Too
3 REPLIES 3

snowshoe
Frequent Advisor
Frequent Advisor

Are you using PayPal's IPN feature?

https://www.paypalobjects.com/webstatic/en_US/developer/docs/pdf/ipnguide.pdf

 

 

 

Also, you may want to checkout the Developer Forum for help and/or suggestions:

http://stackoverflow.com/questions/tagged/paypal

 

Login to Me Too

PatrickLewis
Contributor
Contributor

Thanks, I will set that up and see how it goes.

Login to Me Too

snowshoe
Frequent Advisor
Frequent Advisor

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.