Hello,
I am using Stripe Customer Portal to let the users manage their subscriptions. If a user upgrades then I want to charge the user immediately/create an invoice. If I disable the proration then the customer portal charges the user after the billing period.
As a workaround, I am resetting the billing cycle when I receive an update from the Stripe webhook. Following is the API call am making to update the subscription.
Due to this API call, multiple invoices are being generated for the same price. All invoices for users are being messed up. What am doing wrong?