After you call the process() method, I want to get Authorize.net response codes and text. Or is that not included in the library. All I can see are set_field()
and process()
methods.
在调用process()方法之后,我想获得Authorize.net响应代码和文本。或者不包含在库中。我只能看到set_field()和process()方法。
1 个解决方案
#1
0
Here is part of the code from the process() method:
以下是process()方法代码的一部分:
$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;
}
}
}
When you use the process method, it should return the response code as an array.
使用process方法时,它应该将响应代码作为数组返回。
#1
0
Here is part of the code from the process() method:
以下是process()方法代码的一部分:
$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;
}
}
}
When you use the process method, it should return the response code as an array.
使用process方法时,它应该将响应代码作为数组返回。