Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Paypal integration


Recommended Posts

I am at the stage where I need to add Paypal to the site that I have been working on, creating the API credentials is rather straightforward and I can send a customer to Paypal fine but I don't want the process to end there.


I have three questions that I hope others here will have an answer for.


1) Is there a good online guide/documentation detailing Paypal integration?

2) How do you properly enable sandbox mode in OSCom as whenever I try this in the Paypal module I encounter errors during checkout.

3) After completing the transaction I would like the customer to return to the website so that

a: They have a more complete user-experience

b: Stock levels in the shop can be updated accordingly and the purchase will appear in the customer's profile.

I know that Paypal can redirect to the site, but I don't know where to have it redirect so that the above can be completed automatically. What do others do in this situation?




Link to comment
Share on other sites

Any particular reason you are trying to "re-invent the wheel"? There are plenty of ready to use PayPal modules available, click me...

Link to comment
Share on other sites

@@toyicebear I don't regard it as re-inventing the wheel. I'm only trying to properly use the module provided with the basic install of OSCommerce. Do I need to install further modules to make this work?


Edit to add: Thanks for the link. I'm actually using Version 2.1.3 of OSCommerce.

What I need is essentially some documentation or a good comprehensive tutorial explaining how to make the Paypal module work.

Link to comment
Share on other sites

There are 3 PayPal modules included as standard in 2.3.1.


If you use the one named PayPal Standard , you can make it work simply by adding your paypal email address.


That's actually all that is needed for customers to be able to pay at your site using PayPal.


For the Express module you will need to get API credentials from PayPal.


For the Pro module you will need to sign-up for it at PayPal first, it also comes with a monthly fee.

Link to comment
Share on other sites

I could be corrected here, but if you are using 2.3.1 the return url should be to your checkout_process.php.


There are enough threads on this site about setting up paypal, and i am 100% convinced a search will find a few of them. Paypal standard is so easy to setup, just enter your email address. What is more difficult is goimng through your paypal profile pages and setting everything up that end. Make sure you have set the return URL and activated it, and that you allow IPN checkout. I think the only other setting that really matters is something to do with the shipping area where you have to not allow paypal shipping costs, or something like that.


Link to comment
Share on other sites

Update: Had a play with setting this up this morning.


I've got the cart running in sandbox mode, IPN enabled and tested on 'checkout_process.php' - so far so good.


But there is a problem. I have set the return url to 'checkout_process.php', 'checkout_success.php' and 'checkout_confirmation.php' and each time after payment my test buyer is redirected to 'shopping_cart.php'. Furthermore my test buyer is signed out of the OSCommerce site and his purchase is not registered.


Frustrating B)

Link to comment
Share on other sites

This means that when you return from Paypal oscsid(session ID is lost).


Solution I recommed is to set force cookies to true.This will result in session ID being in cookies.


Also make sure session are not getting recreated.There are few configuration in admin for session make sure they are set properly.



Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.


Check My About US For who am I and what My company does.

Link to comment
Share on other sites


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

  • Create New...