You are here

function _uc_paypal_cvvmatch_message in Ubercart 5

Same name and namespace in other branches
  1. 6.2 payment/uc_paypal/uc_paypal.module \_uc_paypal_cvvmatch_message()
  2. 7.3 payment/uc_paypal/uc_paypal.module \_uc_paypal_cvvmatch_message()
1 call to _uc_paypal_cvvmatch_message()
uc_paypal_wpp_charge in payment/uc_paypal/uc_paypal.module

File

payment/uc_paypal/uc_paypal.module, line 1472
Integrates various PayPal payment services and Instant Payment Notifications (IPN) with Ubercart!

Code

function _uc_paypal_cvvmatch_message($code) {
  if (is_numeric($code)) {
    switch ($code) {
      case '0':
        return t('Matched');
      case '1':
        return t('No match');
      case '2':
        return t('The merchant has not implemented CVV2 code handling.');
      case '3':
        return t('Merchant has indicated that CVV2 is not present on card.');
      case '4':
        return t('Service not available');
      default:
        return t('Unkown error');
    }
  }
  switch ($code) {
    case 'M':
      return t('Match');
    case 'N':
      return t('No match');
    case 'P':
      return t('Not processed');
    case 'S':
      return t('Service not supported');
    case 'U':
      return t('Service not available');
    case 'X':
      return t('No response');
    default:
      return t('Not checked');
  }
}