collab: Include checkout_complete
query parameter after checking out (#19763)
This PR updates the checkout flow to include the `?checkout_complete=1` query parameter after successfully checking out. We'll use this on the account page to adapt the UI accordingly. Release Notes: - N/A
This commit is contained in:
parent
507929cb79
commit
c19c89e6df
1 changed files with 4 additions and 1 deletions
|
@ -252,7 +252,10 @@ async fn create_billing_subscription(
|
||||||
|
|
||||||
let default_model = llm_db.model(rpc::LanguageModelProvider::Anthropic, "claude-3-5-sonnet")?;
|
let default_model = llm_db.model(rpc::LanguageModelProvider::Anthropic, "claude-3-5-sonnet")?;
|
||||||
let stripe_model = stripe_billing.register_model(default_model).await?;
|
let stripe_model = stripe_billing.register_model(default_model).await?;
|
||||||
let success_url = format!("{}/account", app.config.zed_dot_dev_url());
|
let success_url = format!(
|
||||||
|
"{}/account?checkout_complete=1",
|
||||||
|
app.config.zed_dot_dev_url()
|
||||||
|
);
|
||||||
let checkout_session_url = stripe_billing
|
let checkout_session_url = stripe_billing
|
||||||
.checkout(customer_id, &user.github_login, &stripe_model, &success_url)
|
.checkout(customer_id, &user.github_login, &stripe_model, &success_url)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue