PayPal SDK with Laravel: SSL certificate proble: self signed certificate in certificate chain -



PayPal SDK with Laravel: SSL certificate proble: self signed certificate in certificate chain -

when trying process payment request using paypal sdk within laravel 5, come across next error:

paypalconnectionexception in paypalhttpconnection.php line 140: ssl certificate problem: self signed certificate in certificate chain

this part of processing code:

use app\http\requests; utilize app\http\controllers\controller; utilize illuminate\support\facades\db; utilize illuminate\support\facades\input; utilize illuminate\http\request; utilize app\square; utilize app\tempcell; utilize paypal\api\amount; utilize paypal\api\details; utilize paypal\api\item; utilize paypal\api\itemlist; utilize paypal\api\payer; utilize paypal\api\payment; utilize paypal\api\redirecturls; utilize paypal\api\transaction; utilize paypal\rest\apicontext; utilize paypal\auth\oauthtokencredential; $quantity = input::get('additional_squares') + 1; $user_message = input::get('personal_message'); $display_name = input::get('display_name'); $initial_cell = input::get('selected_square'); //determine if requested number of cells available. if so, spit out array of cell locations purchased. if not, send user fail page. $available_cells = $this->availablecells($initial_cell, $quantity, $user_message, $display_name); $group_id = $available_cells['group_id']; //identifier of records order if(count($available_cells['cells']) == 0){ header("location: " . base_path . 'fail.php'); exit; } // write paypal api phone call $apicontext = new apicontext( new oauthtokencredential( 'client_id', // clientid 'client_secret' // clientsecret ) ); $payer = new payer(); $payer->setpaymentmethod("paypal"); ...

outside of laravel, code works properly , there no ssl certificate error. leads me believe issue laravel no laravel pro i'm not sure.

i have tried modifying php installation recommended this article, no luck.

paypal laravel-5 paypal-rest-sdk

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -