我在 Codeigniter 中使用 CI Merchant 库,下面是我在 $response 上的 var_dump 之后得到的错误消息
protected '_status' => string 'failed' (length=6)
protected '_message' => string 'SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed' (length=146)
下面是我的代码
$this->merchant->load('paypal_express');
$settings = array(
'username' => 'testaccount',
'password' => 'accountpassword',
'signature' => 'storename',
'test_mode' => true
);
$this->merchant->initialize($settings);
//redirect to success/failure of transaction
$params = array(
'amount' => $amount,
'currency' => $currency,
'return_url' => site_url('membership/complete/'.$memberid),
'cancel_url' => site_url('membership/fail')
); /**/
$response = $this->merchant->purchase_return($params);
有什么问题?先感谢您