The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
add #payment-methods anchors
Steven Tey63e8de89cc69
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 ac9033da7f..5f94290da0 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@@ -115,7 +115,7 @@ export const POST = withWorkspace(if (!method) {const { url } = await stripe.billingPortal.sessions.create({customer: workspace.stripeId,- return_url: `${APP_DOMAIN}/${workspace.slug}/settings/billing`,+ return_url: `${APP_DOMAIN}/${workspace.slug}/settings/billing#payment-methods`,flow_data: {type: "payment_method_update",},@@ -145,8 +145,8 @@ export const POST = withWorkspace([method]: paymentMethodOption,},currency: "usd",- success_url: `${APP_DOMAIN}/${workspace.slug}/settings/billing`,- cancel_url: `${APP_DOMAIN}/${workspace.slug}/settings/billing`,+ success_url: `${APP_DOMAIN}/${workspace.slug}/settings/billing#payment-methods`,+ cancel_url: `${APP_DOMAIN}/${workspace.slug}/settings/billing#payment-methods`,});return NextResponse.json({ url });diff --git a/apps/web/ui/partners/confirm-payouts-sheet.tsx b/apps/web/ui/partners/confirm-payouts-sheet.tsxindex 274c053cfe..385b9e8e84 100644--- a/apps/web/ui/partners/confirm-payouts-sheet.tsx+++ b/apps/web/ui/partners/confirm-payouts-sheet.tsx@@ -517,7 +517,7 @@ function ConfirmPayoutsSheetContent() {)}<a- href={`/${slug}/settings/billing`}+ href={`/${slug}/settings/billing#payment-methods`}className={cn(buttonVariants({ variant: "secondary" }),"flex items-center rounded-md border border-neutral-200 p-1.5 text-sm",diff --git a/packages/email/src/templates/partner-payout-failed.tsx b/packages/email/src/templates/partner-payout-failed.tsxindex 59ff1470fb..0ec13df10b 100644--- a/packages/email/src/templates/partner-payout-failed.tsx+++ b/packages/email/src/templates/partner-payout-failed.tsx@@ -109,7 +109,7 @@ export default function PartnerPayoutFailed({<Text className="text-sm leading-6 text-neutral-600">Please{" "}<Link- href={`https://app.dub.co/${workspace.slug}/settings/billing`}+ href={`https://app.dub.co/${workspace.slug}/settings/billing#payment-methods`}className="font-medium text-black underline">update your {payoutMethod} detailsdiff --git a/packages/email/src/templates/trial/trial-3-days-remaining.tsx b/packages/email/src/templates/trial/trial-3-days-remaining.tsxindex a21ff4d868..e892458822 100644--- a/packages/email/src/templates/trial/trial-3-days-remaining.tsx+++ b/packages/email/src/templates/trial/trial-3-days-remaining.tsx@@ -39,7 +39,7 @@ export default function Trial3DaysRemainingEmail({If Dub is indeed a perfect fit (and I really hope it is!), pleasedouble-check your{" "}<Link- href={`${dashboardUrlPrefix}/settings/billing`}+ href={`${dashboardUrlPrefix}/settings/billing#payment-methods`}style={linkStyle}>billing details