export function prodigiDashboardUrl(orderId?: string | null, sandbox = false): string { const base = sandbox ? 'https://sandbox-beta-dashboard.pwinty.com' : 'https://dashboard.prodigi.com'; // Prodigi's dashboard uses the numeric ID without the v4 API's ord_ prefix. return orderId ? `${base}/orders/${encodeURIComponent(orderId.replace(/^ord_/, ''))}/detail` : `${base}/orders`; }