- Configuring SDK: Set up the SDK once with your
orgIdusingBilling.configure. - Creating checkout: Initialize a new checkout with
Billing.createCheckoutusing apriceIdand customer details (external ID and email). - Event handling: Listen for success (redirect to confirmation page), error (display error message to user), and status changes (track checkout progress).
Billing Web SDK
Code examples & tutorials
Ready-to-use code examples for FunnelFox: custom integrations, API usage, webhook handling, and advanced funnel logic.
Below is a complete example of a basic checkout integration using the Billing Web SDK in a simple web page. The example allows users to select between two prices (e.g., monthly vs yearly) and initiates the checkout.
The implementation includes:
