Skip to main content
Browser runtime for embedding the Revinel tier selector, the “Subscribe to advertise” widget that lets your visitors pick an advertising plan and pay through Stripe. Renders as an auto-resizing iframe; inline or as a modal.
Looking to render ads on your site? Use @revinel/sdk (headless) or @revinel/react (hooks + components).

Install

Inline widget

Opens the selector in a native <dialog> (focus-trap, Esc, and backdrop handled for you):

No-code script (hosted)

No bundler needed. Drop in the hosted script and mark any element to open the popup:
The script also exposes window.Revinel.init({ workspaceId, container }) (inline) and window.Revinel.open({ workspaceId }) (popup).

Options

Events

Pass onReady, onCheckout, onError (and onClose for the popup):
  • onReady(): the selector has loaded and rendered.
  • onCheckout({ tierPriceId }): fires when the visitor starts checkout, just before the redirect to Stripe.
  • onError({ message }): tiers failed to load, or checkout creation failed.
There is no “completed” event: checkout redirects the top window to Stripe, so the embed is gone by the time payment finishes. Subscription state is delivered to your account by webhook.