#BugKiller
1 messages · Page 1 of 1 (latest)
Hi there!
Do you have an example subscription ID I can look at? I believe this is correct, and the subscription you're looking at is likely scheduled to end at the end of the current billing cycle
no example
but what I'm saying is.
user made subscription at 2023/2/3 and cancelled 2023/4/10
he made yearly subscription
then I want to consider him as that subscription until 2024/2/2
even if he cancelled, he paid for 1 year. so..
I'd like to know this situation
if user made subscripion at 2021/2/3, and cancelled at 2021 4/ 10
Got it. In that case, the subscription should be updated with cancel_at_period_end. The subscription will remain active until the end of the current billing period, and will then be transitioned to canceled and no new invoices will be generated: https://stripe.com/docs/api/subscriptions/update#update_subscription-cancel_at_period_end
then even if I check that subscription now current_period_end should be 2022/2/2 ( or 2/3). not 20234/2/2
right?
??
subscription is already cancelled
I'm asking about cancelled subscription
when I check cancelled subscription, how to know if it's in billing period. (I mean he's still in last payment's period)
did you get my point?
if I have a cancelled subscription in stripe, how to check if that subscription is billing period or not.
if user made yearly subscription and cancelled. we still need to give them 1 year access of our service because he paid for 1 year
The canceled subscription's current_period_end will remain unchanged so, if the customer paid their latest invoice, you could technically still look at this to confirm they paid for access up until current_period_end
Still, this is pretty messy. I'd recommend using cancel_at_period_end instead and using the subscription's status to determine whether or not a customer should keep access to the service