function commerce_authnet_cvv_response in Commerce Authorize.Net 7
Returns the message text for a CVV match.
2 calls to commerce_authnet_cvv_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.
File
- ./
commerce_authnet.module, line 2150 - Implements Authorize.Net payment services for use in Drupal Commerce.
Code
function commerce_authnet_cvv_response($code) {
switch ($code) {
case 'M':
return t('Match');
case 'N':
return t('No Match');
case 'P':
return t('Not Processed');
case 'S':
return t('Should have been present');
case 'U':
return t('Issuer unable to process request');
}
return '-';
}