#ingelran-Checkout-subscription-dates
1 messages · Page 1 of 1 (latest)
ok thank you, so i have to catch the webhook "subscript-created" and update this field with the update function
?
What field specifically are you looking to set for "date_stop"?
current_period_start and current_period_end of the subscription object
It looks like I may have been thinking of this a bit wrong. Can you explain a bit what you are trying to do here?
I am assuming create a subscription with Checkout that starts some time in the future?
Yes i am studiying the following case :
- the renewal of subscription was cancelled by the customer.
But he has still "active premium" access
but
at the middle of the month .... he suddently want to subscribe for an other month
a new subscription object will be created
but should start AFTER the end of the current one
So there are two ways to accomplish this. The first is that you could stop the first subscription from cancelling and create a subscription schedule so that it downgrades at the end of the month https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#downgrading-subscriptions
Otherwise with Checkout you can set the trial_end to the end of their current subscription period. They will have two subscriptions temporarily but one will not be charging.
thank you