#jackmt
1 messages · Page 1 of 1 (latest)
What have you tried and what isn't working?
Are you using a custom button and manually calling paymentRequest.show()?
If you want the action to happen on clicking the payment request button, you'll need to have a custom button to handle custom onclick actions
ok Q do you think this can help
https://stripe.com/docs/js/element/events/on_click?type=paymentRequestButton
Oh I wasn't even aware we provided that for the PRB
One sec
Maybe this is possible
Yep that should work!
Recommend trying it in test mode
You'd have to manually call paymentRequest.show() I think
So if you handle the onclick event, it prevents the gpay modal from popping up. You'd have to show it manually by calling paymentRequest.show() once you've validated the email was provided
user must click 2 times on gpay button?
Nope
if user click gpay or apay button,
if email taken ---> payment interface will not appear
if email not taken ---> payment interface will appear
right?
yeah you can handle that in the onclick function
just check the email field and have an if statement
to show the payment request interface call the show() function I mentioned above
ok thank you
No problem