🛂 (billing) Always invoice when subscription is updated
This commit is contained in:
@@ -129,6 +129,7 @@ export const updateSubscription = authenticatedProcedure
|
|||||||
if (subscription) {
|
if (subscription) {
|
||||||
await stripe.subscriptions.update(subscription.id, {
|
await stripe.subscriptions.update(subscription.id, {
|
||||||
items,
|
items,
|
||||||
|
proration_behavior: 'always_invoice',
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
const checkoutUrl = await createCheckoutSessionUrl(stripe)({
|
const checkoutUrl = await createCheckoutSessionUrl(stripe)({
|
||||||
|
|||||||
Reference in New Issue
Block a user