#ibgoldbergs
1 messages · Page 1 of 1 (latest)
There are a few ways you can modify the billing cycle anchor after creation, primarily with billing_cycle_anchor=now but there are other ways:
https://stripe.com/docs/billing/subscriptions/billing-cycle#changing
Can I do this when an upgrade is made in a custom portal configuration? Or no?
As far as I know, no. The only thing that would do this is changing plan periods, such as monthly to annual.
@queen marlin It doesn't make sense to not have this behavior by default in the billing portal.
- Say you have a customer on an annual subscription
- The customer wants to upgrade from a silver ($1000/year) to the gold plan ($2000/year)
- If you don't reset the billing cycle, the customer would not be charged the additional difference of $1000 (or less depending on proration) until the renewal date
- This means a customer could remove their payment info before the renewal date
- Instead, we should charge the customer immediately at a prorated amount
In the Stripe Dashboard UI you can do this by checking the box "Reset billing cycle"
How can we make sure the Custom Billing Portal follows the same behavior?
@hidden tendon you can in fact control this be setting the proration_behavior=always_invoice in the subscription update feature configuration
https://stripe.com/docs/api/customer_portal/configurations/create#create_portal_configuration-features-subscription_update-proration_behavior
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
This will do exactly as you describe, require payment immediately for the update to the higher plan
You can set this either in the API or the dashboard when configuring the portal
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.