We will be off on April 7th (Monday) for public holiday in our country

Commit 67af60fc authored by Rik ter Beek's avatar Rik ter Beek

optimize cc payment method

parent 7dc5b700
......@@ -103,12 +103,6 @@ class AdyenCcConfigProvider extends CcGenericConfigProvider
$config['payment'] ['adyenCc']['cseEnabled'] = $cseEnabled;
$config['payment']['adyenCc']['generationTime'] = date("c");
$config['payment']['adyenCc']['canCreateBillingAgreement'] = $canCreateBillingAgreement;
// show logos turned on by default
if ($this->_adyenHelper->showLogos()) {
$config['payment']['adyenCc']['creditCardPaymentMethodIcon'] = $this->_getCreditCardPaymentMethodIcon();
}
$config['payment']['adyenCc']['icons'] = $this->getIcons();
// has installments by default false
......@@ -129,26 +123,6 @@ class AdyenCcConfigProvider extends CcGenericConfigProvider
return $config;
}
/**
* @return array|null
*/
protected function _getCreditCardPaymentMethodIcon()
{
$asset = $this->_adyenHelper->createAsset('Adyen_Payment::images/logos/img_trans.gif');
$placeholder = $this->_adyenHelper->findRelativeSourceFilePath($asset);
$icon = null;
if ($placeholder) {
list($width, $height) = getimagesize($asset->getSourceFile());
$icon = [
'url' => $asset->getUrl(),
'width' => $width,
'height' => $height
];
}
return $icon;
}
/**
* Retrieve availables credit card types
*
......
......@@ -30,9 +30,7 @@
<label data-bind="attr: {'for': getCode()}" class="label">
<!-- ko if: showLogo() -->
<div data-bind="attr: { 'class': 'adyen-sprite ' + getCode() }"></div>
<!--/ko-->
<span data-bind="text: getTitle()"></span>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment