#ShakeR
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Not sure I completely follow the usecase here. Are you referring to PaymentElement?
Can you elaborate on your usecase a bit?
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.
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
Not sure if that has something to do with this.
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
Yeah, not sure why we chose to built the element this way but pretty sure security and compliance both mandated some restrictions ๐
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">...
Ah great, that's good to know