#jarrett

1 messages · Page 1 of 1 (latest)

sour rainBOT
glad salmon
#

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?

soft root
#

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

glad salmon
#

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?

soft root
#

no ijust am using Payment Element now

#

i switched back to just that

glad salmon
#

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

soft root
#

it does for me

#

even hitting enter on any of these 6 code inputs submit it for me

glad salmon
#

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?

soft root
#

@glad salmon i'll DM you driectly something to try if that works

glad salmon
#

This video helps!

soft root
#

lmk i can share an env if needed

glad salmon
#

Could you share your frontend code?

soft root
#

it's part of a mess that we're cleaning up so idk if that would really be easy

#

it's not simple

glad salmon
#

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

soft root
#

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?

glad salmon
#

Right, exactly

soft root
#

but then if someone hits enter and hasn't finished typing in the card

#

it won't submit

#

and won't show an error

glad salmon
#

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