I'm not sure if this a bug or a feature 😄
So when a user's subscription payment is 'overdue' i.e (payment failed, card declined on subscription update) it seems that the stripeRole claims is removed.
update the payment method so that the payment fails due to insufficient funds
the subscription status is then set to 'Overdue' by stripe
Then the stripeRole is removed
Expected behavior
I expect that that the stripeRole is only removed once the subscription status is 'Canceled '
Which means during the 'overdue' period the user has a grace period until the issue is resolved with the payments or the subscription is cancelled
Bug report
firestore-stripe-payments
]Describe the bug
I'm not sure if this a bug or a feature 😄 So when a user's subscription payment is 'overdue' i.e (payment failed, card declined on subscription update) it seems that the stripeRole claims is removed.
I think its because of this line https://github.com/invertase/stripe-firebase-extensions/blob/107031923116d776ace0d33011a28d29e48fe827/firestore-stripe-payments/functions/src/index.ts#L562 it should probably also include 'overdue' 🤔 or something along that line
To Reproduce
Expected behavior
I expect that that the stripeRole is only removed once the subscription status is 'Canceled ' Which means during the 'overdue' period the user has a grace period until the issue is resolved with the payments or the subscription is cancelled