Problem with PayPal Express and SSL cert

Help for integrating the Laravel package
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!
wygigs
Posts: 9
Joined: 28 Dec 2015, 04:30

Problem with PayPal Express and SSL cert

Post by wygigs » 25 Jan 2016, 21:01

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

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Problem with PayPal Express and SSL cert

Post by aimeos » 25 Jan 2016, 21:46

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, Image give us a star

wygigs
Posts: 9
Joined: 28 Dec 2015, 04:30

Re: Problem with PayPal Express and SSL cert

Post by wygigs » 26 Jan 2016, 00:17

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?

wygigs
Posts: 9
Joined: 28 Dec 2015, 04:30

Re: Problem with PayPal Express and SSL cert

Post by wygigs » 26 Jan 2016, 06:12

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

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Problem with PayPal Express and SSL cert

Post by aimeos » 26 Jan 2016, 09:52

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.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

wygigs
Posts: 9
Joined: 28 Dec 2015, 04:30

Re: Problem with PayPal Express and SSL cert

Post by wygigs » 26 Jan 2016, 10:33


Post Reply