#stack-subscription-unpaid
1 messages · Page 1 of 1 (latest)
Ideally, I would like it so that a subscription remains in the "past_due" state until all invoices have been paid off -- is that possible?
I'm sorry I'm struggling to follow what you are describing
Sorry, Ill try to describe better.
Basically what happened in the past was in September, a user signed up and used $100 of services. At the end of the month, they failed to pay the invoice. In October, while waiting for them to pay, they also consumed $25 worth of services. After about a week, and all the payment attempts failed, we kicked them out of our platform so their usage stopped. At the end of October, they also failed to pay the $25 invoice. Their subscription was left in the "past due" state however. At the end of November, it generated a $0 invoice, which was then successfully paid off, and the subscription transitioned to "active"
I was trying to re-create this behavior using test-clocks, but I have not been able to. Instead, the $0 invoice stays as draft, so the subscription stays as "past_due" -- im wondering which of these is expected?
Paying the most recent Invoice always causes the Subscription to go back to active assuming it's been finalized an paid
Are you using unpaid subscriptions specifically? Is that the setting you chose in your Dashboard? Or something else?
stack-subscription-unpaid
Yes, we have it set to go to unpaid. There is no way to require all invoices be paid off, instead of just the most recent?
As is, a user can leave their large older bill unpaid, and reactive by paying the newer, smaller bill
You as the developer control all of this really. You would track all the past Invoices and find the ones that are paid/unpaid and make sure they all get paid
the status on the Subscription is a bit orthogonal to that really
Ok gotcha, was hopeful there was a better way to keep them aligned, and to make the webhooks easier to use, but guess not
Thanks anyway!
yeah unfortunately there isn't. It's definitely something we've heard before where you'd almost want the latest Invoice to aggregate past Invoices amounts too to be paid all at once.
Yeah something like that would be awesome