Php 如何使用Kohana'从Authorize.net获取响应代码;s支付模块?

Php 如何使用Kohana'从Authorize.net获取响应代码;s支付模块?,php,e-commerce,kohana,authorize.net,Php,E Commerce,Kohana,Authorize.net,调用process()方法后,我想获取Authorize.net响应代码和文本。或者是图书馆里没有。我能看到的只有set\u field()和process()方法。以下是process()方法的部分代码: $heading=substr_count($response,“|”); 对于($i=1;$i) $heading = substr_count($response, '|'); for ($i=1; $i <= $heading; $i++) { $delimiter_pos

调用process()方法后,我想获取Authorize.net响应代码和文本。或者是图书馆里没有。我能看到的只有
set\u field()
process()
方法。

以下是process()方法的部分代码:

$heading=substr_count($response,“|”);
对于($i=1;$i)
$heading = substr_count($response, '|');

for ($i=1; $i <= $heading; $i++)
{
  $delimiter_position = strpos($response, '|');

  if ($delimiter_position !== False)
  {
    $response_code = substr($response, 0, $delimiter_position);
    $response_code = rtrim($response_code, '|');

    if($response_code == '')
      throw new Kohana_Exception('payment.gateway_connection_error');

    switch ($i)
    {
     case 1:
       return (($response_code == '1') ? explode('|', $response) : False); // Approved
     default:
       return False;
    }
  }
}