#Eranga

1 messages ยท Page 1 of 1 (latest)

tidal abyssBOT
pastel rover
proven compass
#

Actually, we are using the trial already. Let me test something quick and I'll get back here

pastel rover
#

Sure!

proven compass
#

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

pastel rover
#

Updating the plan shouldn't affect the trial. Customer will only start paying after trial is over.

proven compass
#

Wow, this is the first time I'm hearing about test clocks. Nice ๐ŸŽ‰

pastel rover
#

Yes! This is very helpful especially when you're working on subscription integration!

proven compass
#

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?

pastel rover
#

Could you share the subscription ID (sub_xxx)?

proven compass
#

sub_1LhqFjC8JGuaUdU6Ni9X686v

teal ridge
#

Hi @proven compass I'm taking over

proven compass
#

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

teal ridge
#

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.

proven compass
#

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?

teal ridge
#

There's is an invoice (in_1LhqFjC8JGuaUdU6JlrBJRkI if you check the subscription's latest_invoice), it's just that the amount is 0.

proven compass
#

Give me 30 minutes, I'll come back after lunch

proven compass
#

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

teal ridge