Hi,
I am a PHP newbie and am in dire need of help 🙂 I want to make a script for the PayPal Instant Payment Notification. I've found only a bit of info on how to do this in PHP, which wasn't much help.
I am wondering if anyone could post information on which functions I need to use to do the following:
Quote from PayPal.com: "--Once your server has received the Instant Payment Notification, you will need to confirm it by constructing an HTTP POST to PayPal. Your POST should be sent to "https://www.paypal.com/cgi-bin/webscr"
You must post all of the form variables you received exactly as you received them. You will also need to append a variable named "cmd" with the value "notify-validate" (e.g. cmd=notify-validate) to the POST string.--"
What I am thinking of doing is braking up the $HTTP_POST_VARS (is the $HTTP_POST_VARS an array?) to get all of the variables, then I will put it in my database, after that is my problem, how do I sent back the $HTTP_POST_VARS + _notify-validate back to the server?
When I am done this script I will dedicated a part of my site to this script, so other people can benefit from it.
Thank You!
Fearan