#BugKiller

1 messages · Page 1 of 1 (latest)

barren hullBOT
bright cave
#

Hi there!

rancid sonnet
#

yes

#

how are you? I'm asking about stripe.Subscription.retreive result

bright cave
#

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

rancid sonnet
#

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

bright cave
rancid sonnet
#

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?

bright cave
#

not quite

#

can you restate your question in 1-2 sentences instead?

rancid sonnet
#

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

bright cave
#

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