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:
Add multiple prices to a product
Archive some of the products
Try to checkout
See error in console: "An error occured: The price specified is inactive. This field only accepts active prices."
Bug report
firestore-stripe-payments
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:
Expected behavior
The user should be able to checkout
Screenshots
N/A
System information
N/A
Additional context
N/A