From 1963d59a04f389716b870c4ba7e00246ea04788c Mon Sep 17 00:00:00 2001 From: Elisei Date: Wed, 4 Dec 2024 10:32:26 -0300 Subject: [PATCH] =?UTF-8?q?PagBank=20=F0=9F=98=8D=20Magento=20-=20Adiciona?= =?UTF-8?q?=20salvamento=20de=20cart=C3=A3o=20utilizando=20a=20API=20de=20?= =?UTF-8?q?Zero=20Dollar.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/frontend/web/js/view/customer/vault/cards/save-card.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view/frontend/web/js/view/customer/vault/cards/save-card.js b/view/frontend/web/js/view/customer/vault/cards/save-card.js index fea6e97..751be03 100644 --- a/view/frontend/web/js/view/customer/vault/cards/save-card.js +++ b/view/frontend/web/js/view/customer/vault/cards/save-card.js @@ -81,7 +81,7 @@ define([ focusInvalid: false }); - $('#card_number').on('input', () => { + $('#card_number').on('input', function() { let value = $(this).val().replace(/\D/g, ''); const cardType = $('#cc_type').val(); @@ -94,7 +94,7 @@ define([ $(this).val(value); }); - $('#card_number').on('keyup', () => { + $('#card_number').on('keyup', function() { const number = $(this).val().replace(/\s/g, ''); const result = creditCardNumberValidator(number);