public function getCardTypes()
    {
        $card = new CreditCard();
        $brands = $card->getSupportedBrands();

        foreach ($brands as $brand => $x) {
            $brands[$brand] = _t('CreditCard.'.strtoupper($brand), $brand);
        }

        return $brands;
    }
public function getCardTypes()
    {
        $card = new CreditCard();
        $brands = $card->getSupportedBrands();

        foreach ($brands as $brand => $x) {
            $brands[$brand] = _t('CreditCard.'.strtoupper($brand), $brand);
        }

        return $brands;
    }
public function getCardTypes ( ) { $ card = new CreditCard ( ) ; $ brands = $ card -> getSupportedBrands ( ) ; foreach ( $ brands as $ brand => $ x ) { $ brands [ $ brand ] = _t ( 'CreditCard.' . strtoupper ( $ brand ) , $ brand ) ; } return $ brands ; }
Get a list of supported credit-card brands.

@return array
Get a list of supported credit - card brands .