#Andrey-elements
1 messages · Page 1 of 1 (latest)
sure, you can re-arrange things if you want, it's just a form!
examples here for inspiration : https://stripe.dev/elements-examples/
or use just card elements and a button without html element form?
as in just a <div> and a <button> with no <form> ? sure, if you want you can!
Yes, we need remove form html element. I see, thank you.
I'm going to answer your other question here
I don't think we care if you polyfill fetch, we don't use that within stripe.js itself so I don't think there's any conflict.
how about <script src="https://js.stripe.com/v3/"></script> ?
what about it?
this library has any conflict using in iframe?
as in you want to build your payment page and then embed it in an iframe in other sites?
yes
that's mostly fine! There's two things I'd mention:
- if you end up using the PaymentRequestButton for Apple/Google Pay, the parent frame needs
allowpaymentrequesthttps://stripe.com/docs/stripe-js/elements/payment-request-button?html-or-react=html#html-js-testing - by default we present 3D Secure authentication in a popup(try https://stripe-payments-demo.appspot.com/ with the card 4000000000003063). That might look strange in a small viewport so you'll have to test things out and see how it looks in the way you envision your site being framed