#newtreyes
1 messages ยท Page 1 of 1 (latest)
Hello again ๐
There are no events for resizing, no. One alternative I can think of is listening to change event and then retrieving the height/width from the DOM node that the PaymentElement is mounted to.
https://stripe.com/docs/js/element/events/on_change?type=paymentElement
Got it
This is separate question, but If you are OK with it, I will reuse this thread
Sure
As you can see on this image, for some specific scenarios we are allowing our customers to set the amount while already showing the card element. Since the Payment Element requires a client secret to be added to the DOM, does that mean we will need to create a Payment Intent with a minimal amount before being able to show the Payment Element?
You can use defer intent flow instead ๐
https://stripe.com/docs/payments/accept-a-payment-deferred
that allows you to render PaymentElement without an intent attached
NP! ๐ Happy to help