Jump to content
royth

Paypal SSL Test Failure

Recommended Posts

 

I have just installed a virgin OSCommerce 2.3.4.1 instance and added the PayPal app and updated it using the automatic update feature.

Having not had any luck with getting PayPal to work I have carried out the test below.

 

On the paypal app, configure > general page if verify SSL is set to True and I click the "Test connection" button then I get a failure on the test, the error message says to check that TLS 1.2 is enabled.  I have spoken with my Service provider and they say that TLS 1.2 is installed. They have tested the following code that works and makes a connection through to PayPal, any one have a clue why the built in test is not working?

 

<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://tlstest.paypal.com');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FAILONERROR, true);
curl_setopt($ch, CURL_SSLVERSION_TLSv1_2); // CURL_SSLVERSION_TLSv1_2
$result = curl_exec($ch);
echo 'result = '.$result.'<br>';
echo 'errno = '.curl_errno($ch).'<br>';
echo 'error = '.curl_error($ch).'<br>';
curl_close($ch);
?>

Share this post


Link to post
Share on other sites
3 hours ago, royth said:

On the paypal app, configure > general page if verify SSL is set to True and I click the "Test connection" button then I get a failure on the test, the error message says to check that TLS 1.2 is enabled. 

It's most likely because the ssl cert the app uses needs to be updated. I think this is a good one.

Share this post


Link to post
Share on other sites

@royth - Jack's right; that seems likely. If you use the responsive version (CE) that has the certificate already updated. Better place to start a site unless you've a really good reason


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

Thanks BrockleyJohn, I have taken your suggestion and downloaded the CE version and installed that and the paypal test is now working, ( I took this option for all updates not just the paypal certs)

However paypal itself is still not working, this is a virgin store just installed with CE and I have configured the Paypal standard via the paypal App, and updated the Paypal App to the latest version with the auto update feature.

I have set up both live and sandbox credentials, and the PDT Identity Token, I have set the return URL in paypal to the correct location as prompted by the app but when I test a paypal payment using the sandbox when it returns to OSCommerce the item is still in the cart and there is no transaction in the paypal log. 

The only thing I can get to show up in the log is when I check the paypal balance!

Any one have any clues as to what I can check now?

Share this post


Link to post
Share on other sites
25 minutes ago, royth said:

downloaded the CE version

Be sure it is the Phoenix version, not the previous CE version.

For paypal, the sandbox is a pain to use, in my opinion, and not worth the effort. If you have access to another paypal account use it. Or just create a second paypal account if you don't.

 

Share this post


Link to post
Share on other sites
1 minute ago, Jack_mcs said:

Be sure it is the Phoenix version, not the previous CE version.

For paypal, the sandbox is a pain to use, in my opinion, and not worth the effort. If you have access to another paypal account use it. Or just create a second paypal account if you don't.

 

It is the Phoenix version from the link given above.

I agree the sandbox is a pain... I have a second account ill give it a quick try now and report back

 

Share this post


Link to post
Share on other sites
19 minutes ago, royth said:

agree the sandbox is a pain... I have a second account ill give it a quick try now and report back

Yes I tried it on the live server and all works, I refunded the payment via paypal the orders to cancel the order but could not see an option to cancel the order only delete them, so ill try again see if I should of not refunded first to see how to mark an order as cancelled as opposed to deleting it.

Share this post


Link to post
Share on other sites
8 hours ago, royth said:

It is the Phoenix version from the link given above.

I agree the sandbox is a pain... I have a second account ill give it a quick try now and report back

 

The usual problem with sandbox is that paypal throws an error you never see if the sandbox merchant account has an email address that isn't confirmed... unless of course they've fixed that one and introduced another!

Anyway good that you've got it working on live, as Jack says that's easier and all you really need.


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites
7 hours ago, royth said:

Yes I tried it on the live server and all works, I refunded the payment via paypal the orders to cancel the order but could not see an option to cancel the order only delete them, so ill try again see if I should of not refunded first to see how to mark an order as cancelled as opposed to deleting it.

The app doesn't automatically change osc orders status after the point the order has been paid, if that's what you're expecting, but it does log all the IPNs against the order history.

You can refund a whole paypal payment from within the order page in admin, but if you want to do a partial refund you have to do that in pp

There's a raft of order page mods that can be done to support your admin workflow on orders but not a lot within stock osc


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

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

×