Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
stripe: add usd (#2263)
Thibault Le Ouaybbd6c85542b5
diff --git a/apps/dashboard/src/components/data-table/billing/data-table.tsx b/apps/dashboard/src/components/data-table/billing/data-table.tsxindex 69d966839..b79572490 100644--- a/apps/dashboard/src/components/data-table/billing/data-table.tsx+++ b/apps/dashboard/src/components/data-table/billing/data-table.tsx@@ -140,6 +140,7 @@ export function DataTable({ restrictTo }: { restrictTo?: WorkspacePlan[] }) {return;}await checkoutSessionMutation.mutateAsync({+ currency: currency || "USD",plan: id,interval,workspaceSlug: workspace.slug,diff --git a/packages/api/src/router/stripe/index.ts b/packages/api/src/router/stripe/index.tsindex aa34c4325..791c20c13 100644--- a/packages/api/src/router/stripe/index.ts+++ b/packages/api/src/router/stripe/index.ts@@ -90,6 +90,7 @@ export const stripeRouter = createTRPCRouter({getCheckoutSession: protectedProcedure.input(z.object({+ currency: z.string(),workspaceSlug: z.string(),plan: z.enum(workspacePlans),interval: z.enum(billingIntervals).default("monthly"),@@ -150,6 +151,7 @@ export const stripeRouter = createTRPCRouter({const priceId = getPriceIdForPlan(opts.input.plan, opts.input.interval);const session = await stripe.checkout.sessions.create({payment_method_types: ["card"],+ currency: opts.input.currency,customer: stripeId,customer_update: {name: "auto",