ipn process script

trixysvinyl

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?

thanks

matt
 

stanbusk

Administrator
Staff member
At the beginning of the script you can set the Paypal sandbox URL:
Code:
$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.
 
Top