<?php /** * ###### * ###### * ############ ####( ###### #####. ###### ############ ############ * ############# #####( ###### #####. ###### ############# ############# * ###### #####( ###### #####. ###### ##### ###### ##### ###### * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### * ###### ###### #####( ###### #####. ###### ##### ##### ###### * ############# ############# ############# ############# ##### ###### * ############ ############ ############# ############ ##### ###### * ###### * ############# * ############ * * Adyen Payment module (https://www.adyen.com/) * * Copyright (c) 2015 Adyen BV (https://www.adyen.com/) * See LICENSE.txt for license details. * * Author: Adyen <magento@adyen.com> */ namespace Adyen\Payment\Block\Info; class Cc extends AbstractInfo { /** * @var string */ protected $_template = 'Adyen_Payment::info/adyen_cc.phtml'; /** * Return credit cart type * * @return string */ public function getCcTypeName() { $types = $this->_adyenHelper->getAdyenCcTypes(); $ccType = $this->getInfo()->getCcType(); if (isset($types[$ccType])) { return $types[$ccType]['name']; } else { return __('Unknown'); } } }