useCheckout hook creates checkout sessions using your backend checkout route.
By default it calls POST /api/priceos/v1/checkout.
Usage
Parameters
Optional fallback
customerId used when openCheckout/createCheckoutSession are called without customerId in the body.Returns
Creates a checkout session, then redirects the browser to Stripe Checkout.
Body fields
Optional Stripe price ID override. When omitted, PriceOS uses the product’s default active Stripe price.
Optional customer override. If omitted, the hook uses
options.customerId or your backend identifyCustomer.