#krustyflakes-google-pay
1 messages · Page 1 of 1 (latest)
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?
In other words, do you also see it show up on this page?
https://stripe.com/docs/stripe-js/elements/payment-request-button
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
Do you see it show up on this page?
https://stripe.com/docs/stripe-js/elements/payment-request-button
You should see it here
So if I see it on the website, it should be presente within the android app?
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
Thanks let me try that
In PaymentSheetViewModel.kt, isReady is being set to false, which is why it's probably not showing up. Could this be the case?
Let's make sure that you can view the Google Pay button first and foremost
it shows up on chrome mobile
From the same device that you're using to view the payment sheet you created?
yes. the payment sheet shows up only the google pay button does not show up
Is there more to this @tropic pawn?
var config = PaymentSheet.Configuration(
businessName,
null,
googlePay = PaymentSheet.GooglePayConfiguration(
environment = PaymentSheet.GooglePayConfiguration.Environment.Production,
countryCode = "US",
currencyCode = "USD"
),
null,
null,
false
)
For the payment sheet, we are using setup intent.
@thorny berry this is our current config
Taking a look now
Thank you
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
we have been testing on a physical device
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.
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?
yes
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>```