I found the problem. I think I know how to resolve it, but I'm a bit curious as to WHY I would have to do this.
Here is where the code breaks down:
PHP Code:
if ($response_code != '1') {
$messageStack->add_session('checkout_payment', $response_msg_to_customer . ' - ' . 'response code: ' . $response_code . ' - ' . MODULE_PAYMENT_AUTHORIZENET_AIM_TEXT_DECLINED_MESSAGE, 'error');
I stuck in the output of the response_code to see what was happening. This is a snippet of what was output:
1|1|1|This transaction has been approved.
There was quite a bit more, but as you can see this is a delimited text string telling me the transaction was approved. Naturally, I could split the string or process $response_code[0] to see if it has been approved.
I'm going to look through the code and see what I need to do, but it just doesn't seem like I should have to do this.
Any suggestions are welcome.
Bookmarks