#vamsi_api
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/1475661804297392138
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Context: I have a subscription managed by a SubscriptionSchedule with two phases:
- Phase 1: Free trial
- Phase 2: Yearly paid subscription (auto-renews annually)
The subscription is currently in Phase 2 (active yearly billing).
What I want to do: Offer a paid extension of a few months. I charge the customer manually via InvoiceItem + Invoice. After the extension period ends, the subscription should resume yearly auto-renewal from the new end date.
Example: - Yearly renewal date: April 4, 2027
- User extends by 3 months โ we charge manually for 3 months
- No Stripe auto-charge should fire on April 4, 2027
- Next Stripe yearly charge fires: July 4, 2027
- Then July 4, 2028, July 4, 2029... and so on
Questions:
- What is the correct way to modify the SubscriptionSchedule phases to achieve this โ specifically to suppress the April 4, 2027 auto-charge and restart yearly billing from July 4, 2027?
- Is inserting a trial: true phase from April 4 โ July 4 the right approach, and will it correctly suppress the yearly invoice?
- When providing phases to SubscriptionSchedule.modify, do I need to include the current active phase (start_date is in the past) or only future phases?
- Is there a simpler recommended pattern for a schedule-managed yearly subscription with a manual paid extension?
are you there ?
Yeah reading