#globulen_firebase
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1281319801121276098
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐
We can provide specific guidance to specific questions about integrating with Stripe APIs but we do not have firebase-specific knowledge here.
ok i thought adding firebase into the question would help with context
It does, but that also means we won't be able to help with firebase specific issues ๐
that makes sense
let me see then
do you know what would make the stripe api in firebase make the web app not open at all
Oh I can chat here too
nvm they got it
To be clear, our issue is with using Stripe API within an Expo/Firebase project
That further suggests we won't be able to offer any help here.
I can suggest how you format your API requests to Stripe APIs but we have no knowledge of building firebase web apps
Well the issue is with the API itself
Hi there ๐ jumping in as my teammate needed to step away, can you tell me more about that issue? What requests are you making, what are you expecting to see, what are you seeing instead?
One second I'll grab the code and stuffs in a bit
globulen_firebase
Currently in our codebase;
Even doing
const { initPaymentSheet, presentPaymentSheet } = useStripe();
Makes the site completely unable to render
What errors do you see when the site won't render? Anything thrown to the browser console?
Stips out
AppEntry.bundle:1
Failed to load resource: the server responded with a status of 500 (Internal Server Error)Understand this errorlocalhost/:1 Refused to execute script from 'http://localhost:8081/node_modules/expo/AppEntry.bundle?platform=web&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.routerRoot=app' because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled.
and I get
Web Bundling failed 704ms node_modules/expo/AppEntry.js (1 module)
Unable to resolve "../../Utilities/Platform" from "node_modules/react-native/Libraries/Components/TextInput/TextInputState.js"
In terminal
Doing some deep diving into the error it seems to be some kind of version incompatability going on
Hm, offhand I don't recognize those errors. I don't really know much about the Firebase framework, which of our libraries are you importing into your project?
stripe-react-native
I've also tried using @stripe/firestore-stripe-payments
That later one is no longer maintained by Stripe, it's maintained by invertase now. I'd suggest opening an issue against their repo if you're running into problems with that package:
https://github.com/invertase/stripe-firebase-extensions/issues
Looking at one of the errors you shared, are you also using Expo for this project? If so, what Expo SDK are you using?
AH!
That's probably it
I am currently using the version of the extention provided by stripe