Bank Payments — Using Elements
Ozura Elements lets you embed account number and routing number fields directly in your own page. Input fields run inside isolated iframes served from Ozura’s domain — raw bank data never leaves those iframes. Tokenization happens in the browser; you receive a vault token that your backend can use to process an ACH payment with your processor.Prefer a hosted page? See Checkout (merchants only). Need to tokenize from your backend? See Using the API.
How It Works
Account and routing numbers travel directly from the browser to the Ozura Vault — your server only ever sees a token.Install the SDK
Quick Start
1. Get your credentials
You need both credentials from the Ozura Dashboard. Both must be passed to initialize the SDK — tokenization will fail if either is missing.| Credential | Where | Used for |
|---|---|---|
| Vault API Key | Dashboard → Vault → Applications | Client-side key |
| Vault Pub Key | Dashboard → Vault → Applications | Authenticates the tokenize request |
Testing? For development, you can use this pub key:
pk_prod_jys4le1jgncomgda_L8HbeakKLNRWdBXoX5A6QJUYOlhUkNleDo not use this test pub key in production or with sensitive card data. For a production pub key, contact ammar@ozura.com. See Vault Quick Start for full details.2. Initialize and mount bank fields
3. Process the payment on your backend
Your backend receives thetoken and forwards it to your ACH processor via the Proxy:
Token Response
createBankToken() resolves with:
Enabling the Submit Button
Usechange events to gate your submit button until both fields are complete and valid:
- Account number — 4–17 digits; masked like a password field to prevent shoulder surfing
- Routing number — Exactly 9 digits, validated against the standard ABA checksum algorithm
Field Validation & Error Handling
error field:
"Invalid account number"— fewer than 4 digits or not all digits"Invalid routing number"— not 9 digits or fails ABA checksum
React Integration
There are no pre-built React bank field components. Use the vanillaOzVault API inside a useEffect to create and mount bank elements manually:
Styling
Bank elements accept the samestyle config as card elements:
Next Steps
Elements SDK Reference
Complete API reference — all methods, options, events, and TypeScript types.
Styling & Appearance
Customize fonts, colors, and states to match your brand.
Proxy
Forward the bank token to your ACH processor.
API Reference — Tokenize
Token response shape and all tokenize options.