undefined is not an object (evaluating 'TPSStripeManager.init')
See original GitHub issueThis is my test data
Stripe.init({
publishableKey: 'pk_test_xxxxxxxxxxxxxxxx',
merchantId: null,
});
Stripe.createTokenWithCard({
number: 4242424242424242,
expMonth: 10,
expYear: 19,
cvc: 345,
}).then((token) => {
console.log(token)
});
import Stripe from ‘tipsi-stripe’
I am having this issue in the iOS simulator.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How to solve this problem? TypeError: undefined is not an ...
TypeError: undefined is not an object (evaluating 'prevDeps.length') ... and you are not initializing it correctly with the data it expects.
Read more >[React Native] TypeError: undefined is not an object ...
Can you help me with this error? I am getting this error while trying to call sb.connect() TypeError: undefined is not an object...
Read more >TypeError: null is not an object (evaluating 'WebRTCModule ...
I'm building an React-native-app with openvidu, I've already went through the tutorial and even tested the demo, and made some changes to ...
Read more >How to Fix TypeError: Null is Not an Object in JavaScript
The JavaScript error TypeError: null is not an object occurs when a property is accessed or a method is called on a null...
Read more >LWC - TypeError: undefined is not an object (evaluating 'e ...
EDIT. There is actually another issue here, and it's a bit sneaky. When you write to this.value you are assigning that value an...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry, It was my first time with an iOS project using react native, the thing was that I needed to rebuild the project by running
react-native run-ios
after moving the folder TPSStripe within “Libraries”. After that, run XDE Expo and everything works as expected.I have already linked the dependencies but it still shows me the error, not sure what to do, besides, I have also added the TPSStripe folder into my XCode project (maybe in a wrong place) but I still have the issue.
It is after ejecting from CRNA using RN 0.47 and Expo 19