Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PayPal IPN doesn't reset the shopping cart


rekhis

Recommended Posts

Posted

I am doing some testing with Paypal IPN feature. For that, I bought some items from my site. The order went through fine, I got an email as customer and also as store-owner with order details. But when the Paypal directed me back to my site, my shopping cart was not reset. It had same items in it before placing the order.

 

Under Paypal IPN module, I changed status from "default" to "Pending", and also to "Processing" but that didn't help.

 

What do I need to do to reset my cart upon completion of sale? When I choose Credit-Card option (where half digits are sent to me via email and half are in database), the cart correctly resets itself.

 

Thanks

...Manjeet

Posted

Did you set up the right path on Paypal's site for the IPN to return to? When you place an order through Paypal and then go into admin is the order status " paypal pending" or "processing"? It should initially be "paypal processing" and then when Paypal sends the ipn back to the file that you have specified on the paypal site it automatically switches to "pending", clears the cart, and deducts the item from your online inventory. If you have the path wrong when you enter it in at the Paypal site none of that happens, ie. it still says paypal processing, items remain in the cart, and the item is not removed from your inventory. You set the path on the Paypal site in your profile->Instant Payment Notifications https://www.paypal.com/us/cgi-bin/webscr?cm...file-ipn-notify

Posted

Thanks for your reply. I had not setup any IPN on paypal. I just did that. I have to specify the path to "paypal_notify.php" file, correct? And how long does it take for an order to become "pending" from "Paypal processing" ? Shouldn't that be instantaneous (or in the same session)? Mine still shows "Paypal Processing". I will check if it is reducing my inventory level or not.

 

Thanks again

...Manjeet

Posted

You are correct, its not reducing my inventory as well ! What's the default path I need to define at paypal's site ?

Posted

Finally I got it working. I had to define the correct URL at paypal's site which actually refers to paypal_notify.php file at my site. I tested it few times, sometimes IPN would come back immediately and clear the cart, but sometimes it would take a while. But everytime, it reduced the inventory appropriately and sent me an email too.

 

I am a happy camper now !

 

:rolleyes:

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...