FIx metered subscriptions (#224)

This commit is contained in:
Giancarlo Buomprisco
2025-03-29 09:34:46 +07:00
committed by GitHub
parent dd5219e445
commit 7c4dd23e5d

View File

@@ -80,12 +80,6 @@ export async function createStripeCheckout(
: { customer_creation: 'always' }; : { customer_creation: 'always' };
const lineItems = params.plan.lineItems.map((item) => { const lineItems = params.plan.lineItems.map((item) => {
if (item.type === 'metered') {
return {
price: item.id,
};
}
// if we pass a custom quantity for the item ID // if we pass a custom quantity for the item ID
// we use that - otherwise we set it to 1 by default // we use that - otherwise we set it to 1 by default
const quantity = const quantity =