feat: add checkout action banner

This commit is contained in:
Codex Agent
2026-01-12 13:35:43 +01:00
parent 749cb04cec
commit 37e20ed32f
6 changed files with 58 additions and 4 deletions

View File

@@ -2476,9 +2476,9 @@ export async function createTenantPaddleCheckout(
export async function getTenantPackageCheckoutStatus(
checkoutSessionId: string,
): Promise<{ status: string; completed_at?: string | null; reason?: string | null }> {
): Promise<{ status: string; completed_at?: string | null; reason?: string | null; checkout_url?: string | null }> {
const response = await authorizedFetch(`/api/v1/tenant/packages/checkout-session/${checkoutSessionId}/status`);
return await jsonOrThrow<{ status: string; completed_at?: string | null; reason?: string | null }>(
return await jsonOrThrow<{ status: string; completed_at?: string | null; reason?: string | null; checkout_url?: string | null }>(
response,
'Failed to load checkout status'
);