function commerce_authnet_avs_response in Commerce Authorize.Net 7
Returns the message text for an AVS response code.
3 calls to commerce_authnet_avs_response()
- commerce_authnet_acceptjs_submit_form_submit in includes/
commerce_authnet.acceptjs.inc - Payment method callback: checkout form submission.
- commerce_authnet_aim_submit_form_submit in ./
commerce_authnet.module - Payment method callback: checkout form submission.
- commerce_authnet_cim_cardonfile_charge in ./
commerce_authnet.module - Card on file callback: background charge payment
File
- ./
commerce_authnet.module, line 2114 - Implements Authorize.Net payment services for use in Drupal Commerce.
Code
function commerce_authnet_avs_response($code) {
switch ($code) {
case 'A':
return t('Address (Street) matches, ZIP does not');
case 'B':
return t('Address information not provided for AVS check');
case 'E':
return t('AVS error');
case 'G':
return t('Non-U.S. Card Issuing Bank');
case 'N':
return t('No Match on Address (Street) or ZIP');
case 'P':
return t('AVS not applicable for this transaction');
case 'R':
return t('Retry – System unavailable or timed out');
case 'S':
return t('Service not supported by issuer');
case 'U':
return t('Address information is unavailable');
case 'W':
return t('Nine digit ZIP matches, Address (Street) does not');
case 'X':
return t('Address (Street) and nine digit ZIP match');
case 'Y':
return t('Address (Street) and five digit ZIP match');
case 'Z':
return t('Five digit ZIP matches, Address (Street) does not');
}
return '-';
}