protected function translateCardType($brand)
    {
        switch ($brand) {
            case CreditCard::BRAND_VISA:
                $cardType = 'VI';
                break;
            case CreditCard::BRAND_AMEX:
                $cardType = 'AM';
                break;
            case CreditCard::BRAND_DISCOVER:
                $cardType = 'DI';
                break;
            case CreditCard::BRAND_MASTERCARD:
                $cardType = 'MC';
                break;
            case CreditCard::BRAND_MAESTRO:
                $cardType = 'MD';
                break;
            case CreditCard::BRAND_LASER:
                $cardType = 'LA';
                break;
            case CreditCard::BRAND_SOLO:
                $cardType = 'SO';
                break;
            case CreditCard::BRAND_JCB:
                $cardType = 'JC';
                break;
            case CreditCard::BRAND_DINERS_CLUB:
                $cardType = 'DC';
                break;
            default:
                $cardType = 'VI';
        }

        return $cardType;
    }