#jarrett
1 messages · Page 1 of 1 (latest)
Hi there! Give me a few minutes to catch up on the other thread
Hm, I'm not able to reproduce this on my end with the Link Authentication Element + PaymentElement
So, if you press enter, do you receive error messages due to the incomplete form?
i'm using a payment element only
i kinda figured out what happens
it appears you don't have to hit enter on the link form to submit it
but that's not the most clear
so someone may hit enter and inadvertently be submitting the whole thing
Hm, just want to make sure I'm clear. You mentioned a few elements in the other thread. Are you still using the Address and Link Authentication element, or just the PaymentElement?
Got it, okay.
it appears you don't have to hit enter on the link form to submit it
Yep, I can see that on my end too. However, pressing enter doesn't submit the PaymentElement form
Hm, interesting. I'm pressing enter while in the third input field for the six digit code and can't get my form to submit
Do you have an environment where I can reproduce this on my end?
This video helps!
lmk i can share an env if needed
Could you share your frontend code?
it's part of a mess that we're cleaning up so idk if that would really be easy
it's not simple
Ah I see. Okay, so I think the reason why I can't reproduce this in my local environment at the moment is because I use a submit button
I think what you'll want to do is listen for the change event on the PaymentElement to determine whether or not complete is true: https://stripe.com/docs/js/element/events/on_change?type=paymentElement
i just have it wrapped in a form. when you try and submit the form it triggers my code to do stripe stuff
so are you saying to ignore submission if payment element is not complete?
Right, exactly
but then if someone hits enter and hasn't finished typing in the card
it won't submit
and won't show an error
it won't submit
That's correct
won't show an error
You could show a different error instead of trying to confirm the PaymentIntent with incomplete information