You are here

function _uc_authorizenet_cvv in Ubercart 5

Same name and namespace in other branches
  1. 6.2 payment/uc_authorizenet/uc_authorizenet.module \_uc_authorizenet_cvv()
  2. 7.3 payment/uc_authorizenet/uc_authorizenet.module \_uc_authorizenet_cvv()
1 call to _uc_authorizenet_cvv()
_uc_authorizenet_charge in payment/uc_authorizenet/uc_authorizenet.module
Handles authorizations and captures through AIM at Authorize.Net

File

payment/uc_authorizenet/uc_authorizenet.module, line 1278
Process payments using Authorize.net. Supports AIM and ARB.

Code

function _uc_authorizenet_cvv($code) {
  $text = $code . ' - ';
  switch ($code) {
    case 'M':
      $text .= t('Match');
      break;
    case 'N':
      $text .= t('No Match');
      break;
    case 'P':
      $text .= t('Not Processed');
      break;
    case 'S':
      $text .= t('Should have been present');
      break;
    case 'U':
      $text .= t('Issuer unable to process request');
      break;
  }
  return $text;
}