function _uc_cybersource_parse_cvv_code in Ubercart 7.3
Returns the meaning of the code sent back for CVV verification.
2 calls to _uc_cybersource_parse_cvv_code()
- _uc_cybersource_post_charge in payment/
uc_cybersource/ uc_cybersource.module - POSTs transaction to CyberSource.
- _uc_cybersource_soap_charge in payment/
uc_cybersource/ uc_cybersource.module - Handles the SOAP charge request and Ubercart order save.
File
- payment/
uc_cybersource/ uc_cybersource.module, line 1505 - A module used for CyberSource's Silent Order POST and Hosted Order Page methods of payment.
Code
function _uc_cybersource_parse_cvv_code($code) {
switch ($code) {
case 'D':
return t('Transaction determined suspicious by issuing bank.');
case 'I':
return t("Card verification number failed processor's data validation check.");
case 'M':
return t('Card verification number matched.');
case 'N':
return t('Card verification number not matched.');
case 'P':
return t('Card verification number not processed by processor for unspecified reason.');
case 'S':
return t('Card verification number is on the card but was not included in the request.');
case 'U':
return t('Card verification is not supported by the issuing bank.');
case 'X':
return t('Card verification is not supported by the card association.');
case '1':
return t('Card verification is not supported for this processor or card type.');
case '2':
return t('Unrecognized result code returned by processor for card verification response.');
case '3':
return t('No result code returned by processor.');
}
}