#carbonara_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/1379388735665475584
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, I am managing the implementation of Stripe on behalf of my company. I’m opening this ticket about Best Practices because I’m unsure how to implement a specific workflow related to subscriptions. Here is the current flow I’m working on:
- The user registers by entering their personal information.
- Based on this data, a personalized plan is created.
- Upon subscription, the user gets a 14-day paid trial.
- After the trial ends, the actual 28-day subscription period begins.
- During the subscription, the user can pause their plan.
- During the subscription, the user can modify their plan, which may change the price.
- During the subscription, the user can apply discount codes for the following month.
After consulting ChatGPT and Stripe AI, I received the following suggestions:
- Create a Subscription with a 14-day trial and add an Invoice Item.
- Create a 14-day Subscription, link it to a Subscription Schedule, and update it according to plan changes.
- Create an invoice covering the initial 14 days, then start a Subscription Schedule after those 14 days.
I would appreciate your advice, as I would like to understand what Stripe considers the best solution to implement a Subscription flow that covers all these requirements.
Which part specifically are you struggling with? I don't understand where the 'paid trial' part comes in from what you described
Overall everything you describe is possible, did you try just playing with the API?
We need to have a paid trial, but stripe doesn't support it. I know it's possible to implement our workflow, I just want know the Best Practices since I found 3 different solutions
The best way would be to add an one-time invoice item on the initial invoice via this param: https://docs.stripe.com/api/subscriptions/create#create_subscription-add_invoice_items
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You can use that alongside trial_* parameters to get what you want
I'm currently using Stripe PHP SDK and Stripe Webhooks to track changes. I started by adding an invoice to a subscription, then I found Subscription Schedule and wanted to know if it's better
ok, but can I change the price of the subscription by updating it?
Based on your requirements I wouldn't recommend a schedule for your use case, no. It's not necessary
Perfect, you saved me, really
Sure