#spag7_best-practices
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1435532058536706089
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi! Looking into your question!
Hi, the last part was cut..
Where should I intervene** in the flow (via the TypeScript SDK) to enforce that today’s rentals also end at midnight, and what parameters should I set?**
To confirm the issue, you need the subscription to be from 00:00 to 00:00. But face an issue when the subscription is created and starts on the same day but at a later time like 15:00. Is this correct?
yes, i need the first day of a subscription like fully charged but only run until 00:00 , independently of the starting time at the first day. For example 15:00 -> 00:00 -> but charge 24h, then run following periods always 00:00 -> 00:00
For the start date/time you can consider using backdate_start_date (https://docs.stripe.com/api/subscriptions/create#create_subscription-backdate_start_date) to update the start date and use billing_cycle_anchor for the end date/time (https://docs.stripe.com/api/subscriptions/create#create_subscription-billing_cycle_anchor)
okay this property seems not to be available while creating a subscription via hosted checkout, should it ?