Forum Academy Marketplace Showcase Pricing Features

Stripe | Multiple Invoices


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?

I guess I have to pass the order ID as a parameter to update a specific subscription.

I am unable to find any order ID from the webhook to bubble.

@georgecollier Any insgiht on this