Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

google pay is not available on this device (stripe react native). #607

Closed
Mukthaharshaik opened this issue Sep 23, 2021 · 9 comments · Fixed by #811
Closed

google pay is not available on this device (stripe react native). #607

Mukthaharshaik opened this issue Sep 23, 2021 · 9 comments · Fixed by #811
Labels
invalid This doesn't seem right

Comments

@Mukthaharshaik
Copy link

Mukthaharshaik commented Sep 23, 2021

Describe the bug
Whenever i call initGooglePay, It is saying - google play is not available on this device. I have installed googlepay in my mobile. I enabled gpay in manifestfile.xml.

To Reproduce
Steps to reproduce the behavior:

import {useStripe, initGooglePay,
presentGooglePay,
createGooglePayPaymentMethod, } from '@stripe/stripe-react-native';

===========================
const error = await initGooglePay({
testEnv: true,
merchantName: 'com.stripe_app',
countryCode: 'IN',
billingAddressConfig: {
format: 'FULL',
isPhoneNumberRequired: true,
isRequired: false,
},
existingPaymentMethodRequired: false,
isEmailRequired: true,
});

Smartphone (please complete the following information):

  • Device: samung m30s
  • OS: [android 11
@Mukthaharshaik Mukthaharshaik changed the title google play is not available on this device (stripe react native). google pay is not available on this device (stripe react native). Sep 24, 2021
@anija
Copy link

anija commented Oct 5, 2021

Using latest version of the library, initGooglePay works fine for me on physical device: Huawei p30, Android 10.
Have you added the dependency?

dependencies {
  implementation 'com.google.android.gms:play-services-wallet:18.1.3'
}

ref: https://stripe.com/docs/payments/accept-a-payment?platform=react-native&ui=payment-sheet#google-pay

@charliecruzan-stripe
Copy link
Collaborator

@Mukthaharshaik are you still seeing this issue?

@sailes-coding
Copy link

any idea on how can i resolve this problem on Expo sdk 44??. i already create the EAS dev-client too

@charliecruzan-stripe
Copy link
Collaborator

If you're using the dev client, then you can pull in @stripe/stripe-react-native v0.3.0 and check the isGooglePaySupported method

@sailes-shakya
Copy link

After i pull latest version . min sdk and complilesdk 31 doesnt match with expo sdk 44 .any idea to solve this problem. Thank you in advance

@charliecruzan-stripe
Copy link
Collaborator

Please refer to this issue- #812

You'll either have to override those values in build.gradle, or wait until Expo updates

@sailes-shakya
Copy link

Oo ok thank you for your reply

@zoalna
Copy link

zoalna commented May 5, 2022

i have faced same issues but not getting any proper solution.
please help for the same
getting error google pay not available in this device.

@nadeem36212
Copy link

I was also facing this issue, after spending couple of hours, I am able to find the solution
https://developers.google.com/pay/api/android/guides/setup

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants