Skip to main content

Overview

The billing client provides access to subscription management, Stripe Checkout session creation, and the Stripe Billing Portal. Access the billing client via client.billing.

Get Subscription

Retrieve the current subscription status for the authenticated developer:

SubscriptionStatus

Create Checkout

Create a Stripe Checkout session for upgrading to a paid plan. Returns a URL to redirect the user to:

CreateCheckoutParams

CheckoutResponse

Create Portal

Create a Stripe Billing Portal session for managing an existing subscription. Returns a URL to redirect the user to:

CreatePortalParams

PortalResponse

Example: Billing Flow

Last modified on February 28, 2026