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

Webhook handler for Stripe event failed: User not found! #584

Open
bogdanciuca opened this issue Nov 22, 2023 · 6 comments
Open

Webhook handler for Stripe event failed: User not found! #584

bogdanciuca opened this issue Nov 22, 2023 · 6 comments
Labels

Comments

@bogdanciuca
Copy link

Bug report

  • Extension name: [e.g. firestore-stripe-payments]

Describe the bug

First of all thanks for the extension! I'm having some trouble persisting successful payments in the database. I have enabled user sync, so I was expecting the extension to "create users" (or at least some collection path) in Firestore after a payment is complete.

Logs:

Webhook handler for  Stripe event [evt_<ID>] of type [checkout.session.completed] failed: User not found!

To Reproduce

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

  1. Complete a payment
  2. Check function logs in GCP
  3. See error

Expected behavior

The extension should store payments, maybe under an email instead of the userID, when this is not available.

Additional context

I believe this might happen because I don't require Firebase Auth for one time payments. Not sure if this is a bug or a limitation of this extension.

@jherbkersman
Copy link

We are getting the same issue @asd1495

@asd1495
Copy link

asd1495 commented Nov 28, 2023

Gotcha! checking possible solutions @jherbkersman

@kazemsami
Copy link

any updates on this?

@jherbkersman
Copy link

jherbkersman commented Dec 29, 2023 via email

@bogdanciuca
Copy link
Author

@asd1495 Happy New Year! Did you get a chance to review this and think of a solution? I'm currently using another webhook for this, as a workaround.

@dosstx
Copy link

dosstx commented Feb 6, 2024

OK, so as I understand, if set to ‘Sync’, the extension listens to new users signing up and then automatically creates a Stripe customer object and a customer record in your Cloud Firestore. If set to ‘Do not sync’ (default), the extension will create the customer object “on the fly” with the first checkout session creation.

It seems that the "Do Not Sync" step is where the error starts. Correct? If so, does using the Sync step work?

I am new to this extension and got as far as this and now I'm stuck. I'll try to reconfigure the extension to use Sync step instead of Do Not Sync step.....unless someone has a better suggestion...

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

No branches or pull requests

6 participants