#Abishek - paymentElement events
1 messages · Page 1 of 1 (latest)
Trying to show a wait icon when the elements are being bound to the page
One moment while I look into this
sure
There isn't an event we have where you can check this
But you can code in a solution
You can check the contents of your card element div, and hide the loading icon once the PaymentElement is within that div
do the contents for the paymentElement get cleared when stripe binds the element? I was thinking having the load icon inside the paymentElement and when the elements are bound, then the wait icon will be cleared. Provided stripe clears the contents before they are bound.
ya, tried it, did not work. for some reason, the payment-element is hidden when the elements are binding
so, that option did not work
one other issue. When the elements are bound, I see this error on the browser console.
any idea why this would happen?
Not sure. Occasionally there are some warnings from our script. You can ignore them if they aren't causing issues though
ok
They'll get patched up
sounds good. Appreciate it
No problem
when creating a card element, is there only one view option or is there some way to show the fields separately like the payment element?
With the card element, it's just the one option
ok, can the payment element be configured to only show the card element and not the rest of the stuff?