From b596b4bb7640e024a1e7381a36bb95c4630007cd Mon Sep 17 00:00:00 2001 From: Fabiano Mallmann <25328512+fabiano-mallmann@users.noreply.github.com> Date: Fri, 5 Jan 2024 15:41:20 -0300 Subject: [PATCH] fix: remove card switch --- view/frontend/web/js/core/checkout/Tds.js | 1 - view/frontend/web/js/core/models/CreditCardModel.js | 1 - 2 files changed, 2 deletions(-) diff --git a/view/frontend/web/js/core/checkout/Tds.js b/view/frontend/web/js/core/checkout/Tds.js index 5a7b79c6..d6d611a6 100644 --- a/view/frontend/web/js/core/checkout/Tds.js +++ b/view/frontend/web/js/core/checkout/Tds.js @@ -48,7 +48,6 @@ define([ jQuery(cardForm.containerSelector).attr("data-pagarmecheckout-form", "") cardForm.creditCardHolderName.attr("data-pagarmecheckout-element", "holder_name") cardForm.creditCardNumber.attr("data-pagarmecheckout-element", "number") - cardForm.creditCardNumber.val("9001100811111111") // @todo: remover na versão final cardForm.creditCardBrand.attr("data-pagarmecheckout-element", "brand") cardForm.creditCardExpMonth.attr("data-pagarmecheckout-element", "exp_month") cardForm.creditCardExpYear.attr("data-pagarmecheckout-element", "exp_year") diff --git a/view/frontend/web/js/core/models/CreditCardModel.js b/view/frontend/web/js/core/models/CreditCardModel.js index e604ff83..8253ea43 100644 --- a/view/frontend/web/js/core/models/CreditCardModel.js +++ b/view/frontend/web/js/core/models/CreditCardModel.js @@ -109,7 +109,6 @@ define([ } this.formObject.authentication = JSON.stringify(data); - this.formObject.creditCardNumber.val("4000000000000010"); // @todo: remover na versão final this.getCreditCardToken( function (data) { _self.formObject.creditCardToken.val(data.id);