Fix proration behavior in BillingService

This commit is contained in:
Simon Larsen 2024-03-24 13:01:00 +00:00
parent 82e5977e15
commit 8e08dea7ec
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE

View File

@ -304,7 +304,7 @@ export class BillingService extends BaseService {
// add billing anchor, so that the billing cycle starts now. New quantity will be charged from now. https://stackoverflow.com/questions/44417047/immediately-charge-for-subscription-changes
await this.stripe.subscriptions.update(subscriptionId, {
proration_behavior: 'always_invoice'
proration_behavior: 'always_invoice',
});
}