Results 1 to 2 of 2
Thread: authorize.net sample code help
May 11, 2009, 10:23 #1
authorize.net sample code help
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:
// 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.
foreach ($response_array as $value)
echo "<LI>" . $value . " </LI>\n";
// individual elements of the array could be accessed to read certain response
// fields. For example, response_array would return the Response Code,
// response_array 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 so I can echo it? Thanks
May 11, 2009, 12:13 #2
- Join Date
- Jul 2008
- 0 Post(s)
- 0 Thread(s)
It is actually how they show you. Hopefully the documentation has what the value of each position in the array is, ie: position zero is Response Code.
echo 'Response Code: '.$response_array;
echo 'Response Reason Code: '.$response_array;