Looking to render ads on your site? Use
@revinel/sdk (headless) or
@revinel/react (hooks + components).Install
Inline widget
Popup (modal)
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:window.Revinel.init({ workspaceId, container }) (inline) and
window.Revinel.open({ workspaceId }) (popup).
Options
Events
PassonReady, 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.