Update pricing table and billing configuration

Updated the pricing table component to display all line items for a plan, removed condition to exclude primary plan. Adjusted the type of a billing package in the sample configuration to be "metered" instead of "flat". Made related changes in line-item-details component to handle the changes in billing type and to fix the layout.
This commit is contained in:
giancarlo
2024-06-01 15:59:39 +07:00
parent 88ff32479a
commit 2c52a06536
4 changed files with 51 additions and 22 deletions

View File

@@ -33,7 +33,14 @@ export default createBillingSchema({
id: 'price_1NNwYHI1i3VnbZTqI2UzaHIe',
name: 'Addon 2',
cost: 9.99,
type: 'flat' as const,
type: 'metered' as const,
unit: 'GB',
tiers: [
{
cost: 0.5,
upTo: 'unlimited',
},
],
},
],
},