#EmilsL-checkout-autocancel
1 messages · Page 1 of 1 (latest)
Unfortunately there is not a way to set this when creating the Checkout Session
And this is for a monthly subscription I assume?
You can set this on the subscription as cancel_at after it has been created but unfortunately it looks like this can't be set on Checkout
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So I will set webhook to check when new subscription is created and based months users selected (1,3,6,12) I would programmaticaly send update to his subscription with cancels_at: [months from now]
so that this will reflect on costumer portal that his subscription is no prepetual and will end at some date in future
Correct. That makes sense as a way to achieve that behavior