#Eranga
1 messages ยท Page 1 of 1 (latest)
Stripe supports trial period for a subscription, so that you don't have to use coupon: https://stripe.com/docs/billing/subscriptions/trials
Actually, we are using the trial already. Let me test something quick and I'll get back here
Sure!
Hello again, when a subscription is on trial, if I change the recurring interval from month to year , would the subscription trial get finished immediately and a new billing cycle will start
The customer would lose whatever time they had with the trial and will have to pay immediately
Updating the plan shouldn't affect the trial. Customer will only start paying after trial is over.
I'd recommend testing with test clock in test mode to check if it meets your expectation: https://stripe.com/docs/billing/testing/test-clocks
Wow, this is the first time I'm hearing about test clocks. Nice ๐
Yes! This is very helpful especially when you're working on subscription integration!
I did a few tests with a trial subscription
I made few API calls to upcoming invoice API to see how modifying the trial would look like
I use proration behavior as create_prorations
Every time, I'm getting only one element in the invoice line items array.
If I change the price, the line item has amount=0
In all the other changes, amount is greater than 0 (showing the future invoice's value)
It feels like all the other changes except changing the price, actually impact the next recurring cycle (where the customer would actually has to pay)
The problem I have is that, if the price is changed, I can't get how much the user will have to pay after the trial. Is there a way to get it?
Could you share the subscription ID (sub_xxx)?
sub_1LhqFjC8JGuaUdU6Ni9X686v
Hi @proven compass I'm taking over
I tried to change price price_1K7BEcC8JGuaUdU6yY47xcIW -> price_1K7BEcC8JGuaUdU6yY47xcIW
@teal ridge Thank you.
@pastel rover Thank you for the help so far. Have a great day
I can see that you are using trial in your subscription, and that's why the first invoice amount is 0 and there's no payment needed.
Yes. So basically, when we change the interval, it generates an invoice immediately
Even in trial
But if I modify the quantity, or add a coupon, it won't generate an invoice so I see the upcoming invoice where the user actually have to pay (so amount > 0 )
Am I getting things correctly?
There's is an invoice (in_1LhqFjC8JGuaUdU6JlrBJRkI if you check the subscription's latest_invoice), it's just that the amount is 0.
Give me 30 minutes, I'll come back after lunch
Sorry for the delay.
Yes, this invoice, I understand how it happens
Actually, my question is a bit different. Let's say the customer already is in a trial subscription. (Customer already received the first invoice which has 0$)
Now, the customer is trying to change the recurring interval of the subscription by changing the price of the subscription item.
In the upcoming invoice, the customer will still see 0$ as the amount for the future invoice.
Let's say the customer tries to keep the same recurring interval but wants to update the quantity.
In this scenario, the upcoming invoice will show what the customer would have to pay in future (once the trial finishes)
Amount will be greater than 0$
I would like to see the behavior in the second scenario happen in the first one as well. The reason is, I can show the customer how much they would pay to us in the future when they actually started to pay after the trial
Got it, you can use the upcoming invoice API (https://stripe.com/docs/api/invoices/upcoming#upcoming_invoice) to retrieve the upcoming invoice and present it to the customer
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.