#jackmt

1 messages · Page 1 of 1 (latest)

spice geyserBOT
frank folio
#

What have you tried and what isn't working?

jovial hinge
#

how i can do it?

#

now when i click gpay button i see the payment interface

frank folio
#

Are you using a custom button and manually calling paymentRequest.show()?

jovial hinge
#

no

#

any way to do it with payment request button element

#

?

frank folio
#

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

jovial hinge
frank folio
#

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

jovial hinge
#

what that means

#

please more details

frank folio
#

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

jovial hinge
frank folio
#

Nope

jovial hinge
#

if user click gpay or apay button,
if email taken ---> payment interface will not appear
if email not taken ---> payment interface will appear

#

right?

frank folio
#

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

jovial hinge
#

ok thank you

frank folio
#

No problem