function commerce_payleap_cvv_response in Commerce Payleap 7
Returns the message text for a CVV match.
See also
CVV Response Codes (Transaction API Guide)
1 call to commerce_payleap_cvv_response()
- commerce_payleap_get_log_message in ./
commerce_payleap.module - Build log message.
File
- ./
commerce_payleap.module, line 1038 - Implements PayLeap payment services for use in Drupal Commerce.
Code
function commerce_payleap_cvv_response($code) {
switch ($code) {
case 'M':
return t('CVV2/CVC2/CID Match');
case 'N':
return t('CVV2/CVC2/CID No Match');
case 'P':
return t('Not Processed');
case 'S':
return t('Issuer indicates that the CV data should be present on the card, but the merchant has indicated that the CV data is not present on the card.');
case 'U':
return t('Unknown / Issuer has not certified for CV or issuer has not provided Visa/MasterCard with the CV encryption keys.');
case 'X':
return t('Server Provider did not respond');
}
return '-';
}