#mineshimayuu_best-practices
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/1445613350880018504
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- mineshimayuu_code, 1 day ago, 15 messages
Hi there,
is it necessary to successfully link a real bank card in Google Wallet?
Yes, this is necessary.
Is there anything that needs to be set in the Google Pay Console, or is it sufficient to just enable Google Pay in the Stripe Dashboard
What do you mean by Google Pay Console? Since you mentioned in app purchases, are you using the Stripe payment sheet?
Yes, I'm using Mobile Payment Element
Then the Stripe doc you linked is the correct doc to follow
Is there no other additional operation that needs to be handled?
Google Wallet is the key point, right?
There are other specifications your app needs to follow, such as enabling the Google Pay API by adding the following to the <application> tag of your AndroidManifest.xml file, and googlePayConfiguration being correctly set up.
PaymentSheet.GooglePayConfiguration googlePayConfiguration;
if (isDebug) {
googlePayConfiguration = new PaymentSheet.GooglePayConfiguration(
PaymentSheet.GooglePayConfiguration.Environment.Test,
"US",
"USD" // Required for Setup Intents, optional for Payment Intents
);
} else {
googlePayConfiguration = new PaymentSheet.GooglePayConfiguration(
PaymentSheet.GooglePayConfiguration.Environment.Production,
"US",
"USD" // Required for Setup Intents, optional for Payment Intents
);
}
paymentSheet.presentWithPaymentIntent(
paymentIntentClientSecret,
new PaymentSheet.Configuration.Builder(merchantDisplayName)
// Set `allowsDelayedPaymentMethods` to true if your business handles
// delayed notification payment methods like US bank accounts.
.allowsDelayedPaymentMethods(false)
.googlePay(googlePayConfiguration)
.build()
Is it correct?
Is "US" and "USD" must matches settings in Stripe dashboard?
The countryCode needs to match the account's country
the code snippet you shared above is missing the currencyCode parameter as well
please follow our code sample here: https://docs.stripe.com/payments/accept-a-payment?platform=android&ui=payment-sheet#add-google-pay and edit the parameter values in accordance to your Stripe account
You can refer to this page to understand what each parameters in GooglePayConfiguration relates to: https://stripe.dev/stripe-android/paymentsheet/com.stripe.android.paymentsheet/-payment-sheet/-google-pay-configuration/index.html
Where can I view the countryCode information? I only saw the business address in the settings.
Do you mean in the Stripe Dashboard? You can view your account settings here: https://dashboard.stripe.com/settings/account
See under Country
OK,thanks
⛔️ Stripe developers have stepped away for a short while
Please leave your questions here, and we’ll respond as soon as we're back! If you need help urgently, you can contact Stripe support for help.