Re:New version of Stripe Checkout
by bpicolo on Wednesday April 24, 2019 @02:16PM
(#19741276)
It's more than that. The loaded JS library renders your inputs into iFrame elements (for PCI compliance). So it takes that HTML and embeds it down. Recent PCI changes added different-domain hosting for the form itself as a requirement for compliance, which is why you see providers moving to different sorts of embedding.
https://stripe.com/docs/security#validating-pci-compliance