feat(billing): add direct Stripe billing portal access

Replace dashboard redirect with Stripe Customer Portal session for the
"Manage in Stripe" button, so users go directly to Stripe to manage
invoices, payment methods, and billing details.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
tusharmagar 2026-04-09 11:22:24 +05:30
parent 9c010dabd8
commit 309c05782e
4 changed files with 34 additions and 4 deletions

View file

@ -572,6 +572,12 @@ const ipcSchemas = {
availableCredits: z.number(),
}),
},
'billing:getPortalUrl': {
req: z.null(),
res: z.object({
url: z.string(),
}),
},
} as const;
// ============================================================================