/**
  * Retrieve availables credit card types
  *
  * @param string $methodCode
  * @return array
  */
 protected function getCcAvailableTypes($methodCode)
 {
     $types = [];
     $ccTypes = $this->_adyenHelper->getAdyenCcTypes();
     $availableTypes = $this->_adyenHelper->getAdyenCcConfigData('cctypes');
     if ($availableTypes) {
         $availableTypes = explode(',', $availableTypes);
         foreach (array_keys($ccTypes) as $code) {
             if (in_array($code, $availableTypes)) {
                 $types[$code] = $ccTypes[$code]['name'];
             }
         }
     }
     return $types;
 }
 /**
  * Get icons for available payment methods
  *
  * @return array
  */
 protected function getIcons()
 {
     $icons = [];
     $types = $this->_adyenHelper->getAdyenCcTypes();
     foreach (array_keys($types) as $code) {
         if (!array_key_exists($code, $icons)) {
             $asset = $this->ccConfig->createAsset('Magento_Payment::images/cc/' . strtolower($code) . '.png');
             $placeholder = $this->_assetSource->findSource($asset);
             if ($placeholder) {
                 list($width, $height) = getimagesize($asset->getSourceFile());
                 $icons[$code] = ['url' => $asset->getUrl(), 'width' => $width, 'height' => $height];
             }
         }
     }
     return $icons;
 }