#wangtao-elements
1 messages ยท Page 1 of 1 (latest)
hi! sure, you'd add event.preventDefault to your <form>'s submit function, I would think
Hmm, but the form is inside of an iframe?
So I can't control it
If you check on this page https://stripe.com/docs/payments/payment-element
There is an iframe outside of the form
pressing enter doesn't submit anything in my test
you must have the <div> for the PaymentElement within a <form> in your own page
if you have a link to your page with this issue, happy to have a look at what might be happening
Sure, will try to replicate that issue on a cloud editor and come back a bit later
thanks! I can't find any way to replicate a scenario where pressing Enter inside the PaymentElement fields causes any submission, so I'd be really curious to see your exact set up
Maybe you can try to see it on our test site
https://f.valyuu.test/buy, just try to buy anything, without inputing any address data, and probably also disable the Order button, and choose let's say iDeal as payment gateway, it submits the form without going through the proper payment workflow handled by the onclick event of the Order button
And the wierd thing is, it's been working perfectly for 1-2 months. I haven't changed any code for the payment handling part. But yesterday there were two payments that I can't find any order info, this is the first time this issue occurs. Was there any changes from Stripe side?
that link doesn't work for me(DNS is not resolved)
probably it's an internal domain your network resolves for you
This thread has been archived. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Are you able to share a reproduction of this?
Or the code you're calling that errors?
Hi, yes here is the url: https://f.valyuu.tech/buy
Sorry I posted the wrong url
Let's see
Can you guide me how to get to the payment page (with the Payment Element on)
I've added a product to cart, but can't proceed
Ah, I see, maybe you need to input the address
Difficult for me to grasp it's not in English
Well on the top right of the page there is a language button
Sorry for the inconvinience.
Hello ๐
Taking over here and catching up
Give me a moment
where am I exactly hitting enter? Inside your form or the PaymentElement?
does the paymentElement need to be filled out?
Yes, after filling "Name" field on the iDEAL tab hit enter and you will see that the form is actually submitted, and I can't control it
Thanks!
Is it possible that it is submitting because the iframe is being rendered inside a form?
Because I don't see it submit in my test page w/ PaymentElement when I hit enter there
NP! ๐
Thank you very much!