When I try to set up Stripe for my app, I'm getting the following error:
undefined is not a function (evaluating stripe module.init(options)
I believe it is a linking issue, but when I try to run react-native link tipsi-stripe, I get a SPAWN UNKNOWN error. I am developing this app on Expo but running it on an Android device, so I followed the instructions here https://tipsi.github.io/tipsi-stripe/docs/linking.html for manually linking for Android. I'm using a Windows computer and so don't have Xcode.
Also, I've read that you need to detach the project from Expo in order to utilize Apple Pay, but at this point we are just trying to do payments through cards and would love to not have to detach. If it is not possible to use tipsi-stripe with Expo without having to detach, I'd love to hear any alternatives!
Please let me know if you want any more information about the issue!
tipsi-stripe version: 5.4.0tipsi-stripe version where the issue was not reproduced (if applicable): com.google.firebase:firebase-core version: com.google.android.gms:play-services-base version: For Android, please provide the following sections from android/app/build.gradle:

stripe.setOptions({
publishableKey: 'pk_test_7Hatfb7bdJuKHTHwdusk2R1L',
androidPayMode: 'test',
});
I have same issue with IOS
Me too - I have been getting this issue on IOS. Can anybody shed any light on it?
@ianOXO Hi! Expo has its own fork of tipsi-stripe to support payments. We do not support them.
But this error means only that you do not have correctly linked tipsi-stripe. That`s it.
Also, on windows, I strongly recommend you do link manually.
@shamanking @peterheard01 are you using Expo too?
@ianOXO I had the same issue.
I fixed adding Stripe in my Podfile pod 'Stripe', '~> 11.2.0', then just run pod install and my app is running without problems.
Useful links
installation
podfile
----TypeError: undefines is not an object (evaluating 'StripeModule.init') ---- im getting the same error in IOS ... using expo-payments-stripe "version": "8.1.0" ...
in Android it works ....
Hey man @LivanDiaz i have the same issue now, have you solutions for that?
@MRHuezo Let me ask you something ... are you using (Expo Payments Stripe) or (Tipsi Stripe)?
@LivanDiaz I麓m using Expo Payments Stripe
@MRHuezo Hi ... I was having the same problem ... what I did was create a little new project where I only use (expo-payments-stripe) ...
Once you create the project, run it with Xcode until it compiles successfully and runs in the simulator. (In the version of Xcode that I am using, it only runs correctly in the iphone 8 simulator in the others it gives me problems) ... then from a code editor install (expo-payments-stripe) and follow the steps in the documentation of Expo.io or help from the (tipsi-stripe (automatic)). then you stop the compilation in Xcode and run it again ... it should work for you ... that problem is due to the link of the modules that it seems that only Xcode is capable of doing it in the case of IOS. Try it and let me know if it worked for you.
note: it only works for me if I run it from Xcode ... if it works differently for someone ... let me know ...
Most helpful comment
I have same issue with IOS