Using the Payum bundle with symfony2
, I have the common
unable to verify ssl certificate
error.
I couldn't get rid of it by changing curl
options in php.ini
or by setting curl
options in my php code.
However, modifying the vendor/kriswallsmith/buzz/lib/Buzz/Client/AbstractClient.php
class and setting the default $verifyPeer
option to false
finally allows me to use Payum and PayPal express checkout locally with wamp.
EDIT: I can also override this class which uses the other one. I feel it's safer:
vendor/payum/core/Payum/Core/Bridge/Buzz/ClientFactory.php
How can I override this class (ideally conditionally ie in dev mode when I'm working locally) ?