Guides
Clearway Elements
Clearway Elements
Clearway Elements let you embed product cards and subscription modals on any website while keeping your API key on the server.
Requirements
- A Widget / Checkout API key on your server only
- A checkout proxy route (same URL for checkout and embed display)
- Origin allowlist on your widget API key
- Scripts:
/widget/v1/widget.jsand/elements/v1/elements.js
Single proxy, two intents
Your proxy forwards JSON to GCF:
{ "intent": "checkout", ... }— creates checkout sessions (existing widget flow){ "intent": "embed_display", "catalogProductId": "..." }— resolves signed display payloads for cards
Product card
Code
Subscription modal
Code
The cadence picker destroys itself before opening the Clearway checkout modal (STE handoff).
CSP
script-src: your dashboard/asset Clearway hostconnect-src: your merchant proxy originframe-src:pay-dev.clearway.toor your custom checkout domain
Dashboard
Configure snippets under Integrations → Elements.
Last modified on