#dmitriy.skorik
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- dmitriy.skorik, 6 days ago, 7 messages
Now by default a subscription is created, which by default will be automatically renewed after a specified period of time
Hi, let me help you with this.
Session.subscription_data doesn't have it: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data
But you can update a newly created Subscription and set cancel_at_period_end to true: https://stripe.com/docs/api/subscriptions/update#update_subscription-cancel_at_period_end
You can listen to a customer.subscription.created webhook event and update it in the handler, if needed.
Okay, thank you 🙂
Happy to help.