Rovenue Web SDK
    Preparing search index...

    Function useCheckout

    • Starts a Stripe Checkout and sends the browser to it.

      isStarting exists so a caller can disable the button. A second click before the first session comes back would otherwise create a second session — which Stripe's idempotency only prevents if the caller passes the same key, and a caller that has not thought about it will not.

      Returns CheckoutState