#jared_48215
1 messages ยท Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- jared_48215, 2 days ago, 7 messages
When you visit this page on the device, do you see Google Pay show up?
https://stripe.com/docs/stripe-js/elements/payment-request-button
๐ have you followed the steps here: https://stripe.com/docs/payments/accept-a-payment?platform=android&ui=payment-sheet#android-google-pay
Yes, I have
Okay can you provide a PaymentIntent ID that you are testing with?
A paymentIntentClientSecret?
Just the PaymentIntent ID is fine
Real device
Okay everything looks good so far...
Environment test for both Google and Stripe
Can you show me your GooglePayConfiguration?
googlePayConfiguration = PaymentSheet.GooglePayConfiguration(
environment = if (BuildConfig.DEBUG) PaymentSheet.GooglePayConfiguration.Environment.Test
else PaymentSheet.GooglePayConfiguration.Environment.Production,
countryCode = "GB"
)
Can you try countryCode = "UK"?
Yeah nvm I just checked and it should be GB
Sometimes people confuse it and put UK
I can never remember which is right ๐
Hrmmm
lol ๐
What version of our Android SDK are you on?
And can you show me your AndroidManifest.xml and your build.gradle?
implementation 'com.google.android.gms:play-services-wallet:19.2.1'
implementation "com.android.billingclient:billing-ktx:6.0.1"
implementation 'com.stripe:stripe-android:20.34.3'
Okay yeah nothing jumpig out to me that is wrong or should clash...
Can you show me your PaymentSheet Configuration?
So you said when you go to https://stripe.com/docs/stripe-js/elements/payment-request-button on your device that you are testing with in Chrome you see the button at the top, yes? And you are able to complete the Google Pay flow on your device that you are testing with via the Google Pay button there?
I haven't tested the whole flow on that page, just that the button shows
Can you run through the flow real quick and make sure it completes successfully?
It is in test mode -- you won't be charged anything
Okay
Can you show me a screenshot of what your PaymentSheet looks like when you open it? Everything continues to look fine and it seems like you have a valid/live card in your wallet on your device....
Ah I might know what it is. Do a quick test where you don't pass in the Ephemeral Key and the Customer ID.
Empty for both or null customerConfig?
Just remove customerConfig. I believe if you pass that then Customer and EphemeralKey are required iirc
Dang....
There is a client version server side
Could that be mismatched to the client version on the device?
There are some new requirements around Google Pay about not being able to re-use Google Pay saved cards, so I thought that might be affecting things on the new version here.
Not sure what you mean by this exactly
But no that shouldn't matter
Also can you try for environment = if (BuildConfig.DEBUG) PaymentSheet.GooglePayConfiguration.Environment.Test else PaymentSheet.GooglePayConfiguration.Environment.Production, just hardcoding in PaymentSheet.GooglePayConfiguration.Environment.Test there
And remove the conditional
Testing
And you don't see any logs when you presentPaymentSheet right?
No Google Pay button
What logs am I looking for?
2023-11-02 19:48:14.074 21258-21329 StripeSdk com.gorillasoftware.everyproxy D StripeImageLoader: Image not found on memory cache
2023-11-02 19:48:14.078 21258-21329 StripeSdk com.gorillasoftware.everyproxy D StripeImageLoader: Image loaded from disk cache
2023-11-02 19:48:14.079 21258-21336 StripeSdk com.gorillasoftware.everyproxy D StripeImageLoader: Image not found on memory cache
2023-11-02 19:48:14.080 21258-21336 StripeSdk com.gorillasoftware.everyproxy D StripeImageLoader: Image loaded from disk cache
Otherwise nothing relevant
Currency should be optional but let's try adding that just to rule it out here as well
Don't think those logs are relevant but checking
Should Google Pay be in the payment options?
"payment_method_types": [
"card",
"bacs_debit",
"alipay",
"link",
"paypal"
]
No it falls under card
It doesn't have a separate payment method type since it is just a way of tokenizing a card
Gotcha
Testing with currency code
Nope
I've done some debugging and google pay is not ready...
That's all I could figure out not knowing the Stripe code well enough
Alright sorry still really stumped here.
Can you try instantiating the GooglePayLauncher (https://stripe.com/docs/google-pay?platform=android#instantiate) in order to see if the device reports Google Pay as available via that or not?
Also do you happen to have another Android device to test on? And what type of device are you on right now?
That error is thrown when you try to instantiate GooglePayLauncher?
Yes
Well that's not super helpful...... what does your code look like?
Do you happen to have another device to test with?
The same happens on an emulator
Don't believe you can test Google Pay on emulator
But unfortunately no I don't have another physical
Okay well I'm sorry this is being a pain. I'm out of ideas really. The next best thing to do is for you to provide a minimal copy of your project to us that we can reproduce the issue from our end. To do that, you'll want to file a ticket via https://support.stripe.com/contact/login with your project.
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Cool, thanks. I'll do that in a week's time. I'm away for work for a week.
thanks for all of your help regardless
๐
Glad to see I'm not going too mad
Yeah I mean everything looks fine. But really it could just be something tiny or it could be a real bug or it could just be your device acting weird.
Don't think that should matter afaik. You could move to an activtiy to make sure but yeah shouldn't make a difference