#jared_48215

1 messages ยท Page 1 of 1 (latest)

lyric elbowBOT
#

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.

obtuse gulch
warm whale
#

Checking

#

Yes

#

The button shows

nimble oak
warm whale
#

Yes, I have

nimble oak
#

Okay can you provide a PaymentIntent ID that you are testing with?

warm whale
#

A paymentIntentClientSecret?

nimble oak
#

Just the PaymentIntent ID is fine

warm whale
#

Checking

#

pi_3O86RdKQsDArlF5Y0Sg7kEQO

nimble oak
#

Thanks checking

#

Are you testing on simulator or real device?

warm whale
#

Real device

nimble oak
#

Okay everything looks good so far...

warm whale
#

Environment test for both Google and Stripe

nimble oak
#

Can you show me your GooglePayConfiguration?

warm whale
#

googlePayConfiguration = PaymentSheet.GooglePayConfiguration(
environment = if (BuildConfig.DEBUG) PaymentSheet.GooglePayConfiguration.Environment.Test
else PaymentSheet.GooglePayConfiguration.Environment.Production,
countryCode = "GB"
)

nimble oak
#

Can you try countryCode = "UK"?

warm whale
#

Testing

#

Nope

nimble oak
#

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

warm whale
#

lol ๐Ÿ™‚

nimble oak
#

What version of our Android SDK are you on?

#

And can you show me your AndroidManifest.xml and your build.gradle?

warm whale
#

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'

nimble oak
#

Okay yeah nothing jumpig out to me that is wrong or should clash...

#

Can you show me your PaymentSheet Configuration?

warm whale
#

Line 289

nimble oak
warm whale
#

I haven't tested the whole flow on that page, just that the button shows

nimble oak
#

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

warm whale
#

Checking

#

Looks OK

#

I didn't see any failure messages

nimble oak
#

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....

warm whale
#

Checking

nimble oak
#

Ah I might know what it is. Do a quick test where you don't pass in the Ephemeral Key and the Customer ID.

warm whale
#

Empty for both or null customerConfig?

nimble oak
#

Just remove customerConfig. I believe if you pass that then Customer and EphemeralKey are required iirc

warm whale
#

the payment sheet doesn't display at all

#

Testing again

#

Nope, still no Google Pay

nimble oak
#

Dang....

lyric elbowBOT
warm whale
#

There is a client version server side

#

Could that be mismatched to the client version on the device?

nimble oak
#

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.

nimble oak
#

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

warm whale
#

Testing

nimble oak
#

And you don't see any logs when you presentPaymentSheet right?

warm whale
#

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

nimble oak
#

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

warm whale
#

Should Google Pay be in the payment options?

"payment_method_types": [
"card",
"bacs_debit",
"alipay",
"link",
"paypal"
]

nimble oak
#

No it falls under card

#

It doesn't have a separate payment method type since it is just a way of tokenizing a card

warm whale
#

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

nimble oak
#

Also do you happen to have another Android device to test on? And what type of device are you on right now?

warm whale
#

Testing

#

Exception

nimble oak
#

That error is thrown when you try to instantiate GooglePayLauncher?

warm whale
#

Yes

nimble oak
#

Well that's not super helpful...... what does your code look like?

warm whale
nimble oak
#

Do you happen to have another device to test with?

warm whale
#

The same happens on an emulator

nimble oak
#

Don't believe you can test Google Pay on emulator

warm whale
#

But unfortunately no I don't have another physical

nimble oak
#

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.

warm whale
#

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

nimble oak
#

๐Ÿ‘

warm whale
#

Glad to see I'm not going too mad

nimble oak
#

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.

warm whale
#

I'm in a fragment vs an activity?

#

Assuming that's OK?

nimble oak
#

Don't think that should matter afaik. You could move to an activtiy to make sure but yeah shouldn't make a difference