#liz_unexpected
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1326747557132632075
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- liz_unexpected, 1 day ago, 13 messages
Here's a screenshot of the state I get myself into:
I can't clear that error because I can't get a hold of the confirm cvc box
Is your question about how to get notified when the card details (i.e., cvc) isn't complete?
Yeah so I have an onChange on the paymentElement that usually fires when these fields change. When I change that field I am having a hard time getting a hold of information about it going from invalid -> valid
So I want to know how I can do that
When the field is in an error state (it's empty) the paymentElement is marked as complete even though there is an error. So when I complete cvc confirmation the paymentElement is still complete and I don't get feedback that anything changed
https://docs.stripe.com/js/element/events/on_change?type=paymentElement#element_on_change-handler-complete the complete will only be true if all required fields (including cvc) have been filled.
That's not what I'm seeing:
That log is logging the event from the on change here:
if (paymentElement) {
this.setState({ paymentElement });
paymentElement.on('change', (event) => {
this.setState({ paymentElementStatus: event });
});
}
I should mention that this only gets into this state when I use link
we have a payment element and if I fill that out without using link the payment element status is false when the cvc is missing
"status is false" -> do you mean "complete is false" ?
And what element do you use to render the "Confirm CVC" field?
We don't specifically render it. It shows up when I used link. The only two elements we intentionally render are the paymentElement and linkAuthenticationElement
Is there a public URL that I can visit to check your integration in test mode?
We do have public urls for production. would that work?
I'm guessing no because it's not test
No I can't perform test in live mode.
Let me see if I can reproduce the same problem in my own setup.
OK, I think you should call the elements.submitt in the button click handler, not based on the complete status.