#dashen0897_unexpected
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/1445600226445365321
📝 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.
- dashen0897_docs, 5 days ago, 89 messages
hi there 👋 give me a moment to look into this
Are you using an Android emulator in your tests?
It uses the APK installation method.
If you are not using an emulator, do you also have the the Google Wallet app installed on your Android device? If not, please install it and let me know if the Google Pay button still doesnt display
Android mobile devices used
It's installed and I'm logged in, but I don't have a real payment card.
Because I want to use a test card to make a payment.
You will need a real card in your Google Wallet app.
If you are in a test environment, your real card will not be charged
So, getting the real card is a must, right?
Are there any other steps? Does the Google account require any configuration?
yes, a real card needs to be added to the Google Wallet app
No, there isn't other specific configurations needed on the Google Account itself.
I just tested it, and even after binding the real card, it still didn't appear.
You are signed in into the Google Account on your Android device too, right?
Yes
Are you using React Natve?
If you don’t mind, could you also share your account id so that I can take a closer look at how your integration works? You can find your account id by logging in to https://dashboard.stripe.com/settings/account . It'll have the prefix acct_
can you share with the Stripe doc link to that image please
thank you
Do I need to configure anything in Google's backend management?
I am not sure what Google's backend management means..but we can first check its properly set up on Stripe's side first
Here: https://docs.stripe.com/payments/accept-a-payment?platform=android#add-google-pay
Can you confirm you're already added a GooglePayConfiguration [0] to PaymentSheet.Configuration [1] ?
[0] https://stripe.dev/stripe-android/paymentsheet/com.stripe.android.paymentsheet/-payment-sheet/-google-pay-configuration/index.html)
[1] https://stripe.dev/stripe-android/paymentsheet/com.stripe.android.paymentsheet/-payment-sheet/-configuration/index.html
Sorry, edited the above. The text styling was bad
Okay, next, could you check the AndroidManifest.xml file and see if you have added a <meta-data> tag under the <application> tag to enable Google Pay.
In AndroidManifest.xml, it should looks like this
<application>
...
<meta-data
android:name="com.google.android.gms.wallet.api.enabled"
android:value="true" />
</application>
The AndroidManifest.xml file is usually located at /app/src/main/AndroidManifest.xml.
Completed
Thank you, may I know what Android device are you using? On your Android device, can you open this link: https://docs.stripe.com/elements/express-checkout-element#try-demo and confirm that the Google Pay button appears in the demo? Please share with me a screenshot
Thank you. That looks like a screenshot taken from desktop and the payment sheet looks like its open using an Android emulator - can you confirm?
This is a screenshot my colleague sent me after testing the actual device; I've copied it for you.
i see, okay thanks.
please share with me the code snippet for your PaymentSheet.GooglePayConfiguration
🧑💻 How to format code on Discord
Inline code: wrap in single backticks (`)
This:
The variable `foo` contains the value `bar`.
Will turn into this:
The variable
foocontains the valuebar.
Code blocks: wrap in three backticks (```)
Also, you can specify the language after the first three backticks to get syntax highlighting.
This:
```javascript
function foo() {
return 'bar';
}
```
Will turn into this:
function foo() {
return 'bar';
}```
Notes about **code blocks**:
- Specifying the language is optional (e.g., you can omit `javascript` in the example above)
- If you don't specify the language you won't get syntax highlighting
- When you're inside a code block (after you type \`\`\`) the `Return`/`Enter` key will add a new line instead of sending your message
- Once you end the code block `Return`/`Enter` works normally again
You can [read more about message formatting on Discord's website.](https://support.discord.com/hc/en-us/articles/210298617)
Do I need to replace them with sg and sgd?
Yes for countryCode, for currencyCode it depends on the currency you want to charge
you can refer to this page [0] for params specifications
Also, it looks like the currencyCode param is omitted in your screenshot. Is that intentional?
What should my merchant name be: BESTPLAY GAMES PTE. LTD. Sandbox?
It was not intentional.
merchant name can be any string you want
I'm just confirming that this is correct.
I would recommend following the code samples in our doc [0] as-is, so please define the currency using the currencyCode param
[0] https://docs.stripe.com/payments/accept-a-payment?platform=android#add-google-pay
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.