So I am using stripe API to charge the user. When creating a billing portal session I am trying to pass the billing_cycle_anchor=now as a parameter so when a user updates a subscription he should be charged immediately/invoice.
But it is not working. Also, I disabled the proration.
I tested this use case, and it works from the stripe dashboard but not the API.