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

[FAQ] Products and prices not syncing with Cloud Firestore #35

Closed
VinLucero opened this issue Aug 7, 2020 · 5 comments
Closed

[FAQ] Products and prices not syncing with Cloud Firestore #35

VinLucero opened this issue Aug 7, 2020 · 5 comments
Labels
documentation Improvements or additions to documentation

Comments

@VinLucero
Copy link

Bug report

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

Describe the bug

FireStore collections not being created / updated upon reconfiguring customers / products in Extension config.

To Reproduce

When you are in the Firebase Dev Console and click on Extensions > Stripe Extension Manage Button > Extension Configuration

I deleted my previous collections and renamed them as follows in bold:

Products and pricing plans collection
Description: What is the path to the Cloud Firestore collection where the extension should store Stripe pricing plans?

products

Customer details and subscriptions collection
Description: What is the path to the Cloud Firestore collection where the extension should store Stripe customer details?

customers

Expected behavior

I would expect the FireStore collections to be created and/or updated upon clicking Save and reconfiguration completes.

Screenshots

If applicable, add screenshots to help explain your problem.

System information

  • OS: [e.g. macOS, Windows]
  • Browser (if applies) [e.g. Chrome, Safari]

Additional context

Add any other context about the problem here.

@VinLucero
Copy link
Author

Also seeing this while retrying:

failed to startDeploymentManagerWork for instance id: firestore-stripe-subscriptions, parentId: clowte-prototype: error updating deployment for "projects/clowte-prototype/global/deployments/firestore-stripe-subscriptions" with delete policy "ABANDON": DM HTTP 404 error. Body: { "error": { "code": 404, "message": "The object 'projects/clowte-prototype/global/deployments/firebase-ext-firestore-stripe-subscriptions-t1zkfn' is not found.", "errors": [ { "message": "The object 'projects/clowte-prototype/global/deployments/firebase-ext-firestore-stripe-subscriptions-t1zkfn' is not found.", "domain": "global", "reason": "notFound" } ] } }

@VinLucero
Copy link
Author

I think that above error is just because I clicked cancel or tried reconfiguring too many times too quickly.

@thorsten-stripe
Copy link
Contributor

@VinLucero the way product and pricing information is entered into your Firestore is via webhook events that are sent from Stripe. These events are only emitted when you either create a product/price or when you update it (e.g. update the name or description).

So if you delete the existing product collection and change the collection path in the extension, you will need to retrigger these events. One way to do this is by archiving the product/price and then unarchiving it or alternative updating the name or description.

image
image

I'm leaving this open in case others run into this and to track that we should add this to an FAQ somewhere.

@thorsten-stripe thorsten-stripe added the documentation Improvements or additions to documentation label Aug 11, 2020
@thorsten-stripe thorsten-stripe changed the title FireStore collections not being created / updated upon reconfiguring customers / products in Extension config. [FAQ] Products and prices not syncing with Cloud Firestore Aug 31, 2020
@dackers86
Copy link
Member

Closing. Issue appears to have been resolved.

@dackers86
Copy link
Member

@VinLucero Can you confirm this is no longer an issue?

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

No branches or pull requests

3 participants