@connexease/gateway-embedded-signup · Version: 1.0.5
Installation
Install Connexease script from CDN.
Quickstart
Render the connect button in a few lines.
Backend Integration
The session-token endpoint your server exposes.
How It Works
The SDK follows the Stripe Connect pattern: a publishable key lives in the browser, a secret key stays on your server, and a short-lived session token bridges the two. Connexease gives you both keys from the dashboard, under Dashboard → avatar menu (top right) → My Profile → Organization tab. See Authentication for how to create each key and configure allowed origins.- Initialize — call
init()once with your publishable key. You can optionally provideapiBaseUrlto use your own Gateway API base URL. - Launch — the user clicks your button → you call
launch()and provide the callbacks for that flow. - WhatsApp signup — the SDK runs the Meta WhatsApp Embedded Signup popup and handles the whole connection.
- Done — the SDK fires:
onSuccesswith the connected WhatsApp account details,onErrorwhen the flow fails,onCancelwhen the user cancels or closes the flow.
Prerequisites
- A publishable key (
pb_…) from the Connexease dashboard — safe to ship in the browser. See Publishable Key. - A secret key (
sk_…) stored securely on your server — never in the browser. See Secret Key. - Your site’s origin added to the allowed-origins list in the Connexease dashboard — otherwise the flow is rejected because the origin isn’t allowed.
http://localhost:3000is allowed by default, and a newly added origin can take up to 48 hours to be approved by Meta. See Allowed Origins. - Browser security headers configured for Meta Embedded Signup:
Cross-Origin-Opener-Policy: same-origin-allow-popupsand the required Facebook origins inframe-src. See Browser Security Headers.