cURL错误60:ssl证书:无法获得本地颁发者证书
cURL错误60:ssl证书问题:无法获得本地颁发者证书
curl.cainfo = "C:\Windows\cacert.pem"
curl_setopt($process, CURLOPT_CAINFO, dirname(__FILE__) . '/cacert.pem');curl_setopt($process, CURLOPT_SSL_VERIFYPEER, true);
编辑
public function chargeStripe(){ $stripe = new Stripe; $stripe = Stripe::make(env('STRIPE_PUBLIC_KEY')); $charge = $stripe->charges()->create([ 'amount' => 2900, 'customer' => Input::get('stripeEmail'), 'currency' => 'EUR', ]); dd($charge); // echo $charge[Input::get('stripeToken')]; return Redirect::route('step1');}