#maha-PaymentElement

1 messages · Page 1 of 1 (latest)

blissful mist
odd girder
#

yes but it's event data doesn't have an error object that I can check

blissful mist
#

I see, you are right, payment element's change event doesn't have a error object at this moment.

odd girder
#

What I want to do here is to place an event handler such that I can account for input validation errors for various different fields for some custom styling purposes (not styling the element)

#

oh, i see. any other good way to do the above^?

blissful mist
odd girder
#

Ah no, the purpose was to style some other surrounding stuff when an error happens. Already using the appearance API to configure element specific styles

blissful mist
#

I see

#

I'm afraid you can't register a listener to get notified when error happens in payment element.

odd girder
#

ah I see. unfortunate but thanks