#jim-carry_docs

1 messages ¡ Page 1 of 1 (latest)

whole treeBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1245213320924102727

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

rigid bay
#

hello! Does your test device (physical or virtual) has Google Play services installed and you have signed in with your Google Account from phone settings? Note that you should also have a valid real card added to your Google Wallet

teal pier
#

Yes, yes.

#

The button doesn't even show up on the payment sheet.

rigid bay
#

Can you also check the AndroidManifest.xml file and see if you have added a <meta-data> tag under the <application> tag to enable Google Pay?

teal pier
#

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

rigid bay
#

can you share the PaymentIntent or SetupIntent id which you're attempting to pay for?

teal pier
#

The seti_xx value?

rigid bay
#

it'll have the prefix of either pi_ or seti_

#

ah yeah

#

that one

teal pier
#

Ok wait

#

seti_1PLd3wC0wiqTfzk5ARU1yy5z_secret_QC16iZnDC2HEfX6lpa7gRDQC57hCXlJ

rigid bay
teal pier
#

Yes.

#

however if i set merchant country to Canada, the GPay button disappears.

rigid bay
#

hrm, gimme a few minutes

teal pier
#

And the test company in my dashboard is Canadian (if that matters)

hollow thorn
#

Hi @teal pier I'm also an engineer from Stripe. Does your device have Google Play services installed? Did you log in your Google account to the device?

#

Also are you using the latest version of Stripe Android SDK?

teal pier
#

Yes. Everything is setup for it to work. The link your colleague provided shows me the Google Pay button with my card.

#

However, as I mentioned to him, if I change the country to Canada, the GPay button disappears

#

GPay shows up for all countries on that page, except CA.

rigid bay
#

sorry about the confusion, can you confirm which Stripe Android SDK version you're using too?

teal pier
#

20.44.0

hollow thorn
teal pier
#

The above link. If I change country to CA, Gpay button disappears

#

My connect account that I'm using is Canadian.

hollow thorn
#

OK. I think we are talking different things here. The page that you visited is about express checout element integration. But you are working on a paymentSheet integration, which is a mobile integration.

#

Can you share with me the code you wrote to initialize the mobile SDK and paymentsheet?

teal pier
#

PaymentSheet.GooglePayConfiguration googlePayConfiguration = new PaymentSheet.GooglePayConfiguration(
PaymentSheet.GooglePayConfiguration.Environment.Test, "US", "USD"
);

    final PaymentSheet.Configuration configuration = new PaymentSheet.Configuration.Builder(
            "ServQuik")
            .customer(customerConfiguration)
            .googlePay(googlePayConfiguration)
            .allowsDelayedPaymentMethods(false)
            .build();

    paymentSheet.presentWithSetupIntent(setupIntentClientSecret, configuration);
#

Do you need to see the customer config as well?

hollow thorn
#

Sure please share that to me as well. You mentioned your account is based in CA, can you also set the same to GooglePayConfiguration as well?

teal pier
#

Customer ID is cus_PscMdIQFO5w8Fa

hollow thorn
#

Ok, so your paymentsheet is preseting the saved payment methods that are attached to cus_PscMdIQFO5w8Fa

#

Can you click on the + button on the payement sheet? it should bring up the UI to collect a new payment method. See if Google Pay is shown in that UI?

teal pier
#

Its not. Let me share a screenshot.

hollow thorn
#

How about presenting the PaymentSheet with a paymentIntent client secret without customer config? Does it show Google Pay?

teal pier
#

How would I do that? remove the .customer and add what?

hollow thorn
#

create a paymentIntent, and pass it client secret to paymentSheet,presentWithPaymentIntent

teal pier
#

I removed the customer. No GPay button still.

#

There's no way to change a connect account's country correct?

hollow thorn
#

Can you share with me the android project that I can run and reproudce the problem?

teal pier
hollow thorn
#

Or can I suggest you to share the project with stripe support? https://support.stripe.com/contact/email and we'll continue the troubleshooting through emails?

teal pier
#

Alright I'll use the email option since this is taking too much of your time and we don't seem to be getting anywhere.