I just upgraded from uc1.3 to 1.5 and our Authorize.net payments are now failing on checkout.
The transactions do get processed correctly on Authorize.net, however, UC is not properly parsing the response code.
The watchdog message sounds conflicted:
Payment failed: Credit card payment declined: "This transaction has been approved."What's strange is that I modified the uc_authorizenet.module to display the response code in the watchdog log:
<?php
if ($response[0] != '1') {
// Fail the charge with the reason text in the decline message.
$result = array(
'success' => FALSE,
'message' => t('Respose Code: ' . $response[0] . ' / Credit card payment declined: @message', array('@message' => $response[3])),
'uid' => $user->uid,
);
}
?>...and the watchdog message shows that it did receive the success code but appears to be ignoring it.
Payment failed: Respose Code: "1" / Credit card payment declined: "This transaction has been approved."Any idea why the line:
if ($response[0] != '1')
isn't properly reading the variable as a '1'? I tried removing the quotes, but had the same result.



Did you run update.php when you made this update?





Joined: 12/16/2007