SOLVED - Solution for Paypal Orders Not Finishing and showing as Pending in Orders

26.06.2016 23:41
#1
Bilmar
Joomshopping forum user no avatar
Name: Mark
23.05.2016
Posts: 124
Quote
SOLVED - Solution for Paypal Orders Not Finishing and showing as Pending in Orders

SOLUTION!! SOLUTION!! SOLUTION!! SOLUTION!! SOLUTION!! SOLUTION!!

I fixed it after days and days of searching and testing, I finally got it corrected so hopefully this helps others not have to go through all the problems I did!!

First - Check to make sure you are using at least PHP4 or higher. If you are not - None of this will work for you!
Second - Go to your pm_paypal.php file and change the following line:

curl_setopt($ch, CURLOPT_SSLVERSION, $pmconfigs['CURLOPT_SSLVERSION']);
(This is about line 87 in the pm_paypal file)

CHANGE TO:

curl_setopt($ch, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2 );


This should be enough for most people and allow the orders to finish properly and the emails to be sent.

IF NOT - then also do the steps here - ONLY IF THE ABOVE 2 STEPS DO NOT FIX THE PROBLEM:

Third - Go to this page https://gist.github.com/VersatilityWerks/5719158/download to get a clean copy of the file cacert.pem

NOTE - Any method involving windows notepad or other editors corrupts the file and gives the cURL error 60 etc and it messes it up and won't work.

Fourth - Take that newly saved file and upload it anywhere on your server you want. I put mine in the PHP/Extras folder just to keep everything together.

Fifth - Now go to your PHP.ini file and find the line:

;curl.cainfo =


CHANGE IT TO

curl.cainfo = "[pathtothisfile]\cacert.pem"


Sixth - Restart your server!

That's it!

If you do not have access to your server then contact your administrator.

After these steps, your orders will complete / finish correctly and the emails will be sent assuming all the other settings and configurations are correct.

Hopefully this helps everyone else who is experiencing the same issues!


Last change: 26.06.2016 23:48
 
29.06.2018 12:09
#2
vandalay
Joomshopping forum user no avatar
Name: Sebastian
13.04.2015
Posts: 14
Quote
Aw: SOLVED - Solution for Paypal Orders Not Finishing and showing as Pending in Orders

You can also use the Integer Values and change:

curl_setopt($ch, CURLOPT_SSLVERSION, 4);
(4=TLS_1_0)

to

curl_setopt($ch, CURLOPT_SSLVERSION, 6);
(6=TLS_1_2)

if you have an older/other Version with that line like me

Kind regards
vandalay


Last change: 29.06.2018 12:19
 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.