#adityalystlocdeveloper_33428
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.
- adityalystlocdeveloper_33428, 14 hours ago, 8 messages
- adityalystlocdeveloper_33428, 14 hours ago, 7 messages
- adityalystlocdeveloper_33428, 18 hours ago, 43 messages
- adityalystlocdeveloper_33428, 1 day ago, 54 messages
- adityalystlocdeveloper_33428, 1 day ago, 13 messages
- adityalystlocdeveloper_33428, 2 days ago, 72 messages
and 5 more
When you update the subscription, you can only set billing_cycle_anchor to now or unchanged, you can't set other values. see https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_cycle_anchor
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Alternatively, you can set a trial to automatically set the anchor date to the end of the trial. https://stripe.com/docs/billing/subscriptions/billing-cycle?payment-ui=elements#changing
my case is not that take examaple 1 user activated subscription 14 days trial is added.Billing anchor is next month first .if end the trial it shoing new billing anchor end trial on 10 so it will be 10 to next month 10 i dont want that i want to trial end to next month first. Is it possible with same subscription or we have to create new subscription without trial
No possible, you should extend the trial to the date of your desired billing_anchor.
still this will not solve issue right
if my trial end today
so billing anchor should be according to trial end to that
what do you mean extend trial
I'd suggest you to read through the doc that I shared earlier and come back if you have a more specific question.
according to you which one is best for me.
- I have 14 days trial but i have limit in trial. So if exceeded that limit. I want make user plan upgrade. With day when user trial limit exceeded. To next month first .
- Can we do something with previous subscription i setted billing anchor their while crating subscrption with 14 days trial.
- Or create new subscription without trial
Sorry, I don't quite get your scenario. When the customer exceeds the limit and have him/her to upgrade the plan, why don't you upgrade and charge to the customer immediately, but waiting till next month
i have plan which is combination of two plan upfront and metered usages
so one thr first day i am taking charge when plan is activated
can we charge immidetly and make billing anchor always first day of month
Where is trial used in this workflow?
plan is activated->subscription is created with 14 days trial (setted billing anchor accordingly to every month 1st )-> user exceeded limit ->end the trial make use of active subscription->here cames issue deuto it affects my billing anchor
trial is at the string then plan activated user have to pay proarted flat rate->then next month first user have to pay last month usages + next month flat rate
One way I can think of is:
- Create subscription with trial flat plan + metered usage
- Upon upgrade, customer will be charged immediately
- After successful charge, then add trial to the subscription to reset the billing cycle anchor as described here: https://stripe.com/docs/billing/subscriptions/billing-cycle?payment-ui=elements#add-a-trial-to-change-the-billing-cycle
After Step 3, the subscription will be set to the billing cycle date you expected
ohh i see if i end the trial then subscription is active then i have to add trial till next month first correct
Correct
then if when trial end customer paid 99$ this will adjusted ?
What is the adjustment here? What do you expect it to adjust to?
see if we end trial when limit exceed customer instantly charge 99 $ for next 30 days , but if add trial again to next month first then customer is paid $99 already for next 30 days
can i send you a customer details by attching subscription to it
first you can see how my subscription cycle is working
cus_PBsOPYEr6EjvXl see this customer
see i have 99 dollar which is fixed which i am taking at start for 30 days then i am reporting usages for metered_item_id which amount will also added
I see! Stripe doesn't adjust $99 since the Step 3 is only updated after the change of plan. One solution will be:
- Create subscription with trial flat plan + metered usage
- Upon upgrade, customer will be charged immediately
- After successful charge, then add trial to the subscription to reset the billing cycle anchor as described here: https://stripe.com/docs/billing/subscriptions/billing-cycle?payment-ui=elements#add-a-trial-to-change-the-billing-cycle
- In the next billing cycle, i.e. first of the month, apply discount of unused period on the invoice so that customer will not pay for those days aren't used in the previous cycle
Metered usage is not prorated as discussed earlier, so we will only look at the flat price plan here
we have to add manual logic for applay discount?
what if user click on upgrade then will cancel previous subscription and create new subscription without trial and set billing anchor to next month first
this will better approch to avoid manul calculation?
This will work too! I'd recommend giving a try in test mode