#b33fb0n3
1 messages ยท Page 1 of 1 (latest)
๐ how may I help?
hey @t... I would like to know, when the event customer.subscription.updated is called with the status unpaid or canceled ?
you can read about these status enums here https://stripe.com/docs/api/subscriptions/object#subscription_object-status
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I know.
the subscription will become canceled or unpaid (depending on your subscriptions settings).
But when the event customer.subscription.updated is called with the status unpaid or canceled ?
when the invoice has been retried and haven't been able to be paid
based on the settings under https://dashboard.stripe.com/settings/billing/automatic#:~:text=Manage failed payments
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I won't send invoices, because it's: collection_method=charge_automatically
When canceled ?
a failed invoice (even for charge_automatically) would get retried based on the settings on the page I sent you
when all retries have failed
you will get the event
with either canceled or unpaid
also depending on the settings you've chosen
ah got it. Will the customer.subscription.updated event also be called, when the customer cancels the subscription?
no in that case you will get this event https://stripe.com/docs/api/events/types#event_types-customer.subscription.deleted
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.