@connexease/gateway-embedded-signup · Version: 1.0.2
Installation
Install via npm or drop in the CDN script.
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.- Initialize — call
init()once with your publishable key. - Launch — the user clicks your button → you call
launch(). - WhatsApp signup — the SDK runs the Meta WhatsApp Embedded Signup popup and handles the whole connection.
- Done — the SDK fires
onSuccesswith the connected account details.
Prerequisites
- A publishable key (
pb_…) from the Connexease dashboard — safe to ship in the browser. - A secret key (
sk_…) stored securely on your server — never in the browser. - 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.