#wangtao-elements

1 messages ยท Page 1 of 1 (latest)

tired cape
#

hi! sure, you'd add event.preventDefault to your <form>'s submit function, I would think

hearty trout
#

Hmm, but the form is inside of an iframe?

#

So I can't control it

#

There is an iframe outside of the form

tired cape
#

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

hearty trout
#

Sure, will try to replicate that issue on a cloud editor and come back a bit later

tired cape
#

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

hearty trout
#

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?

tired cape
#

that link doesn't work for me(DNS is not resolved)

#

probably it's an internal domain your network resolves for you

polar trellisBOT
#

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

odd condor
#

Are you able to share a reproduction of this?

#

Or the code you're calling that errors?

hearty trout
odd condor
#

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

hearty trout
#

Ah, I see, maybe you need to input the address

odd condor
#

Difficult for me to grasp it's not in English

hearty trout
#

Well on the top right of the page there is a language button

#

Sorry for the inconvinience.

rich wadi
#

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?

hearty trout
#

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!

rich wadi
#

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

hearty trout
#

Right, maybe that's the case. Sorry I didn't notice that

#

Will test it a bit

rich wadi
#

NP! ๐Ÿ™‚

hearty trout
#

Thank you very much!