#Suren.billing-prorate
1 messages · Page 1 of 1 (latest)
Hey, it depends generally on the update call. How are you handling prorations?
Also, it is expected that switching the interval of the price/item will update the billing period for the subscription:
If the prices have different billing periods, the new price is billed at the new interval, starting on the day of the change. For example, switching a customer from one monthly subscription to another does not change the billing dates. However, switching a customer from a monthly subscription to a yearly subscription moves the billing date to the date of the switch
So it's expected that your user will be billed immediately for the new yearly plan
for example, I now have an annual plan
and 350 days have passed
and then I decided to upgrade to a monthly plan, how do I know
payment must be made
is there any way to find out?
Again, it depends. There will be an invoice generated and depending value of collection_behaviour on the Subscription object then payment will be attempted using the default payment method
You could also use the API to generate a preview invoice for your Subscription changes: https://stripe.com/docs/api/invoices/upcoming
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yes i understand it but before getting client_secret i want to know it
yes, I'll take a look now
I think this is what I need
thank you
Np!