From f977b7298e6c1f376a8395b91d239cd7835bdd7d Mon Sep 17 00:00:00 2001 From: Nuwan Date: Mon, 28 Jul 2025 18:47:02 +0530 Subject: [PATCH] fix error when showing if user has stored card fix the issue of showing this information incorrectly on payment method page. also this comment disables front end validation of card details --- jam-ui/src/components/page/JKPaymentMethod.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/jam-ui/src/components/page/JKPaymentMethod.js b/jam-ui/src/components/page/JKPaymentMethod.js index 59d2c17bf..eb308fedd 100644 --- a/jam-ui/src/components/page/JKPaymentMethod.js +++ b/jam-ui/src/components/page/JKPaymentMethod.js @@ -72,7 +72,7 @@ const JKPaymentMethod = () => { const userResp = await getUserDetail(options); const userData = await userResp.json(); if (userData.has_recurly_account) { - setHasStoredCreditCard(userData.has_stored_credit_card); + setHasStoredCreditCard(userData['has_stored_credit_card?']); await populateBillingAddress(); setBillingDataLoaded(true); } @@ -222,12 +222,12 @@ const JKPaymentMethod = () => { return; } - if (!isCardValid) { - console.error('Card is not valid'); - toast.error(t('payment_method.validations.card.invalid')); - setSubmitting(false); - return; - } + // if (!isCardValid) { + // console.error('Card is not valid'); + // toast.error(t('payment_method.validations.card.invalid')); + // setSubmitting(false); + // return; + // } window.recurly.token(elementsRef.current, formRef.current, (err, token) => { if (err) {