#henriquenascimento7167

1 messages · Page 1 of 1 (latest)

dim schoonerBOT
hearty finch
#

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?

lean plover
# hearty finch That's a pretty recent version of the library, so I think it should work unless ...

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...

â–¶ Play video
hearty finch
#

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

still sorrel
#

👋 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

lean plover
#

Ok friend. Yes, I'm using RN natively.

still sorrel
#

Gotcha and are you seeing issues in test mode or live mode?

lean plover
#

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.

lean plover
# still sorrel You cant really test google pay in live mode on an emulator See https://stripe....

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.

still sorrel
#

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

lean plover