Page 1 of 1

Problem with PayPal Express and SSL cert

Posted: 25 Jan 2016, 21:01
by wygigs
Hi,

I'm developing with Aimeos Laravel (5.1) on my local machine running Xampp (I wonder if this is my problem?)

I've set up PayPal sandpit accounts and configured under admin/service.

I can add item to my cart, and work through checkout steps 1-5, but when I click Buy Now I get 'A non-recoverable error occured' and my Aimeos log contains:

Sending order failed: "SSL certificate problem: unable to get local issuer certificate"
#0 C:\xampp\myWebs\plumpie\vendor\aimeos\aimeos-core\lib\mshoplib\src\MShop\Service\Provider\Payment\PayPalExpress.php(186): MW_Communication_Curl->transmit('https://api-3t....', 'POST', 'VERSION=87.0&SI...')


I then set up a self-cert SSL which shows as green padlock in Mozilla, but I get the same error.

Any ideas what the problem is?

Thanks in advance

Re: Problem with PayPal Express and SSL cert

Posted: 25 Jan 2016, 21:46
by aimeos
Looks like a problem with your installation of the PHP CURL extension.

Re: Problem with PayPal Express and SSL cert

Posted: 26 Jan 2016, 00:17
by wygigs
The following is from my phpInfo()

curl
cURL support enabled
cURL Information 7.40.0
Age 3
Features
AsynchDNS Yes
CharConv No
Debug No
GSS-Negotiate No
IDN Yes
IPv6 Yes
krb4 No
Largefile Yes
libz Yes
NTLM Yes
NTLMWB No
SPNEGO Yes
SSL Yes
SSPI Yes
TLS-SRP No
Protocols dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, pop3, pop3s, rtsp, scp, sftp, smtp, smtps, telnet, tftp
Host i386-pc-win32
SSL Version OpenSSL/1.0.1l
ZLib Version 1.2.7.3
libSSH Version libssh2/1.5.0

openssl
OpenSSL support enabled
OpenSSL Library Version OpenSSL 1.0.1l 15 Jan 2015
OpenSSL Header Version OpenSSL 1.0.1m 19 Mar 2015

zlib
ZLib Support enabled
Stream Wrapper compress.zlib://
Stream Filter zlib.inflate, zlib.deflate
Compiled Version 1.2.7.3
Linked Version 1.2.7.3

What else can I check?

Re: Problem with PayPal Express and SSL cert

Posted: 26 Jan 2016, 06:12
by wygigs
Update...

I tried this code on my server and it worked...

Code: Select all

<?php

   $URL = "http://www.bbc.co.uk";

   $chwnd = curl_init();

   curl_setopt($chwnd, CURLOPT_URL,$URL);

   curl_setopt($chwnd, CURLOPT_VERBOSE, 1);

   curl_setopt($chwnd, CURLOPT_POST, 0);

   curl_setopt($chwnd, CURLOPT_RETURNTRANSFER,1);

   $returned = curl_exec($chwnd);

   curl_close ($chwnd);

   echo $returned;

    // code adapted from Tony Spencer

?>
Still have the same problem with Aimeos

Re: Problem with PayPal Express and SSL cert

Posted: 26 Jan 2016, 09:52
by aimeos
wygigs wrote: I tried this code on my server and it worked...
Still have the same problem with Aimeos
Try with https://... instead, then it should fail too in your environment.
I don't think it's directly related to Aimeos.

Re: Problem with PayPal Express and SSL cert

Posted: 26 Jan 2016, 10:33
by wygigs