#maf-charge-sub-upgrade
1 messages · Page 1 of 1 (latest)
Hello 👋
We only try to charge for subscription change under these conditions
https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment
If you want to charge the new (prorated) price when the change is made, you'd also need to set billing_cycle_anchor to now
https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_cycle_anchor
Thank you, hanzo. The billing_cycle_anchor can not be set using Portal configuration... I need to create my own portal for that, is that right?
I'm not sure as I haven't tested the flow personally, give me a few to look into it
sure.. I think my problem is that i'm using Portal for managing the upgrade/downgrade. I think i will only achieve that by creating my own code
You are correct that the portal won't change the billing cycle like that. That being said, you could do something like have a webhook listen for those subscription updates and then make an additional update with the API that changes the billing cycle anchor. Though that may become tricky if you otherwise change subscriptions through the dashboard or API and don't want those updates to change the billing cycle anchor