我在我的 codeigniter 中使用 Ci 商人,但我得到了这个错误,你能提一下我应该怎么做吗?
公共函数 mypaypal() { echo "mypaypal"; }
公共功能取消(){回声“取消”;}
公共函数索引(){
$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]=> string(6) "failed" ["_message":protected]=> string(51) "SSL CA 证书问题(路径?访问权利?)" ["_reference":protected]=> NULL ["_data":protected]=> NULL ["_redirect_url":protected]=> NULL ["_redirect_method":protected]=> string(3) "GET" ["_redirect_message":protected]=> NULL ["_redirect_data":protected]=> NULL }