We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit a87d8e7e authored by Rik ter Beek's avatar Rik ter Beek

#66 show logo for payment method selection on Adyen side and if you have icon setting enabled

parent 81df570b
...@@ -57,6 +57,10 @@ ...@@ -57,6 +57,10 @@
background-position: 0 -1910px; background-position: 0 -1910px;
} }
.checkout-payment-method .payment-method-title label div.adyen-sprite.adyen_hpp {
background-position: 0 -272px;
}
...@@ -209,6 +209,9 @@ define( ...@@ -209,6 +209,9 @@ define(
isPaymentMethodSelectionOnAdyen: function() { isPaymentMethodSelectionOnAdyen: function() {
return window.checkoutConfig.payment.adyenHpp.isPaymentMethodSelectionOnAdyen; return window.checkoutConfig.payment.adyenHpp.isPaymentMethodSelectionOnAdyen;
}, },
isIconEnabled: function() {
return window.checkoutConfig.payment.adyen.showLogo;
},
validate: function () { validate: function () {
return true; return true;
} }
......
...@@ -102,7 +102,15 @@ ...@@ -102,7 +102,15 @@
name="payment[method]" name="payment[method]"
class="radio" class="radio"
data-bind="attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()"/> data-bind="attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()"/>
<label data-bind="attr: {'for': getCode()}" class="label"><span data-bind="text: getTitle()"></span></label> <label data-bind="attr: {'for': getCode()}" class="label">
<!-- ko if: isIconEnabled() -->
<div data-bind="attr: { 'class': 'adyen-sprite ' + getCode() }"></div>
<!--/ko-->
<span data-bind="text: getTitle()"></span>
</label>
</div> </div>
<div class="payment-method-content"> <div class="payment-method-content">
<div class="payment-method-billing-address"> <div class="payment-method-billing-address">
......
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