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 e6319d80 authored by Alessio Zampatti's avatar Alessio Zampatti

Hide CVC on backend if MOTO is enabled

parent 926685db
...@@ -101,12 +101,14 @@ echo $code; ?>" style="display:none"> ...@@ -101,12 +101,14 @@ echo $code; ?>" style="display:none">
var checkout = new AdyenCheckout({ var checkout = new AdyenCheckout({
locale: "<?php echo $block->getLocale(); ?>" locale: "<?php echo $block->getLocale(); ?>"
}); });
var hideCVC = "<?php echo !$block->hasVerification(); ?>";
var card = checkout.create('card', { var card = checkout.create('card', {
originKey: "<?php echo $block->getCheckoutOriginKeys(); ?>", originKey: "<?php echo $block->getCheckoutOriginKeys(); ?>",
loadingContext: "<?php echo $block->getCheckoutContextUrl(); ?>", loadingContext: "<?php echo $block->getCheckoutContextUrl(); ?>",
type: 'card', type: 'card',
groupTypes: ccTypes, groupTypes: ccTypes,
hideCVC: hideCVC,
onChange: function (state) { onChange: function (state) {
// When the state is valid update the input fields // When the state is valid update the input fields
......
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