#Mark - Google Pay

1 messages ยท Page 1 of 1 (latest)

indigo raptor
#

Hi ๐Ÿ‘‹

#

That is entirely dependent on whether the iOS user is signed into Chrome and has Google Pay configured on their account

#

The restriction is on the browser, not Stripe

last edge
#

okay, so it should be supported

#

I am logged in and I do have a card configured. And I see the button in Chrome Desktop using this Google account.

indigo raptor
#

And the Card is on your Account? Like you do see Google Pay if you use a Chrome browser with Desktop?

last edge
#

yes, I see the button on Desktop, and I see the card in Chrome iOS settings under Payment Methods

#

(and its a Google Pay method)

indigo raptor
#

Okay because saved cards in Chrome is not the same as Google Pay and that trips some people up

last edge
#

as far as I can tell the card is available and set up properly. it does trigger the button properly on desktop.

#

and the Google Pay button shows up on Android Chrome fine as well

#

just not iOS Chrome

#

its not a big blocker or anything, I think Google Pay on iOS Chrome is probably a relatively rare thing. but I wanted to make sure I don't have a bug.

indigo raptor
#

I don't think so but I'm not finding any docs on whether it's restricted or not.

#

Google loads a file called pay.js which first checks the browser and device capabilities and then decides whether to render the button or not

last edge
#

I see the Google Pay method not just in my Google account in the browser, but also in iOS Chrome's Payment Methods in the app, and it is clearly listed as "Google Pay". I'm pretty sure I have it set up correctly.

indigo raptor
#

Okay so the Payment Element is even rendering the Google Pay button?

#

But when you click on it you do not get the Google Pay interface?

last edge
#

but I get "null" back from stripePaymentRequest.canMakePayment()

#

no, Stripe is not rendering a button

#

although it works on the same page in Android Chrome, and Desktop Chrome, with the same user

#

possibly out of date Stripe npm packages?

#

I've got:

    "@stripe/react-stripe-js": "^1.8.1",    "@stripe/stripe-js": "^1.31.0",
indigo raptor
#

The .canMakePayments() function hits the Payment Request API (native browser) and checks whether the browser is configured to make the payment.

last edge
#

I also do not see the button on Firefox Desktop, or Edge Desktop

#

(both on Mac OS)

indigo raptor
#

Well neither of those support Google Pay AFAIK

last edge
#

maybe iOS Chrome doesn't either?

#

verified on more than one user, on more than one device

#

trying to update stripe packages

#

no difference with latest

#

well, I'm not going to stress about it, but it seems that it isn't supported for whatever reason.

indigo raptor
#

Yeah, I didn't think so. As I said this is determined by Google's own JS code when loading a page in the browser

last edge
#

๐Ÿคทโ€โ™‚๏ธ

indigo raptor
last edge
#

well, thanks for the help

#

I'm satisfied that whatever it is I'm not causing it ๐Ÿ˜„

indigo raptor
#

Totally not your fault! ๐Ÿ˜†