Skip to main content

start_checkout

Function start_checkout 

Source
pub fn start_checkout(plan: &str, interval: &str) -> Result<String, String>
Expand description

Start a Stripe Checkout session for the logged-in account and return the hosted URL to open. plan is e.g. "pro" or "team"; interval is "monthly" or "yearly". The open backend proxies this to the private billing plane (which returns 503 when billing is not configured).