OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: Getting paypal to work correctly with oscommerce 2.2rc2
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Contributions / Add-Ons > Payment Modules > PayPal
adamw
Heya guys, Wondering if someone could give me a little advice on getting paypal IPN to work correctly with a site I'm building for someone.

Setup:
I have installed the Credit/Debit card payment through Paypal option in the payment options and have setup a sandbox account to test it - I have enabled Paypal IPN and have put the email address of the paypal account that will receive the money into this. I have set it to sandbox mode. I have not filled in any other fields to do with private keys and all that stuff, as I have no idea what it all means blush.gif

What works:
I can choose an item from the site, add it to the cart, check out, be redirected to paypal, pay with paypal and be redirected back to the website after completion. I can check and the money HAS been received by the test account! Yay!

What does not work:
1. The Order status in oscommerce reports "Preparing Paypal IPN" - the customer has not been notified as they should have about their order - the website itself thinks that it hasn't been paid (which it has!) meaning that you would have to check paypal on every order to confirm payment.
2. The quantity of stock is not reduced - in this case allowing two or more people to buy the same object. BOO!

Can anyone give me any advice as to how this may be happening and how it could be solved?

Thanks in advance!
alancwade
QUOTE (adamw @ May 3 2008, 05:25 AM) *
Heya guys, Wondering if someone could give me a little advice on getting paypal IPN to work correctly with a site I'm building for someone.

Setup:
I have installed the Credit/Debit card payment through Paypal option in the payment options and have setup a sandbox account to test it - I have enabled Paypal IPN and have put the email address of the paypal account that will receive the money into this. I have set it to sandbox mode. I have not filled in any other fields to do with private keys and all that stuff, as I have no idea what it all means blush.gif

What works:
I can choose an item from the site, add it to the cart, check out, be redirected to paypal, pay with paypal and be redirected back to the website after completion. I can check and the money HAS been received by the test account! Yay!

What does not work:
1. The Order status in oscommerce reports "Preparing Paypal IPN" - the customer has not been notified as they should have about their order - the website itself thinks that it hasn't been paid (which it has!) meaning that you would have to check paypal on every order to confirm payment.
2. The quantity of stock is not reduced - in this case allowing two or more people to buy the same object. BOO!

Can anyone give me any advice as to how this may be happening and how it could be solved?

Thanks in advance!

I don't know if you got this working. If so let me know what you did. Are you using the osCommerce PayPal IPN contribution?
I am using oscommerce 2.2 RC2a and am having the problem of the invoice number not being passed to PayPal which therefore does not return a VERIFIED transaction when there has been one. Sometimes it works, sometimes it doesn't. My problem sound similar to yours. If you are using this osCommerce PayPal IPN contribution, the thread for support is here:
http://forums.oscommerce.com/index.php?showtopic=179917
I have some recent posts here trying to fix this problem and have had some feedback. We need to combine our efforts to get this fixed. It appears that register_globals may be the problem.
Hope you get it fixed.
alancwade
Hey adamw,
You might want to forget about that thread that I posted. After I read your post again, it appears you may have installed PayPal Website Payments Standard, which is not the same as the contribution osCommerce PayPal IPN.

If you installed the module from the Admin which comes packaged with osCommerce 2.2 RC2a, then this is not the osCommerce PayPal IPN contribution. However, they seem to do the same thing in the same way.

I have not yet tried the stock PayPal Website Payments Standard. So, I cannot comment on it.
Alan
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.