Checkout
The Checkout screen renders a full subscription checkout flow for a customer. Mount it when you want to let a customer initiate a new subscription.

Overview
Checkout is driven by a portalObject your backend generates for a specific pricing plan. The SDK uses it to load the correct plan, pricing, and payment options for that customer. Your frontend never handles API keys directly.
The screen emits two events: ready when the checkout has loaded, and error if something goes wrong.
Mount the screen
Checkout screen
Configuration
Events
Checkout fires DOM events on the container element.
Handling checkout events