#enforcedcastle-prb-clickevents
1 messages · Page 1 of 1 (latest)
Hi 👋 can you help me understand what you're referring to when you reference the "payButtonElement"?
Are you referring to our paymentRequestButton, or possibly something else?
https://stripe.com/docs/js/element/other_element?type=paymentRequestButton
Sure I'm referring to here:
https://stripe.com/docs/js/element/events/on_click?type=payButtonElement
I know I have to call resolve if I'm using the on click event. I'm just not sure what statuses I can send through.
event.resolve(<status>)
Like for example I know when I call paymentRequest.on('token', handler) I can call complete with
event.complete("fail")
event.complete("success")
https://stripe.com/docs/js/payment_request/events/on_token
I wanted to know for this 'onClick' event for the payButtonElement what statuses I can send through.
Thank you for that, and apologies in advance as I will need to take some time to dig into this. I don't readily recognize the name of that type of element, and I'm not seeing it referenced as an element that can be created here:
https://stripe.com/docs/js/element/other_element
So I need to do some digging regarding this.
No worries, I appreciate you looking into this.
Is this for a beta feature that you've been granted access to?
No, I'm using it with Apple Pay, I need to update my paymentRequest object on click of the Apple Pay button, so after I've done that then I need to resolve the onclick and I just dont know what status to send through.
I don't think that is the right element then, I think you'd be using the paymentRequestButton instead:
https://stripe.com/docs/js/element/events/on_click?type=paymentRequestButton
Oh gosh I think you're totally right. Not sure how I got that so mixed up.
Oh no wait..
Sorry maybe I'll get back to you in a bit. I need to setup my ngrok env and see what information the event is returning me
All good, they have very similar names. I'll keep an eye out for follow-up questions or clarifying information.
Thanks, sorry it'll be just a bit.
enforcedcastle-prb-clickevents