invertase / stripe-firebase-extensions

Repository of Firebase Extensions built by Stripe.
https://firebase.google.com/products/extensions
Apache License 2.0
424 stars 161 forks source link

Multiple Prices Causes "The price specified is inactive. This field only accepts active prices" error #560

Open jackstruck opened 10 months ago

jackstruck commented 10 months ago

Bug report

Describe the bug

When multiple prices are added to a subscription plan (product), multiple documents are synced to the firestore database under the "prices" collection. If any of the prices are "archived" within stripe, the document updates to include an "active": false key-pair but it seems like during checkout the plan still attempts to reference the archived price. It fails with the "An error occured: The price specified is inactive. This field only accepts active prices." Which also misspells "occurred".

To Reproduce

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

  1. Add multiple prices to a product
  2. Archive some of the products
  3. Try to checkout
  4. See error in console: "An error occured: The price specified is inactive. This field only accepts active prices."

Expected behavior

The user should be able to checkout

Screenshots

N/A

System information

N/A

Additional context

N/A

AnonymousSausage77 commented 4 weeks ago

Is there any word on this? I've just run into it.