Refactor billing to manage subscriptions/invoices internally
This commit is contained in:
@@ -33,7 +33,7 @@ export default function PaymentDialog(props: PaymentDialogProps) {
|
||||
const planById = new Map(plans().map((p) => [p.id, p]))
|
||||
return (relays() ?? [])
|
||||
.map((relay) => ({ relay, plan: planById.get(relay.plan) }))
|
||||
.filter((entry) => entry.plan?.stripe_price_id)
|
||||
.filter((entry) => entry.plan?.amount > 0)
|
||||
})
|
||||
|
||||
async function loadBolt11() {
|
||||
|
||||
@@ -35,7 +35,6 @@ export type Plan = {
|
||||
id: string
|
||||
name: string
|
||||
amount: number
|
||||
stripe_price_id: string | null
|
||||
members: number | null
|
||||
blossom: boolean
|
||||
livekit: boolean
|
||||
|
||||
Reference in New Issue
Block a user