Help, Im working on the authorize.net api and need some help. There is a way to get the resppnce codes from using explode() but i dont know how. The code is below:
After that part is then says:PHP Code:// This line takes the response and breaks it into an array using the specified delimiting character
$response_array = explode($post_values["x_delim_char"],$post_response);
// The results are output to the screen in the form of an html numbered list.
echo "<OL>\n";
foreach ($response_array as $value)
{
echo "<LI>" . $value . " </LI>\n";
$i++;
}
echo "</OL>\n";
// individual elements of the array could be accessed to read certain response
// fields. For example, response_array[0] would return the Response Code,
// response_array[2] would return the Response Reason Code.
// for a list of response fields, please review the AIM Implementation Guide
So how do I get the response_array[0] so I can echo it? Thanks![]()




Bookmarks