From 84caa0cf4cff3906256f0900a19df1bb6eba018b Mon Sep 17 00:00:00 2001 From: "gcp-cherry-pick-bot[bot]" <98988430+gcp-cherry-pick-bot[bot]@users.noreply.github.com> Date: Mon, 14 Oct 2024 12:39:58 +0200 Subject: [PATCH] Redirect to checkout page when payment is required (cherry-pick #19179) (#19187) Cherry-picked Redirect to checkout page when payment is required (#19179) Previously, we were redirecting to a non-existant page. Release Notes: - N/A Co-authored-by: Antonio Scandurra --- crates/assistant/src/assistant_panel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/assistant/src/assistant_panel.rs b/crates/assistant/src/assistant_panel.rs index 31e399d5b8c00dcac4c51e3a2710f58504e6f64f..9f554a7e27fd11ee979b760ee4ce326a7a0606ef 100644 --- a/crates/assistant/src/assistant_panel.rs +++ b/crates/assistant/src/assistant_panel.rs @@ -4340,7 +4340,7 @@ impl ContextEditor { fn render_payment_required_error(&self, cx: &mut ViewContext) -> AnyElement { const ERROR_MESSAGE: &str = "Free tier exceeded. Subscribe and add payment to continue using Zed LLMs. You'll be billed at cost for tokens used."; - const SUBSCRIBE_URL: &str = "https://zed.dev/ai/subscribe"; + const SUBSCRIBE_URL: &str = "https://zed.dev/api/billing/initiate_checkout"; v_flex() .gap_0p5()