#yourcat_check-google-pay-enabled
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1222836692726055043
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi! Which Stripe UIs/APIs are you using to integrate Google Pay?
Express checkout element for rendering the button, I think it's called. "The new one". I will check
Yep, sounds right
Yes, it's express checkout element
At what point to you want to know if Google Pay is available? Prior to creating the ECE instance?
I am aware it automatically shows the available methods, but as I said, our design is radio based.
Correct!
We do something like IF(apple pay exists) SHOW AP RADIO
would like to do something similar for GP
I guess, if I have to sneak render an ECE invisibly to know, I'd be open to that too.
Hmm, then that's not really something you'd leverage Stripe to do but more native web browser APIs. Specifically: https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequest/canMakePayment
That should return the available wallets, and is actually what we leverage under the hood
I see, thank you!
Otherwise you can set the ECE to always show the wallet buttons regardless of if the customer has the wallet configured
Am aware, thank you
yourcat_check-google-pay-enabled
worked perfectly, thanks again