The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Return sandbox payment methods in the same shape as production
Kiran K4b780c2b9774
diff --git a/apps/web/app/api/workspaces/[idOrSlug]/billing/payment-methods/route.ts b/apps/web/app/api/workspaces/[idOrSlug]/billing/payment-methods/route.tsindex 10f2598ca8..5aafc37f8a 100644--- a/apps/web/app/api/workspaces/[idOrSlug]/billing/payment-methods/route.ts+++ b/apps/web/app/api/workspaces/[idOrSlug]/billing/payment-methods/route.ts@@ -50,7 +50,10 @@ async function getWorkspacePaymentMethod({export const GET = withWorkspace(async ({ workspace }) => {if (workspace.environment !== WorkspaceEnvironment.production) {- return NextResponse.json([SANDBOX_PAYMENT_METHOD]);+ return NextResponse.json({+ paymentMethods: [SANDBOX_PAYMENT_METHOD],+ defaultPaymentMethodId: SANDBOX_PAYMENT_METHOD.id,+ });}if (!workspace.stripeId) {