#chaimat
1 messages · Page 1 of 1 (latest)
Depends, generally customer.subscription.deleted
okay, what other events are possible for subscription cancellation? as in what does it depend on?
If you set cancel_at_period_end for example, customer.subscription.updated will first fire to reflect that and then .deleted will only fire once the cancellation happens
But customer.subscription.deleted happens on the actual cancellation
Okay, Thanks
Also wanted to confirm that lets say a user has bought monthly subscription, and the subscription of first month is successful, now when does strip attempt to charge the user's card for the next month's payment by default?
1 month later, you can check the current_period_end timestamp: https://stripe.com/docs/api/subscriptions/object#subscription_object-current_period_end
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.