#kyomen_reactnative-googlepay
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/1228407924674527252
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
kyomen_reactnative-googlepay
@fresh edge Step 1: load https://docs.stripe.com/stripe-js/elements/payment-request-button in a browser on that device and let me know if you see GooglePay or Link?
yes that to me means your device does not support Google Pay properly or isn't really configured the right way at the moment
This device is quite new, as well as the iPhone I used to test it, is there some requirements list for using it?
Oh, I think that it's just my default browser (Firefox). On Chrome it shows the button
How can this affect my app code?
Chrome -> Google Pay
Safari -> Apple Pay
Firefox does not support any of this.
Can you share an exact screenshot of what you see on that page?
I don't have access to AndroidManifest.xml nor the build.gradle files because I'm using expo managed workflow. I'm following the last step tho
Are you using Expo Go?
No, development build
Is it necessary to rebuild once I wrote the code for Google Pay? Since there wasn't a new installation (@stripe/stripe-react-native was already in the project), I assumed no new steps were needed
someone on my team is investigating, I'll update you once I know more
Hello ๐ @fresh edge
You've made the app.json modification as outlined here correct?
https://github.com/stripe/stripe-react-native?tab=readme-ov-file#expo
By that I mean adding following to your app.json:
...
"plugins": [
[
"@stripe/stripe-react-native",
{
"merchantIdentifier": string | string [],
"enableGooglePay": boolean
}
]
],
}```
You don't need merchantIdentifier for Google Pay but you do need the enableGooglePay
Hello hanzo! I added it yesterday. Actually, my PM said now that the button showed up on her iPhone, but for that I needed to set everything to prod (testEnv to false, publishableKey to prod...) I don't know if I'm missing something, but shoudn't I be able to see the btn in test mode as well?
You should be able to see it in test mode too yes unless there's some sort of misconfiguration.
I'll ask for her to test it this way (she said it was okay to refund the order later) and if the payment fails I'll let you know
and just to make sure, when you test you're generating a development build correct?
https://docs.expo.dev/develop/development-builds/create-a-build/
Yes I'm using one, but I'll generate a newer one on the upcoming tests