JohnEee
Forum Replies Created
-
Hi Thomas
I have resolved this. The PMPro post pointed me in the right direction. I added
/*
Update the SSLVERSION for CURL to support PayPal Express moving to TLS 1.2More info: https://devblog.paypal.com/upcoming-security-changes-notice/
Your server will need to be updated to a supported version of OpenSSL for this to work.
Add this code to your active theme’s functions.php or a custom plugin.
*/
function my_http_api_curl($handle) {
curl_setopt( $handle, CURLOPT_SSLVERSION, 6 );
}
add_action(‘http_api_curl’, ‘my_http_api_curl’);to my childthemes function.php file and it then worked taking a test payment from paypals sandbox. So the server must be OK with it’s version of cURL to explicitly use the TLS 1.2 protocol
Solved!
Many thanks for all your help
John
Hi Thomas,
Further to this I have just read a post on PaidMemberships Pro’s website https://www.paidmembershipspro.com/paypals-tls-1-2-http1-1-upgrade-impact-membership-site/
In particular the sentence
“Verify Support for TLS 1.2 and HTTP/1.1 With Your WebhostTo avoid disruption in service, you must first verify if your web server supports these security protocols. Contact your web host and find out if your server supports TLS 1.2 and HTTP/1.1. If the answer is no, you will need to work with your web host to enable support. In general, the host only needs to “upgrade OpenSSL to the latest stable version”.
It also goes on to tell of a code snippet to apply in WordPress itself.
I’ve also sent this info to my host.
I hope that makes things clearer
John
Hi Thomas,
I’ve passed all this on to my hosting support team. It’s all done via support tickets but I will update this thread once I have had a reply. They are usually very good and very helpful but they can take a while sometimes.
John
Thanks Thomas,
That’s interesting (not that I understand much of it!).
I have a VPS hosted with a company called ezpzhosting.co.uk. I have the VPS-2048 package on this page https://www.ezpzhosting.co.uk/vps.html
Here is my phpinfo file https://arooneytraining.co.uk/phpinfo.php
Hope that helps, I can always drop a line to my support chaps with any questions.
Many thanks once again,
John
Hi,
Sorry but there is still an error.
I updated to 2.0.5
Checked my sandbox api credentials
Enabled paypal and sandbox
Attempted a test purchase and got this error
WP_Error Object
(
[errors] => Array
(
[http_request_failed] => Array
(
[0] => Cannot communicate securely with peer: no common encryption algorithm(s).
))
[error_data] => Array
(
))
I also cleared my browsers memory.
Perhaps you could have another look.
Many thanks,
John
Hi Thomas,
Many many thanks. That is what I call a speedy response. I’ll do the update now and get on with my testing.
Thanks once again,
John
Thanks for the reply.
Further to what I’ve said before it works with a live PayPal setup, just get the error when I’m using the sandbox (with the sandbox API credentials)
Sorry for my harshness earlier. So far this is the best solution I’ve found. So quick and easy. Just this PayPal thing. I’d like to be able to test via the Paypal sandbox.
John
Well thanks for the reply but to be honest I think that’s not very encourageing.
So what you’re saying is that I have to spent a lot of money to evaluate whether the plugin is suitable for me. And as I’ve discovered a fault straight away with it it hardly encourages me to buy anything.
Well I’ll see if I get any free help but so far I’m not that impressed to be honest.
For your information I’ve completely uninstalled everything and started fresh with a new installtion of WordPress and LifterLMS only. I still get the error mentioned.
Many thanks,
John
Sorry if I sound grumpy ??