clausum.js) automatically collects device fingerprint and behavioral signals, and can run a client-side pre-check before your server makes the authoritative decision. It is payment-platform agnostic and works alongside Stripe, MercadoPago, Conekta, OpenPay, PayPal, and custom flows.
Install
Drop in the script and initialize with your publishable key. Load the SDK from the same host as your Clausum web application (sandbox example below):If support assigned a dedicated API hostname, set
apiUrl to $CLAUSUM_API_BASE/api/v1/assess. See Access & environments.Assess from the client
device (fingerprint, user agent, timezone) and behavior (session duration, mouse/keyboard activity, copy-paste events) so you don’t have to.
Pass the session to your backend
The SDK returns asession_id. Send it to your server so the authoritative /assess call can merge the behavioral signals collected in the browser.
session_id when you call /assess with your secret key — see Real-time assessment.
Configuration
| Option | Default | Description |
|---|---|---|
apiKey | null | Your publishable key (clm_pub_...). |
apiUrl | Same-origin /api/v1/assess | Full URL to assess on your assigned API host. |
autoCapture | true | Automatically collect device + behavioral signals. |
failOpen | true | If the service is unreachable, don’t block the user. |
debug | false | Verbose console logging. |
Treat the client-side result as a pre-check to improve UX (e.g. trigger 3DS early). Always make the final capture decision on your backend.