#ravelens
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.
hi there!
Hi
sure you can use free trial with Subscription Schedules
Erm what do you mean ?
Let me explain current condition first
So some of subscription schedules, have their trials, and some are directly activated (But used as subscription with price 0)
And what i want to do is :
I want to add 1 month / 30 days for each subscription if some condtion is achieved
Is it possible to add it ?
Should i add it on current subscription / subscription schedules object ?
👋 taking over for my colleague. Let me catch up.
give me a few minutes please, and I will be shortly with you
if a subscription is managed by a schedule you need to update the phases of the schedule rather than touching the underlying subscription
you can change the phases of the subscription schedule https://docs.stripe.com/api/subscription_schedules/update
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Which properties should i update ?
phases ?
How to check if there's trials_date or ends_date should be added ?
What i want to do is :
When the subscription is on trials, i added the trials date (+ 30 days)
But if there's ends_date (no trials_date) i will add the ends_date (+30 days)
I haven't tested that but you need to add 30 days to both trial_end and end_date of a phase https://docs.stripe.com/api/subscription_schedules/update#update_subscription_schedule-phases-trial_end
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 need to test this out
you can use test clocks https://docs.stripe.com/billing/testing/test-clocks to help you simulate a timelapsed scenario