Skip to main content
The billing widget lets your customers view plans, compare features, and select a subscription — all from your own website.

Quick Start

How it works

  1. The widget loads your project’s plans from the Cuprice API
  2. Customers see plan names, prices, features, and a Monthly/Annual toggle
  3. When a customer selects a plan, a cuprice:plan-selected event fires
  4. You handle the event to start your checkout flow

Listening for events

React example

Vue example

Standalone mode

The billing widget also works as a standalone page. When a customer picks a plan there, Cuprice sends them to the checkout link you set for the project:

Differences from pricing widget