#viethoang-ReactNative

1 messages · Page 1 of 1 (latest)

civic sorrel
hexed otter
#

i use npm stripe-react-native. when i use initStripe or warp my code with StripeProvider then have error

shadow yacht
#

Hi @hexed otter Let me take a look

#

Are you using both initStripe and StripeProvider ?

hexed otter
#

No, I am. I just use initStripe or StripeProvider

shadow yacht
#

OK, can you double check if the publishableKey that you passed to initStripe and make sure its value is valid?

hexed otter
#

this publishableKey work in stripe for web

shadow yacht
#

Do you fetch the publishableKey from your server, or is the key hardcoded in your React Native app?

hexed otter
#

I hardcoded the publishableKey value

shadow yacht
#

Ok. can you send me the full code?

hexed otter
shadow yacht
#

It seems like the NativeStripeSdk is resolved to null.

#

Can you try rebuild the whole and project?

#

Also send me the package.json file

hexed otter
shadow yacht