#daimyotan-gpay
1 messages ยท Page 1 of 1 (latest)
hello @reef hornet! Can you check if you're able to see a google pay button on this page?
oh whoops, sorry i forgot to paste this link : https://stripe.com/docs/stripe-js/elements/payment-request-button
it's actually the button in the red box
then no
so it's really important to note that the only way to test Google Pay unfortunately is to deploy your app to a physical Android device that has an active Google account that has live Visa/Mastercard/American Express/Discover credit/debit cards in the Google Pay wallet. In an emulator or virtual AVD there is no Google Pay support, and the onGooglePayReady function will always get called with a false value.
i tested in real device with installed GPay and added method ๐
i know the prequesites
you not being able to see the Payment Request Button on that page usually indicates that something isn't compatible or a real payment method isn't added though
ah you meant to open that link with the test device ?
yes
Hello @reef hornet, in general from device, if you can see that button then GPay setup is working. There is might be an issue with the code. Could you paste the code around that method here?
@errant arrow can you help ?
Hi there, I looked at the code and it is pretty normal. Waiting for my colleague online to assist your further
(y)
- did you enable it in your AndroidManifest.xml? https://stripe.com/docs/payments/accept-a-payment?platform=react-native&ui=payment-sheet#google-pay
- what version of Google Pay do you have on your phone, https://play.google.com/store/apps/details?id=com.google.android.apps.walletnfcrel , or https://play.google.com/store/apps/details?id=com.google.android.apps.nbu.paisa.user ?
hi @tender heron
- manifest: yes
- gpay version: 2.134.392709498
hmm I'm really not sure then
i'm using gg pixel 1
and i just changed my country profile in GG Play, in order to install the GPay app
this could be issue
is there any config i need to do in my Stripe account ?
you shouldn't need anything in your Stripe account no
this init PaymentConfiguration.init(this, AppConfig.STRIPE_PUBLIC_KEY)
should i place it in Application, or in activity is fine ?
having it in the Activity is fine, and I don't think this could be related
ok
maybe ask a colleague to try your app on their phone to rule out something specific to your set up of Google Pay?
ok, i will do it
unfortunately I don't have much of an idea. Usually it's one of the things already covered, or you're using a device with the Indian version of GPay(the one I linked above), which we don't support
also if you do have cards in your Google Pay wallet, they need to be brands accepted by Stripe(Visa/Mastercard would be safe options) , just in case it's that
hmm ok i'll try to setup again for Gpay itself
to see any luck
thanks for your support ๐
is it this one for US or India ?
I think that's the Indian one(https://play.google.com/store/apps/details?id=com.google.android.apps.nbu.paisa.user)