#juls1083

1 messages · Page 1 of 1 (latest)

stiff sluiceBOT
#

Hello juls1083, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
https://discord.com/channels/841573134531821608/1164498431037947954, 0 days ago, 10 messages

humble skiff
#

can you share exactly what your frontend code looks like that calls this and gets the error?

uneven drift
#

We retrieve the Card Number using "@stripe/stripe-js"

#

Then we pass the card number element returned to the confirmCardSetup function, like this

#

Where localPendingSCATokenis the client secret of the current Setup Intent (if it doesn't exist one open inside the subscription, we create a new one

#

It happens for a minority of customers, so I assume that the CardNumberElement is correct

humble skiff
#

hmm. Maybe the script didn't load properly for them. The code seems fine.

#

or they might be clicking the button before the page has fully loaded(or they are bots who are "clicking" immediately).

uneven drift
#

Can I assume that, for those customers, cardElement is null for some reason?

#

The thing is that the form validation would trigger.... That's what is confusing me