Elements
Ozura Elements are embeddable UI components that let you collect sensitive payment data — card numbers, CVVs, bank account numbers — on your own page while keeping that data completely off your servers. Each field runs inside an isolated iframe served from Ozura’s domain. Tokenization happens in the browser and talks directly to Vault. Your page never sees raw card or bank data — only a vault token.Why Use Elements?
| Elements | Using the API | Checkout | |
|---|---|---|---|
| Your own UI / branding | ✅ Full control | ✅ Full control | ❌ Ozura-hosted page |
| Sensitive data on your server | ❌ Never | ⚠️ Yes — increases PCI scope | ❌ Never |
| Client-side integration required | ✅ Yes | ❌ No (backend only) | ❌ No |
| Requires merchant account | ❌ No | ❌ No | ✅ Yes |
Supported Field Types
Card fields
| Type | Description |
|---|---|
cardNumber | Card number with live Luhn validation, brand detection, and auto-formatting |
expirationDate | MM / YY expiry with future-date validation |
cvv | 3 or 4 digit CVV (auto-adjusts for Amex) |
Bank fields
| Type | Description |
|---|---|
accountNumber | 4–17 digit bank account number (masked, password-type input) |
routingNumber | 9-digit US ABA routing number with checksum validation |
How It Works
- Fields mount as iframes in your DOM — you control placement and styling.
- On submit, you call
createToken()orcreateBankToken(). - The tokenizer iframe posts data directly to Vault.
- You receive a token (and optional CVC session for cards) to pass to your backend.
- Your backend uses the token with the Proxy or PayAPI.
Quick Look
Integration Guides
Card Payments with Elements
Full walkthrough for embedding card fields — install, mount, tokenize, style, and test.
Bank Payments with Elements
Embed account number and routing number fields and tokenize for ACH.
SDK Deep Dive
The guides above cover the integration flow. For the complete API reference, React components, TypeScript types, and advanced customization options, head to the SDK docs:Elements SDK
Full SDK reference — OzVault, OzElement, all options, events, and types.
React Components
OzElements provider, useOzElements hook, and pre-built component reference.
Styling Reference
Complete list of supported style properties and theming options.
Error Handling
OzError codes, retry logic, and how to surface errors to users.