Skip to content
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

Subscriptions sub collection not being created in Firebase #630

Open
JacksonRossiDev opened this issue Jun 8, 2024 · 2 comments
Open

Subscriptions sub collection not being created in Firebase #630

JacksonRossiDev opened this issue Jun 8, 2024 · 2 comments

Comments

@JacksonRossiDev
Copy link

Bug report

firestore-stripe-payments

Describe the bug

When a user successfully pays for their subscription, only a 'checkout_sessions' subcollection is created in Firestore. There is supposed to be a 'subscriptions' and a 'payments' subcollection that is created when a user succesfully pays for a subscription. I am not the only user experiencing this issue.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Follow instructions provided
  2. Log in and pay for subscription
  3. Check Firestore
Screenshot 2024-06-08 at 4 02 23 PM
@maderesponsively
Copy link

maderesponsively commented Jun 15, 2024

Hi,

I experienced the same issue with the firestore-stripe-payments setup. Here's how I resolved it:

  1. Check Stripe Webhook Posts: I started by examining the Stripe webhook posts to understand the issue better. In my case, I found an error (see attached image for reference).
    Screenshot 2024-06-15 at 14 59 06

  2. Review Cloud Function Logs: Next, I reviewed the Cloud Function logs to pinpoint the exact problem. The logs indicated there was an issue with the Stripe key.

Screenshot 2024-06-15 at 14 59 27

To resolve the problem, I deleted the existing Stripe key and created a new one. After updating my configuration with the new Stripe key, the issue was fixed and the 'subscriptions' and 'payments' subcollections were created successfully when a user paid for their subscription.

I recommend following these steps:

  • Check your Stripe webhook posts for any errors.
  • Review the Cloud Function logs to see if there are any issues mentioned.

Please let me know what errors you find, and I'll be happy to help diagnose and resolve them.

@rob-richards
Copy link

Thanks @maderesponsively! That fixed it for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants