#vishal-reactnative-googlepay
1 messages · Page 1 of 1 (latest)
Hi 👋 do you have the full error message that you're seeing available to share?
Is either your Stripe account based in India, or are you testing this flow from a device in India?
(There are regional limitations that may be getting in the way)
Nope I am in ireland.
and testing the integration in ireland
The error says GooglePay is not available on this device. You can use isGooglePaySupported to preemptively check for Google pay support.
The googlepay button is rendered based on condition if isgooglepaySupported is true then only show button. So the button is showing up but the initGooglePay() method is throwing this error
What version of Expo and our SDK are you currently using?
expo SDK 47, stripe react native 0.19.0
You mentioned that this was working as you expected before, can you clarify when you saw this change? Did it correlate with updating a dependency version or another change to your integration/stripe account?
when we moved to expo sdk 47 from 46
Thank you, I believe that change will also correlate with our SDK being updated from 0.13.1 (edited) to 0.19.0 as those are pinned to Expo versions.
It looks like isPlatformPaySupported that you referenced wasn't added until version 0.22.0 though:
https://github.com/stripe/stripe-react-native/blob/master/CHANGELOG.md#0220---2022-12-02
Can you confirm that you're not using isPlatformPaySupported?
And react native library 0.14.0 to 0.19.0(this came with expo 47 upgrade)
yes i am aware of that i tried to upgrade the library to make it work but no luck
I confirm i am now not using the isPlatformPaySupported
I am using initGooglePay
and IsGooglePaySupported
Do you have Google Wallet installed and set up on your test device, or the Google Pay app?