Jump to content
Sign in to follow this  
HowardR

How I Got Oscommerce 2.3.4BS Edge working with PayFlow

Recommended Posts

There will be other people who will be in a rush this week to set up new OSCommerce stores in order to work with PayPal PayFlow. If your store is on an old website that doesn't support TLS 1.2, you have to move fast. My store was on a Centos 5 website which didn't support TLS 1.2. I was paid up until early July, so I waited until now to make the switch. Here's how I got the Edge Version of OS Commerce 2.3.4 working with PayPal PayFlow:

1. Purchased a new dedicated server from GoDaddy.

2. Installed GoDaddy's SSL certificate on the new server.

3. Upgraded the dedicated server from EasyApache 3 to EasyApache 4, in order to get TLS 1.2 level of security.

4. Downloaded OSCommerce with Bootstrap Edge version from the following website:
https://github.com/gburton/Responsive-osCommerce/archive/master.zip

5. Changed the root directory of my store to oscommerce234Edge and uploaded the entire directory to the public root directory of my website.

6. Downloaded PayPal App v4.039 from following website: https://apps.oscommerce.com/fZMiN and navigated to catalog\includes\modules\payments in that app and to oscommerce234Edge/includes/modules/payment in my store. I deleted every payment module that was in the online directory. Then I uploaded the four payment modules from the PayPal App directory because they fix the checkout_payment/checkout_success bug 
that has not yet been fixed in the Edge download.

7. I added "& ~E_DEPRECATED" to the error_reporting line in the BootStrap Edge files oscommerce234Edge/includes/application_top.php and oscommerce234Edge/admin/includes/application_top.php. 

8. I used my CPanel to create a new mysql database and gave myself, as user, administrative privileges with that database. 

9. I made following changes to Service Settings at PayPal Manager:

  • Changed all URLs to the correct URLs on my new website. (Note that Edge no longer has a "catalog" directory.)
  • Changed Get to Post in two places
  • Changed checkout_process.php to checkout_success.php
  • Set Enable Secure Token to "No."

10. I used Google Chrome to go to to https://mydomain/oscommmerce234Edge/install/. At the prompt for WWW Address I used https://mydomain/oscommerce234Edge/

11. I downloaded the newly created configuration files and made some slight changes:

  • in the includes/configure.php file I changed define('ENABLE_SSL', false); to define('ENABLE_SSL', true);
  • in the admin/includes/configure.php file I changed define('ENABLE_SSL_CATALOG', 'false'); to define('ENABLE_SSL_CATALOG', 'true');

12. Then I used Google Chrome, to go to my administration file: https://mydomain/oscommerce234Edge/admin/index.php

13. I clicked on "PayPal" and clicked on "Start". Then I clicked on "Retrieve Live Credentials." And saved the result. (I didn't retireve my sandbox credentials, which was a mistake.)

14. Then I added a $1 item to my products which I called "Bumper Sticker" and I set set Flat Rate shipping to be 0, so that I could buy an item that would just cost $1

15. Then I came into my store and tried to buy the bumper sticker. I was never prompted to enter my name. The only way I was able to check out by clicking on "Check out with PayPal" but I got an error message that my credentials were not installed correctly. (Probably because I had not retrieved by Sandbox Credentials when I should have done so.

16. Then I went back to my administrative tool and clicked on "Modules" and "Payment" to see what payment modules were installed. The only one installed was PayPal Express Checkout. The only option for editing it was the sort order, which I edited and set to 1 and clicked "save".

17. Then I clicked on "Install Module" and installed a second module: "PayPal Payments Pro (Direct Payment)" which took me to a page where the highlighted items (orange with white background) indicated which cards
had been enabled and that the status was "Live" and the transaction Method was "Sale". So I Saved those settings.

18. Then I clicked on PayFlow and filled in my credentials which I got from my old store's PayPal Payflow Version 1.2 Payment Module. Where it said "Merchant Login" I put in what was called "Vendor" in my old store. I inserted the same credentials for  Sandbox. Then I clicked "Save."

19. Then I went into my store as a customer. I tried to buy a bumper sticker with a credit card, and it worked.

20. Then I went back into my administration tool and clicked on PayPal and credentials to see what the problem was. It showed that I had never entered my Sandbox credentials. When I tried to retrieve those, it sent me to a page where it wanted me to set up a business account, which I already have. So I simply copied my Live Credentials into the boxes for my Sandbox Credentials and I clicked "Save." 

21. Later, I went back into the store as a customer and tried to check out with PayPal and everything seemed to be working.

Everything that I did could be done in a short time, but it took me hours and hours. I made lots of mistakes such as trying to install Version 5 of the PayPal app which doesn't work with the Edge version and trying to install the PayPal modules before installing the PayPal tool.

 

Edited by HowardR
spelling

Share this post


Link to post
Share on other sites

#6.  no bug has been reported as far as I am aware.  Please report it at https://github.com/gburton/Responsive-osCommerce/issues

 

Quote

such as trying to install Version 5 of the PayPal app which doesn't work with the Edge version

v5 of the Paypal App appears to work fine on my installation of Edge.

Edited by burt

Help shape the future of Phoenix; join the Phoenix Club

Share this post


Link to post
Share on other sites

Burt,

Thank you very much for the response. I'm probably wrong about v5.

Could you go to PayPal Manager and check out your PayPal Service Settings Set Up? V5 settings are most likely the same as v4. Did you:

  1. Use GET or POST?
  2. Return to checkout_process.php or checkout_success.php?
  3. Enable Secure Tokens?

Howard

Share this post


Link to post
Share on other sites

I've got my store online. One of the last things I did was change the Return URL in the PayPal Service Settings on the PayPal website to checkout_process.php from checkout_success.php. I did so because checkout_process.php sends out an email before it exits with checkout_success.php.

Edited by HowardR

Share this post


Link to post
Share on other sites
On 6/26/2017 at 3:56 AM, burt said:

#6.  no bug has been reported as far as I am aware.  Please report it at https://github.com/gburton/Responsive-osCommerce/issues

 

v5 of the Paypal App appears to work fine on my installation of Edge.

@burt, is v5 of the paypal just a straight drop over edge as I don't have an update button? Pls LMK. Thx!

Share this post


Link to post
Share on other sites

clustersolutions:

I think I can answer your question. The problem with dropping 5.010 directly into Edge is that it was coded for OSCommerce 2.3.5, not for OSCommerce2.3.4Edge. (I may be wrong about this.) However, according to the V 5.010 thread, you can install 4.039 and then upgrade to  5.010 with just one click. See:

Some people who tried that in April got errors due to deprecated syntax in the code. My guess is that those errors could be easily eliminated by installing the compatibility add-on: Add-On Compatibility for 2.3.4 EDGE

If you install 4.039 and then click the button to upgrade to 5.010, please post here how it went. If you succeed, I'll probably do it myself.

Howard

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×