Checkout Widget
Embed a complete buy-now checkout button and modal that handles cart, payment, and order confirmation
Card Element
Securely collect card details in an isolated iframe and tokenize them for server-side processing
Get started in minutes
Install the SDK
When loaded via CDN, the SDK is available as
window.Henry.Get your Widget ID
Go to the Henry Dashboard and copy your Widget ID. You’ll pass this to
createCheckoutElement.How it works
The Henry JS SDK renders UI elements inside your page using lightweight iframes. This keeps sensitive data (card numbers, payment info) fully isolated from your application while letting you control placement, styling, and events.- Card Element - renders a secure card input iframe. Call
submit()to tokenize the card and receive acardTokenyou can pass to your server. - Checkout Widget - renders a button (full, compact, comfortable, or bubble) that opens Henry’s hosted checkout modal on click. You supply the product links; Henry handles cart creation, payment, and order tracking.
The Checkout Widget requires a Widget ID from the Henry Dashboard.
Explore the guides
Quickstart
End-to-end walkthrough - install, mount, and handle checkout events
Checkout Widget
All options, display modes, and events for the checkout widget
Card Element
Embed secure card collection and tokenize for server-side payment