#jim-carry_docs
1 messages ¡ Page 1 of 1 (latest)
đ 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.
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
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?
<meta-data
android:name="com.google.android.gms.wallet.api.enabled"
android:value="true" />
can you share the PaymentIntent or SetupIntent id which you're attempting to pay for?
The seti_xx value?
if you access this page on your device, do you see the Google Pay button? https://stripe.com/docs/elements/express-checkout-element/accept-a-payment
hrm, gimme a few minutes
And the test company in my dashboard is Canadian (if that matters)
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?
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.
sorry about the confusion, can you confirm which Stripe Android SDK version you're using too?
20.44.0
You mean if you set the countryCode to CA in GooglePayConfiguration (https://stripe.dev/stripe-android/paymentsheet/com.stripe.android.paymentsheet/-payment-sheet/-google-pay-configuration/index.html), the PaymentSheet won't show Google Pay? Is this the only change you made?
if you access this page on your device, do you see the Google Pay button? https://stripe.com/docs/elements/express-checkout-element/accept-a-payment
The above link. If I change country to CA, Gpay button disappears
My connect account that I'm using is Canadian.
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?
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?
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?
Tried that too. No joy.
Customer ID is cus_PscMdIQFO5w8Fa
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?
How about presenting the PaymentSheet with a paymentIntent client secret without customer config? Does it show Google Pay?
How would I do that? remove the .customer and add what?
create a paymentIntent, and pass it client secret to paymentSheet,presentWithPaymentIntent
I removed the customer. No GPay button still.
There's no way to change a connect account's country correct?
Can you share with me the android project that I can run and reproudce the problem?
That wouldn't be possible right now. If you need the setup intent details, I can share that
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?
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.
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.