#Abishek - paymentElement events

1 messages · Page 1 of 1 (latest)

stuck summit
glass scaffold
stuck summit
#

One moment while I look into this

glass scaffold
#

sure

stuck summit
#

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

glass scaffold
#

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.

stuck summit
#

I'm honestly not sure off the top of my head

#

You can try it

glass scaffold
#

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?

stuck summit
#

Not sure. Occasionally there are some warnings from our script. You can ignore them if they aren't causing issues though

glass scaffold
#

ok

stuck summit
#

They'll get patched up

glass scaffold
#

sounds good. Appreciate it

stuck summit
#

No problem

glass scaffold
#

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?

stuck summit
#

With the card element, it's just the one option

glass scaffold
#

ok, can the payment element be configured to only show the card element and not the rest of the stuff?