We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday 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">
var checkout = new AdyenCheckout({
locale: "<?php echo $block->getLocale(); ?>"
});
var hideCVC = "<?php echo !$block->hasVerification(); ?>";
var card = checkout.create('card', {
originKey: "<?php echo $block->getCheckoutOriginKeys(); ?>",
loadingContext: "<?php echo $block->getCheckoutContextUrl(); ?>",
type: 'card',
groupTypes: ccTypes,
hideCVC: hideCVC,
onChange: function (state) {
// 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