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) {