#BugKiller
1 messages · Page 1 of 1 (latest)
Hi, can you reword this question please?
for example, user made subscription (monthly) on 4/5 , and he cancelled on 4/8
we need to give user access until 5/5 because user's subscriptoin cancelled
but user paid for 1 month
I hope you got the point.
what I want to know
You can set the cancel date when updating a subscription: https://stripe.com/docs/api/subscriptions/update#update_subscription-cancel_at. Is your intent that when your customer cancels on 4/8, you'd like prorate and calculate the amount that was used? Or something else?
Here is a our documentation as well, https://stripe.com/docs/billing/subscriptions/cancel.
From the above, it more sounds like you want the subscription, https://stripe.com/docs/api/subscriptions/update#update_subscription-cancel_at_period_end to end at the current period. In this case, you'd want to pass cancel_at_period_end and set it to true.