From 32c060e1b088b9c7687601d2f0bb58faf2b3226a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Tue, 29 Sep 2026 11:04:37 -0300 Subject: [PATCH] fix: hide the card form's own title on the payment page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mercado Pago's form titled both card options "Cartão de crédito ou débito"; the option above it already names the card. Co-Authored-By: Claude Opus 5.5 --- web/checkout.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/checkout.js b/web/checkout.js index b017735..a868341 100644 --- a/web/checkout.js +++ b/web/checkout.js @@ -405,7 +405,10 @@ customization:{paymentMethods:tipo==='debito' ? {maxInstallments:1,types:{excluded:['credit_card']}} : {maxInstallments:12,types:{excluded:['debit_card']}}, - visual:{style:{customVariables:{baseColor:'#FFA81A',buttonTextColor:'#03060B'}}}}, + // The option above already names the card; the form's own title + // ("crédito ou débito") would contradict it. + visual:{hideFormTitle:true, + style:{customVariables:{baseColor:'#FFA81A',buttonTextColor:'#03060B'}}}}, callbacks:{ onReady:()=>{}, onError:error=>{ console.error(error); message('Erro no formulário do cartão. Confira os dados e tente de novo.'); },