Redirect to checkout page when payment is required (#19179)
Previously, we were redirecting to a non-existant page. Release Notes: - N/A
This commit is contained in:
parent
fcf9e546da
commit
f2337bbed1
1 changed files with 1 additions and 1 deletions
|
@ -4347,7 +4347,7 @@ impl ContextEditor {
|
||||||
|
|
||||||
fn render_payment_required_error(&self, cx: &mut ViewContext<Self>) -> AnyElement {
|
fn render_payment_required_error(&self, cx: &mut ViewContext<Self>) -> 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 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()
|
v_flex()
|
||||||
.gap_0p5()
|
.gap_0p5()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue