#juicy28-paymentelement

1 messages · Page 1 of 1 (latest)

dreamy ibex
#

hi! Hmm, no, you can't break out of the iframe. If you put the PaymentElement in a frame, the redirect will just happen inside the frame(like the contents of the frame will change to be what the return_url is).

keen summit
#

Thanks! @dreamy ibex Everything is working fine within the iframe except it breaks out of the iframe when redirecting back to my "return_url".

dreamy ibex
#

hmm, interesting, I didn't know it did that/it was even possible

keen summit
#

It seems to perform the redirect at the highest/window level.

dreamy ibex
#

but then yeah we probably do that intentionally(since it seem like that is the use case everyone would really want) and I doubt you can change it, there's no configuration for it

#

I'd imagine in most cases for example where you'd iframe our element, you are a third-party providing a plugin to merchants that embeds a payment form, and you'd want that after the payment, the customer is redirected to a specific page on the merchant's site and they don't get stay on the payment page with the embedded frame, so I assume that's what it's optimised for