Skip to content

Unable to call createCheckoutSession: FirebaseError: Expected first argument to collection() to be a CollectionReference #563

@logesh2496

Description

@logesh2496

Bug report

  • Extension name: 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

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions