MCPcopy Create free account
hub / github.com/code-with-antonio/nightcode / openBillingPortal

Function openBillingPortal

packages/cli/src/lib/upgrade.ts:17–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15};
16
17export async function openBillingPortal() {
18 const response = await apiClient.billing.portal.$post();
19
20 if (response.ok) {
21 const data = await response.json();
22 await open(data.url);
23 return;
24 }
25
26 throw new Error(await getErrorMessage(response));
27};

Callers 1

commands.tsxFile · 0.90

Calls 1

getErrorMessageFunction · 0.90

Tested by

no test coverage detected