#Srujan-PRB-onclick
1 messages · Page 1 of 1 (latest)
Hi there!
I don't believe there is an onclick event for Payment Request Button: https://stripe.com/docs/js/payment_request/events
You can see the list of events there
What are you trying to do exactly?
I'm trying to fire an analytics event right as the Google pay button is clicked
Couldn't I use elements to get the element? Like element.getElement(PaymentRequestButtonElement) and then have an onClick event listener?
Ah you are correct. I don't know why we don't have Payment Request Button listed here: https://stripe.com/docs/js/element/events. But we clearly use it as the example click event here: https://stripe.com/docs/js/element/events/on_click