• Next Maxprog online event is scheduled to go live soon!

    You can attend the event here: live.maxprog.com
    You can already ask questions on the very same page.

    You can also add the event to your calendar by clicking on Add to Calendar
    or click on the YouTube button to subscribe to our channel.

ipn process script


New Member
Today I bought your ipn script.

I am using the paypal sandbox setings with my site. How can I make sure that your script doesnt give errors and sends an invoice through to the recipients email address when Im using the paypal sandbox URL?

Also, the $transaction_details variables dont gather data for all products in my cart because it doesnt loop through the cart.

Also, when was the script last updated - was it 2006? Will you tell me how to fix the above points?




Staff member
At the beginning of the script you can set the Paypal sandbox URL:
$fp = fsockopen ('ssl://www.paypal.com', 443, $errno, $errstr, 30);             // <- Use this line for real use
//$fp = fsockopen ('ssl://www.sandbox.paypal.com', 443, $errno, $errstr, 30);   // <- Use this line when testing in SandBox
This is the script we use on our store right now. Well, our script does custom stuff.

The $transaction_details is mainly for debugging, to send messages to yourself so you can check if everything is correct. You can include whatever you need in it.