We will be off on April 7th (Monday) 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,13 +101,15 @@ 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
if (state.isValid) {
......
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