fix: stripe portal dead-end with callback return flow

This commit is contained in:
2026-05-08 13:39:56 +05:45
committed by hodlbod
parent 0151762362
commit 164fff8be2
5 changed files with 23 additions and 8 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ export default function Account() {
async function openPortal() {
setPortalLoading(true)
try {
const { url } = await createPortalSession(account()!.pubkey)
const { url } = await createPortalSession(account()!.pubkey, window.location.href)
window.location.href = url
} catch (e) {
setError(e instanceof Error ? e.message : "Failed to open billing portal")