Skip to main content

HelaMesh JS SDK

Embed the HelaMesh checkout directly inside your own page. The SDK is a tiny script (~8kb gzipped) that mounts an iframe-based widget you control via JavaScript callbacks. No payment UI to build.

The model is the same as Stripe Elements: your server creates the invoice and gets back an ID, then your browser code uses that ID plus a publishable key to render the payment widget. The customer never leaves your site.

CDN URL

The SDK is loaded from https://pay.helamesh.com/sdk/v1.js. Pin to a major version (v1) for automatic minor/patch updates without breaking changes.

Two componentsโ€‹

The SDK exposes two functions:

  • HelaMesh.mount(target, options) โ€” render the checkout embed for an invoice you've already created
  • HelaMesh.renderChainPicker(target, options) โ€” render a chain picker so the customer chooses a network before you create the invoice

Use the chain picker when you want to offer multiple chains (TRON, BSC, Ethereum, Polygon, Solana). Use mount directly when you've already decided the chain server-side.

Read next: Publishable keys, HTML example, React example.