#krustyflakes-google-pay

1 messages · Page 1 of 1 (latest)

thorny berry
#

Do you have a live url where this is hosted that I can take a look at? If not, which guide are you following to set this up?

#

Does the Google Pay button show up in other places for you on the device you're using to test?

tropic pawn
#

We do not have it live, currently only running in our staging environment

#

We are seeing the Apple Pay button with no issue using Xcode simulator, but the android counter part won't be present over android simulator

thorny berry
#

You should see it here

tropic pawn
#

So if I see it on the website, it should be presente within the android app?

thorny berry
#

Correct

#

Sort of

#

If it shows on the website, then that indicates Google Pay is set up properly on the device that you used to view it. It's just a troubleshooting step I'm using to confirm that you have a payment method added correctly. Google Pay button won't show unless you have a payment method enabled on the device

tropic pawn
#

Thanks let me try that

cyan veldt
#

In PaymentSheetViewModel.kt, isReady is being set to false, which is why it's probably not showing up. Could this be the case?

thorny berry
#

Let's make sure that you can view the Google Pay button first and foremost

tropic pawn
#

Other than that

#

We seem to have noticed the following thing

cyan veldt
thorny berry
#

From the same device that you're using to view the payment sheet you created?

cyan veldt
#

yes. the payment sheet shows up only the google pay button does not show up

thorny berry
cyan veldt
#

var config = PaymentSheet.Configuration(
businessName,
null,
googlePay = PaymentSheet.GooglePayConfiguration(
environment = PaymentSheet.GooglePayConfiguration.Environment.Production,
countryCode = "US",
currencyCode = "USD"
),
null,
null,
false
)

tropic pawn
#

@cyan veldt will share our config

#

See if there's anything you notice that's missing

cyan veldt
#

For the payment sheet, we are using setup intent.

tropic pawn
#

@thorny berry this is our current config

thorny berry
#

Taking a look now

tropic pawn
#

Thank you

radiant estuary
#

Have you tried running this on a physical Android device or just the emulator? I keep finding sources that say the Android emulator doesn't support Google Pay but am having trouble finding a definitive doc from Google that specifies that

cyan veldt
#

we have been testing on a physical device

radiant estuary
#

Gotcha, the simulator was mentioned before so I took that to mean emulator.

#

Looking in to our docs to see what else might prevent this, if our test page works, that likely means the wallet is set up correctly here.

radiant estuary
#

Hey I really apologize for the silence. I was not able to find debugging steps on this myself but found a colleague who is more knowledgeable on this and am working with them.

#

Are you testing this in the US as well?

cyan veldt
#

yes

radiant estuary
#

The Configuration looks correct as far as I can tell. Have you double checked your manifest to make sure Google Pay is enabled there?

  ...
  <meta-data
    android:name="com.google.android.gms.wallet.api.enabled"
    android:value="true" />
</application>```