Tipsi-stripe: null is not an object (evaluating 'StripeModule.init') issue in iOS

Created on 21 Oct 2019  路  13Comments  路  Source: tipsi/tipsi-stripe

i am trying to integrate Stripe in react native . i have added tipsi stripe and run react-native link tipsi-stripe . it works well on Android but not for iOS

stripe.setOptions({
  publishableKey: 'PUBLISH_API_STRIPE_KEY',
});

onAndroid it works well but for iOS ,stripe is not initializing
Screen Shot 2019-10-21 at 2 09 16 PM

envoirment

 react": "16.8.3",
 react-native": "0.59.9",
 tipsi-stripe": "^7.5.1"
MacOS Catlina 10.15

Help will be appreciated

Thanks

wont-fix

Most helpful comment

$ cd ios

open podfile and add these lines

pod 'Stripe', '~> 14.0.0'

pod 'tipsi-stripe', :path => '../node_modules/tipsi-stripe'

save and

pod install
cd ..

yarn start -- --reset-cache
or
npm run start -- --reset-cache

All 13 comments

cd ios && pod install

$ cd ios

open podfile and add these lines

pod 'Stripe', '~> 14.0.0'

pod 'tipsi-stripe', :path => '../node_modules/tipsi-stripe'

save and

pod install
cd ..

yarn start -- --reset-cache
or
npm run start -- --reset-cache

Thanks @y7usuf, your comment fixed my build issues! How did you know to add the node module as a pod?

Actually, linking is not working for iOS somehow. I added it manually. Because dependency is missing.

Oh that's weird, manual linking wasn't working for me for some reason.

@y7usuf Thank you Yusuf :)

thanks @y7usuf

i'm having the same error in both platform .... any solution ??

Im having the same issue in Android

i'm having the same error in both platform .... any solution ??

environment

react": "16.13.1",
react-native": "0.63.4",
tipsi-stripe": "^9.0.0"
MacOS big sur 11.1

@NiravSony any luck?

i am trying to integrate Stripe in react native . i have added tipsi stripe and run react-native link tipsi-stripe . it works well on Android but not for iOS

stripe.setOptions({
  publishableKey: 'PUBLISH_API_STRIPE_KEY',
});

onAndroid it works well but for iOS ,stripe is not initializing
Screen Shot 2019-10-21 at 2 09 16 PM

envoirment

 react": "16.8.3",
 react-native": "0.59.9",
 tipsi-stripe": "^7.5.1"
MacOS Catlina 10.15

Help will be appreciated

Thanks

Nice larky

I just run react-native link tipsi-stripe and recompile the app

Was this page helpful?
0 / 5 - 0 ratings