#muhammad-subscriptions
1 messages · Page 1 of 1 (latest)
Hi! You could listen to the webhook event customer.subscription.updated. And when the subscription status becomes past_due, then cancel the subscription with https://stripe.com/docs/api/subscriptions/cancel
we do that already but we want to create a manual invoice, if that is not paid, cancel the subscription, is that possible?
What do you mean by "create a manual invoice"? Is this a regular invoice (not linked to a subscription)?
customer has a subscription, fails to pay (automatic renewal)
support service creates a manual invoice for customer to pay, with 90days due time
customer doesnt pay, we need to cancel subscription automatically
Got it! Give me a few minutes to look into this.
Sorry for the delay! After discussing with a colleague, it seems there's no easy way to do that with Stripe. Instead you should build that logic on your end:
- Store the
due_dateof the invoice on your end, and wait - Then, when the current date ==
due_date, retrieve the invoice and check itsstatus. - If the
statusis notpaid, then cancel the subscription.
thank you very much @empty saddle for looking into it and for your reply
@empty saddle
- do manual invoice have smart retries?
- when a manual invoice is past due and not paid, does it trigger an
invoice.updatedevent?
- they do if you have Invoicing Plus on your account, it's an extra cost
- I don't think so