#henriquenascimento7167
1 messages · Page 1 of 1 (latest)
Hi one moment
That's a pretty recent version of the library, so I think it should work unless there was some bug in that release
Do you get an error in your code?
Unfortunately, it is not returning any error logs... and I can even process the payment correctly using the card data manually, but the Google Pay button still does not appear.
According to the documentation on the website, the import is from useStripe(), but I saw that in the video on the Stripe YouTube channel: https://www.youtube.com/watch?v=O6TWFuZw2uk&t=541s
usePayamentSheet is imported... should I use this approach for the Google Pay button to appear in my app? Thank you.
Stripe's React Native SDK provides a convenient API for allow developers to accept payments natively in their applications in a performant way.
In this video, Charles Cruzan and Cecil Phillip discuss some of the capabilities of the SDK and show us how to get started. They go over topics such as getting setup, invoking the paymentsheet, adding d...
Could just be a difference in versions
I'm not that familiar with react native, so let me see if I can get a colleague to assist you
One moment
👋 Are you using expo OR are you implementing the RN SDK natively
also, are you trying to see it in testmode? If so,
you'd need to set
testEnv: true, // use test environment
},```
@lean plover
just want to make sure you saw my messages
Ok friend. Yes, I'm using RN natively.
Gotcha and are you seeing issues in test mode or live mode?
If I'm pointing directly to the production server, can I remove the TestEnv instruction?
I am not running the test mode on the platform. I am directly observing my Android emulator via Android Studio.
You cant really test google pay in live mode on an emulator
See
https://stripe.com/docs/google-pay?platform=react-native#going-live-react-native
Ah... I think I understand now. So I have to enable the test mode on the Stripe website to be able to test the Google Pay function on my emulator, right? And to go to production, only the settings in the AndroidManifest.xml and build.gradle files will be enough to work?
I have a doubt if I added the instruction in the AndroidManifest.xml correctly, because there are several files with that name in my application. I did it in the AndroidManifest.xml that is in android/app/src/main.
No, to use Google Pay in live mode you also need to follow the steps here
https://stripe.com/docs/google-pay?platform=react-native#going-live-react-native
I have to enable the test mode on the Stripe website to be able to test the Google Pay function on my emulator, right?
As I mentioned earlier, you can't really test Google Pay on an emulator even in test mode since you can't configure a real wallet app. You likely want to test on a real device instead
Ok my friend, thanks for the clear instructions... I'll try here and if I have any problems, I'll get in touch.