If the method is AN_METHOD_CC submit cclastfour, don't send for ECHECK.

This commit is contained in:
ethem 2006-08-31 15:46:53 +00:00
parent c024e8c6f2
commit 555759709c

View File

@ -221,9 +221,11 @@ function authorize_action(&$order, &$message, &$extra, $action=AN_ACTION_NONE, $
return false;
}
$poststring .= '&x_type=CREDIT&x_trans_id=' . urlencode($order->transid);
$poststring .= '&x_card_num=' . sprintf("%04d", intval($order->cclastfour));
$poststring .= '&x_currency_code=' . urlencode($order->currency);
$poststring .= '&x_amount=' . urlencode($extra->amount);
if ($method == AN_METHOD_CC) {
$poststring .= '&x_card_num=' . sprintf("%04d", intval($order->cclastfour));
}
break;
}