Problem with PayPal Express and SSL cert
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Problem with PayPal Express and SSL cert
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
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
Looks like a problem with your installation of the PHP CURL extension.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Problem with PayPal Express and SSL cert
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?
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
Update...
I tried this code on my server and it worked...
Still have the same problem with Aimeos
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
?>
Re: Problem with PayPal Express and SSL cert
Try with https://... instead, then it should fail too in your environment.wygigs wrote: I tried this code on my server and it worked...
Still have the same problem with Aimeos
I don't think it's directly related to Aimeos.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
