#kiranm
1 messages · Page 1 of 1 (latest)
Sure do Alex, anyhelp will be helpful.
@thorny flax could you explain a bit more on when a subscription gets cancelled as expected?
when is a subscription cancelled as expected?
lets say a renewal failure occurs, during which we get this deleted event
or lets say stripe couldn't recover the amount from customer to be able to continue subscription i.e renewal failure
or lets say a user has disabled auto renewal, we get a deleted event at the end of subscription.
there isn't a parameter to indicate this unfortunately
the workarounds which i can think of is to 1) check the https://stripe.com/docs/api/invoices/object#invoice_object-attempt_count to see if it matches the number of attempts you've set before cancelling the subscription and 2) check if this parameter was set to true : https://stripe.com/docs/api/subscriptions/object#subscription_object-cancel_at_period_end and if it ended exactly at the end of that particular billing cycle period
lemme have a look at this, thanks mate
hmm, i think this wouldn't suit our case,... we only get deleted event when subscription cancelled from dashboard, which doesn't have any invoice_object
yeah, so the complication here is that you would need to make an API call to check the most recent invoice too
if that doesn't work for you, then i'm afraid there's really no way to verify other than via the event on the Dashboard, which you can see if the source was automatic or api
is there no way we could see this automatic/api programatically?
lets say i give cus_id / event_id ?
not at all i'm afraid
arghhhh, okie... thank you though for the help,... Have a great day🥳
i'll pass on the feedback for this feature, you aren't the first person to ask for this 😅
😩 🤣 🤣