#daimyotan-gpay

1 messages ยท Page 1 of 1 (latest)

timber pike
#

hello @reef hornet! Can you check if you're able to see a google pay button on this page?

reef hornet
#

hi @timber pike wwhich pay ?

#

you meant in my stripe dashboard

timber pike
reef hornet
#

yes, and also others

timber pike
#

it's actually the button in the red box

reef hornet
#

then no

timber pike
#

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.

reef hornet
#

i tested in real device with installed GPay and added method ๐Ÿ™‚

#

i know the prequesites

timber pike
#

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

reef hornet
#

ah you meant to open that link with the test device ?

timber pike
#

yes

reef hornet
#

it's there. if i use the test device open the link

errant arrow
#

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?

reef hornet
#

here the code for init the activity and GPay

reef hornet
#

@errant arrow can you help ?

errant arrow
#

Hi there, I looked at the code and it is pretty normal. Waiting for my colleague online to assist your further

reef hornet
#

(y)

reef hornet
#

hi @tender heron

  • manifest: yes
  • gpay version: 2.134.392709498
tender heron
#

hmm I'm really not sure then

reef hornet
#

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 ?

tender heron
#

you shouldn't need anything in your Stripe account no

reef hornet
#

this init PaymentConfiguration.init(this, AppConfig.STRIPE_PUBLIC_KEY)

#

should i place it in Application, or in activity is fine ?

tender heron
#

having it in the Activity is fine, and I don't think this could be related

reef hornet
#

ok

tender heron
#

maybe ask a colleague to try your app on their phone to rule out something specific to your set up of Google Pay?

reef hornet
#

ok, i will do it

tender heron
#

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

reef hornet
#

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 ?

tender heron
reef hornet
#

ok then i got the right one

#

not this

reef hornet
#

it works

#

you're right. problem is with my payment method in GPay

#

it doesn't accept my non-US card