-
Notifications
You must be signed in to change notification settings - Fork 191
Unable to call createCheckoutSession: FirebaseError: Expected first argument to collection() to be a CollectionReference #563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What is your version of Btw, are there plans to update the |
Yes, My version is v10.0.0. |
Yes, using v9 seems to do the trick for me. However, if I use v9, there is another issue that appears which is #509 I describe the workaround I've found that works at the moment. Though I hope the extension SDK will soon be updated to firebase v10. |
@logesh2496 Actually, I was just able to solve the issue in a better way using this thread #304 Here are the relevant parts of my
Then |
gotcha, thanks @antopolskiy your issue explains it better, so closing this one. |
BTW, this is another workaround I was using:
|
This PR helped me #645 |
In my case, dependencies version may affect this.
And it worked. "dependencies": {
"@invertase/firestore-stripe-payments": "^0.0.7",
"firebase": "^9.23.0",
},
"overrides": {
"@firebase/app": "^0.11.4",
"@firebase/auth": "^1.10.0",
"@firebase/firestore": "^4.7.10"
}, |
Bug report
firestore-stripe-payments
Describe the bug
Tried to call the function
await createCheckoutSession(payments, { price: priceId, // One-time price created in Stripe });
after setting up the firebase extension. Customer and Product collections are properly set and working as expected except the createCheckSession.Encountered the error:
Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore
To Reproduce
Simply call the createCheckoutSession by following the "How this extension works" documentation from firebase extensions
Expected behavior
I should be able to get the session url from the method
Screenshots
The text was updated successfully, but these errors were encountered: