Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.


gjpinzino

Recommended Posts

I am working on our store in osCommerce 2.3.4 and am trying to debug an issue with Paypal Payments Standard. My testing configuration is Wampserver 3.0.6,  PHP 5.6.25, MySQL 5.7.14 and Apache 2.4.23. I am using the Paypal standard module in sandbox mode. When I run a test transaction, Paypal standard processes the payment, but when I return to the store using the Paypal button, I am taken back to the shopping cart. My order is still in the cart, and I get an error message, “ Could not verify the PayPal transaction. Please try again.” The order shows up in the orders tables and in admin/orders. The PHP error log fails to show any significant error for the transaction.

 

This is an out-of-the-box setup with no changes to any of the files. What could be the issue here?

Link to comment
Share on other sites

I am trying to run my tests on a localhost sandbox. I recall reading a post which described a convoluted process for obtaining and installing a SSL certificate on a local machine. the website which was supposed to create the certificate for me did not work for some reason. We have a SSL certificate on our production site. Would it be easier to do my testing there rather than trying to set up my local machine?

Link to comment
Share on other sites

You'll probably get different views on this but to me doing your development on/in an environment as close as possible to the one it'll be used on is ideal.   I do all my testing and development in a directory on my production site or at least on a site that is hosted on the same server.   I don't want to chase issues that I won't have on the production site or indeed find out I have issues when I move my work to the production site. 

 

Dan

Link to comment
Share on other sites

@@gjpinzino I do the same as @@Dan Cole, always setting up a new test instance on the same server as the shop will end up on. Far easier. Just don't forget to use the noindex module and set all pages to no index so that Google and other search engines doesn't list your dev site.

osCommerce user since 2003! :thumbsup:

Link to comment
Share on other sites

Thanks Dan and Frank. That is an excellent idea. It will take some time for me to set up a test bed on my production server, so this topic will be quiet for a while. I will get back to you when I have tried it out.

 

Thanks for your help.

Link to comment
Share on other sites

OK,here we go again. I uploaded and installed OSC on my production server (where I have a fully functional SSL certificate). I modified the includes/configure.php and admin/includes/configure/php in accordance with the forum post at http://www.mydomain.com');
  define('HTTPS_SERVER', 'https://www.mydomain.com');
  define('ENABLE_SSL', true);
  define('HTTP_COOKIE_DOMAIN', 'www.mydomain.com');
  define('HTTPS_COOKIE_DOMAIN', 'www.mydomain.com');

admin/includes/configure.php
  define('HTTP_SERVER', 'https://www.mydomain.com');
  define('HTTP_CATALOG_SERVER', 'https://www.mydomain.com');
  define('HTTPS_CATALOG_SERVER', 'https://www.mydomain.com');
  define('ENABLE_SSL_CATALOG', 'true');
  define('ENABLE_SSL', false); // This setting was not changed in the forum post, but I tried it both ways.

 

I also configure the PayPal Payments Standard module for my sandbox

I made test purchases and all seemed to go well, except I continue to get the "Could not verify the PayPal transaction. Please try again." error message, on the shopping cart page. The product purchased still shows up in the cart. I'm being routed to the shopping cart page instead of the confirmation page.

What am I missing here?

Link to comment
Share on other sites

Change

define('HTTP_SERVER', 'http://www.mydomain.com'); 

to

define('HTTP_SERVER', 'https://www.mydomain.com');

and see how that goes.

osCommerce user since 2003! :thumbsup:

Link to comment
Share on other sites

Hi,

 

the payment-module expects an certain response from the PayPal-Server. The confirmation fails, if it doesn't get this response.

 

We had this with the Sandbox, too. After we switched to live mode, the error went away.

 

Maybe it's not your configuration, but the PayPal-Sandbox.

 

AD

Link to comment
Share on other sites

This is all you received in the e-mail? You didn't remove a parameter?

 

The list is missing the "receiver_email". That's probably why the confirmation fails.

The "receiver_email" is the "Seller E-Mail Address" in the payment-module configuration.

 

Stupid question(s) to make things clear: You downloaded the osCommerce 2.3.4 from this site? You use the PayPal Payments Standard payment-module of this version?

You're not using the "PayPal App"?

 

AD

Link to comment
Share on other sites

Rene, they are not stupid questions, and if you promise not to shoot me at sunrise, I will answer them, and give you some background as well.

 

Yes, I downloaded 2.3.4 from the oscommerce website to my localhost testing server. No, I am not using the PayPal app. As for the PayPal Standard module, I am using the module that came with 2.3.4.

 

I am working on replacing a 9 year-old version (“Old Version”) of oscommerce, hoping to replace the Old Version with version 2.3.4 (“2.3.4”). I have done extensive modification on 2.3.4, but the payment process is unaltered. When I started getting this error while testing the payment process, I installed a clean copy of 2.3.4 (“Test Version”) to see if my modifications were somehow messing up the payment process. The Test Version is an out-of-the-box copy on my localhost test server with no modifications. Running payments through the Test Version produces exactly the same errors.

 

When Dan and Frank suggested setting up an instance of osc on the production server, I installed a copy of the Test Version there. As I have mentioned, the production version has an SSL certificate already installed and functionioning.  Running payments on the production server in either sandbox or live mode produced exactly the same erroneous results.

 

Out of desperation, I put the PayPal Standard module into the Old Version and ran a couple of live transactions. The debug email I posted is from one of those transactions, so it might be misleading. The transactions run through 2.3.4 do not generate a debug email. I have searched the Test Version to see where the debug email content is generated, but I cannot find it. I was hoping it would give me a clue as to the problem.

 

I hope this litany sheds a little more light on the problem.

Link to comment
Share on other sites

@@gjpinzino Gerald, why don't you download and install the PayPal APP.  Others (including me) are using it without issue so maybe it'll solve your problem....it might not. but at least you'll rule out the possibility that it is the older version of PayPal Standard that is causing your issue.   I had similar issues at one point which was caused by the return url not matching the one expected in the PayPal module.  I echoed out the expected return URL and made sure it matched what I had set up at PayPal and bingo it started to work.

 

I'll see if I can find that thread for you but think about using the PayPal APP.  The other thing you should consider at some point, before you get to far along, is to install the Responsive Version of osC.  The Edge version would be my suggestion.

 

Dan

Link to comment
Share on other sites

@@gjpinzino Gerald, I couldn't find the post I was thinking about but I found this post which might help.  My suggestion would be to install the APP and then work your way through the steps suggested in that post.

 

Dan

Link to comment
Share on other sites

@@gjpinzino I second @@Dan Cole 's advice.

 

Install the responsive version of osC, if you're allowed to: http://www.oscommerce.com/forums/topic/396152-bootstrap-3-in-234-responsive-from-the-get-go/

 

This version has the PayPal App already installed, I believe, but the module needs an update because of a bug. The payment module updates itself automatically, you just need to click a button in the admin.

 

AD

Link to comment
Share on other sites

Thanks Rene and Dan. I will try the PayPal app. It has to be better than the three months of grief I have been going through to get the osC module to work. I am aware of the responsive version of osC. Unfortunately, I was not informed about it until I was a year into the customization of 2.3.4 for this site. Stuff happens!

 

I'll post an update with my experience with the app.

Link to comment
Share on other sites

Well I think I have the app properly installed. I see the PayPal button in my admin page and I was able to retrieve my sandbox credentials. I tried placing a test order, but when I got to the checkout_payment page, the only payment option is COD. Now what?

Link to comment
Share on other sites

Hi,

 

did you install the "Payments Standard"-Module? "PayPal Admin Box" --> Configure; there should be three Buttons: "Payments Standard", "General", "+" (If you didn't install more modules)

 

If the "Payments Standard" is missing, click the "+" and select the module.

If the "Payments Standard" is present, check if you have set the mode to "Sandbox".

 

Those are the only reasons I can think of, why the payment option isn't available on the payments page.

 

AD

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...