> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.runpayments.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.runpayments.io/_mcp/server.

## Run Tokenization: Runner.js v2 (2.0.4)

**Released:** Oct 6, 2026

Runner.js v2 (`runner-v2.js`) is now available, with **2.0.4** as the current release. It is the browser SDK for Run Tokenization: a PCI-safe, fully themeable card form that works the same no matter which gateway processes the merchant's transactions. Clients enter card details in a Run-hosted iframe, so card data never touches your page or servers, and you get back an `account_token` to charge or vault through the Run API. Read more in the [Run Tokenization guide](/docs/guides/tokenization/run-tokenization).

* **One form, any gateway:** Card number, expiry and CVV render in a single iframe. You don't pass a gateway in your front-end code; Runner picks the right integration for the MID when you call `init()`
* **Quick setup:** Load `https://javelin.runpayments.io/javascripts/2.0.4/runner-v2.js`, then call `init()` with `element`, `publicKey` and `mid`, and `tokenize()` on submit
* **Layout & styling:** `layout` presets (`default`, `single-row`, `stacked`, `custom`), `errorDisplay` (`inline` or `summary`), and a `css` option filtered through a security allowlist that blocks clickjacking techniques
* **Built-in capabilities:** Card brand recognition, auto-formatting, Luhn and length validation, browser autofill, auto-resize, and clearing of unsubmitted card data after 5 minutes of inactivity (PCI idle-clear)
* **Real-time events:** `Runner.onFieldChange`, `Runner.onBinInfo` and `Runner.onIdleTimeout` let you drive your own UI, such as enabling your submit button, without card data ever reaching your page
* **Token result:** Returns `account_token`, `bin`, `last4`, `brand` and `expiry`
* **Run Tokens:** Tokens expire 5 minutes after tokenization and are single-use. Charge or vault them promptly, and use `vault: "Y"` to keep a card on file
* **Supported brands:** Visa, Mastercard, American Express, Discover, JCB and Diners Club
* **Enabled per MID:** Run turns on Run Tokenization for each MID. Send a Run Request asking for Run Tokens to be activated for a particular merchant

Moving from Runner.js v1? See the [Run Tokenization Migration Guide](/docs/guides/tokenization/run-tokenization-migration-guide). Migration is optional, and v1 is not deprecated.