#ShakeR

1 messages ยท Page 1 of 1 (latest)

tepid ingotBOT
stable hare
#

Hello ๐Ÿ‘‹
Not sure I completely follow the usecase here. Are you referring to PaymentElement?
Can you elaborate on your usecase a bit?

vivid dome
#

Yes, using a PaymentElement

#

In my UI, the "Complete Order" button is nowhere near the PaymentElement. It looks great. I just can't get it to function.

#

Above code is just an example

#

It submits the form, but all Stripe actions / processes are bypassed. It behaves the equivalent of submitting an empty form on an HTML page.

stable hare
#

Gotcha. Hmm I don't think that's supported (don't think we have a function as such).
Out of curiosity, what is it doing right now?

#

ah I see

#

The PaymentElement renders in an iframe

vivid dome
stable hare
#

Not sure if that has something to do with this.

vivid dome
#

Yeah, I guess that's possible.

#

As slick as Stripe is, it's pretty shocking you guys don't have a solution for this very common Responsive use case.

#

Probably a security bottleneck. All good. Will revisit the UI design

stable hare
#

Yeah, not sure why we chose to built the element this way but pretty sure security and compliance both mandated some restrictions ๐Ÿ˜…

vivid dome
#

FYI: Found a solution. Can't use "onClick...sumbit()" JS but setting form attribute in the button does the trick.

<button type="submit" form="payment-form">...
stable hare
#

Ah great, that's good to know