使用Codeigniter支付

使用Codeigniter支付,codeigniter,Codeigniter,如何正确使用$this->payments->payment_action()功能 我得到的只是: object(stdClass)#137 (5) { ["type"]=> string(14) "local_response" ["status"]=> string(7) "failure" ["response_code"]=> string(3) "000" ["response_message"]=>

如何正确使用
$this->payments->payment_action()功能

我得到的只是:

object(stdClass)#137 (5) {
  ["type"]=>
  string(14) "local_response"
  ["status"]=>
  string(7) "failure"
  ["response_code"]=>
  string(3) "000"
  ["response_message"]=>
  string(32) "The method called does not exist"
  ["details"]=>
  string(27) "No further details provided"
}

根据问题,您正在接收一些对象

例如:这里我只是打印对象内容。如果您想存储在db中,那么可以使用
$obj

$obj = $this->payments->payment_action();    
echo "Type = ".$obj->type;
echo "Status= ".$obj->status;
echo "Response code= ".$obj->response_code;
echo "Response Message= ".$obj->response_message;
echo "Details= ".$obj->details;

你想用它做什么?它是这样的:$response=$this->payments->payment\u action('gateway\u name',$params);我不知道我应该在
$params
中输入什么你检查我的答案了吗?