Post by ExtremeLeadProgram » Sat Feb 06, 2016 11:26 pm

I'm trying to post a message but keep getting the cloudflare blocked message, please help?

Since I can't post it here, I have put the issue up in a simple file online, if this isn't allowed go ahead and remove it: http://extrememarketingprogram.com/payp ... -issue.htm
Last edited by ExtremeLeadProgram on Sun Feb 07, 2016 12:00 am, edited 1 time in total.


Posts

Joined
Sat Jul 09, 2011 4:59 am

Post by ExtremeLeadProgram » Sun Feb 26, 2017 11:28 pm

Trying to troubleshoot a Paypal Express issue on a new install of opencart 2.1.0.2. I have Paypal express in sandbox mode. When I get to step 6 and press "confirm", it takes me right back to step 2. I see this error code in the logs of opencart:

2016-02-05 21:55:26 - PayPal Express debug (Call data): {"METHOD":"SetExpressCheckout","MAXAMT":"118.50","RETURNURL":"https:\/\/www.extrememarketingprogram.com\/index.php?route=payment\/pp_express\/checkoutReturn","CANCELURL":"https:\/\/www.extrememarketingprogram.com\/index.php?route=checkout\/checkout","REQCONFIRMSHIPPING":0,"NOSHIPPING":1,"LOCALECODE":"EN","LANDINGPAGE":"Login","HDRIMG":null,"PAYFLOWCOLOR":"#FFFFFF","CHANNELTYPE":"Merchant","ALLOWNOTE":"1","PAYMENTREQUEST_0_SHIPPINGAMT":"","PAYMENTREQUEST_0_CURRENCYCODE":"USD","PAYMENTREQUEST_0_PAYMENTACTION":"Sale","L_PAYMENTREQUEST_0_DESC0":false,"L_PAYMENTREQUEST_0_NAME0":"Silver Package - 30,000 Visitors Per Month","L_PAYMENTREQUEST_0_NUMBER0":"traffic","L_PAYMENTREQUEST_0_AMT0":"79.00","L_PAYMENTREQUEST_0_QTY0":"1","L_PAYMENTREQUEST_0_ITEMURL0":"https:\/\/www.extrememarketingprogram.com\/silver-traffic-package","PAYMENTREQUEST_0_ITEMAMT":"79.00","PAYMENTREQUEST_0_AMT":"79.00"} 2016-02-05 21:55:26 - PayPal Express debug (cURL failed): {"error":"SSL connect error","errno":35} 2016-02-05 21:55:26 - PayPal Express debug (Result): false 2016-02-05 21:55:26 - PHP Notice: Undefined offset: 1 in /var/www/clients/client1/web127/web/catalog/model/payment/pp_express.php on line 10 2016-02-05 21:55:26 - PHP Notice: Undefined index: L_LONGMESSAGE0 in /var/www/clients/client1/web127/web/catalog/controller/payment/pp_express.php on line 1324 2016-02-05 21:55:26 - a:1:{s:0:"";s:0:"";}

After some research, it seems to be curl/ssl related. Via SSH the command "curl https://api-3t.sandbox.paypal.com" throws "curl: (35) SSL connect error". Forcing curl to use Tls seems to work: "curl -1 https://api-3t.sandbox.paypal.com" gives "a page not found error", so it's getting past the SSL issue.

So I figured if I could force curl in php to use TLS, I should be fine. So I edited "catalog/model/payment/pp_express.php" and added "CURLOPT_SSLVERSION => "CURL_SSLVERSION_TLSv1_2" to the $defaults array. Same error in the logs. So I tried adding "CURLOPT_SSL_CIPHER_LIST => 'TLSv1'" and got a new error:

2016-02-05 22:04:57 - PayPal Express debug (Call data): {"METHOD":"SetExpressCheckout","MAXAMT":"118.50","RETURNURL":"https:\/\/www.extrememarketingprogram.com\/index.php?route=payment\/pp_express\/checkoutReturn","CANCELURL":"https:\/\/www.extrememarketingprogram.com\/index.php?route=checkout\/checkout","REQCONFIRMSHIPPING":0,"NOSHIPPING":1,"LOCALECODE":"EN","LANDINGPAGE":"Login","HDRIMG":null,"PAYFLOWCOLOR":"#FFFFFF","CHANNELTYPE":"Merchant","ALLOWNOTE":"1","PAYMENTREQUEST_0_SHIPPINGAMT":"","PAYMENTREQUEST_0_CURRENCYCODE":"USD","PAYMENTREQUEST_0_PAYMENTACTION":"Sale","L_PAYMENTREQUEST_0_DESC0":false,"L_PAYMENTREQUEST_0_NAME0":"Silver Package - 30,000 Visitors Per Month","L_PAYMENTREQUEST_0_NUMBER0":"traffic","L_PAYMENTREQUEST_0_AMT0":"79.00","L_PAYMENTREQUEST_0_QTY0":"1","L_PAYMENTREQUEST_0_ITEMURL0":"https:\/\/www.extrememarketingprogram.com\/silver-traffic-package","PAYMENTREQUEST_0_ITEMAMT":"79.00","PAYMENTREQUEST_0_AMT":"79.00"} 2016-02-05 22:04:58 - PayPal Express debug (cURL failed): {"error":"Unknown cipher in list: TLSv1","errno":59} 2016-02-05 22:04:58 - PayPal Express debug (Result): false 2016-02-05 22:04:58 - PHP Notice: Undefined offset: 1 in /var/www/clients/client1/web127/web/catalog/model/payment/pp_express.php on line 10 2016-02-05 22:04:58 - PHP Notice: Undefined index: L_LONGMESSAGE0 in /var/www/clients/client1/web127/web/catalog/controller/payment/pp_express.php on line 1324 2016-02-05 22:04:58 - a:1:{s:0:"";s:0:"";}

I'm running centos 6.5 on a dedicated server. I tried "yum update curl" and "yum update openssl" in case it was those, but that didn't help. I could update centos but this is a production box with 100 or so site on it and would rather not break anything. If anyone has any ideas what to try next, I would appreciate it in advance.

Thank you, Mike Rogers


Posts

Joined
Sat Jul 09, 2011 4:59 am
Who is online

Users browsing this forum: No registered users and 2 guests