Skip to main content
There is no native SDK. Instead, show the Card Element in a WebView and pass the cardToken to your app through the WebView’s message bridge. Card data stays inside Henry’s iframe, so it never touches your app or your servers.
Load the page with an https base URL, as in the examples below. Any URL works; nothing is fetched from it. Without one, submit() never returns.

1. Add the card page

Ship this page with your app. It mounts the Card Element and sends results to whichever bridge is present.
card.html
The app receives one of these messages:

2. Show it in your app

Keep your submit button disabled until ready arrives and while a submit is in progress. Give the WebView a height of about 140 points so both rows of fields fit.
Add card.html to your app target.
On Android, WebView text follows the system font size. Check the form with large text, or set webView.settings.textZoom = 100. To remove the runtime CDN dependency, paste the SDK’s henry.global.js into card.html instead of loading it from the CDN.

3. Use the token

Send cardToken to your backend and use it with the server SDK, exactly as you would from the web.