我在我的codeigniter中使用Ci商家,但是我遇到了这个错误,请你能提一下我该怎么办?
公共功能mypaypal(){echo“mypaypal”; }
public function cancel(){echo“cancel”; }
公共职能指数(){
$this->load->library('merchant'); $this->merchant->load('paypal_express'); $settings = array( 'username' => '******', 'password' => '******', 'signature' => '********', 'test_mode' => true ); $this->merchant->initialize($settings); $params = array( 'amount' => 1.00, 'currency' => 'USD', 'return_url' => base_url().'mypaypal', 'cancel_url' => base_url().'cancel'); $response = $this->merchant->purchase($params); var_dump($response); if ($response->success()) { var_dump($response); } else { $message = $response->message(); echo('Error processing payment: '); exit; } }
我收到了这个错误:
object(Merchant_response)#17(8){[“_status”:protected] =>串(6) “失败”[“_message”:protected] => string(51)“SSL CA出现问题 cert(path?access rights?)“[”_ reference“:protected] => NULL [ “_data”:保护] => NULL [“_redirect_url”:protected] =>空值 [ “_redirect_method”:保护] => string(3)“GET” [ “_redirect_message”:保护] => NULL [“_redirect_data”:protected] => NULL}