API Key Management
You have two API keys. Treat them like passwords.| Key | Header | Purpose |
|---|---|---|
| Vault API Key | X-API-KEY | Authenticates with Ozura’s secure card storage system |
| Merchant API Key | X-OZURA-API-KEY | Identifies your merchant account |
Why two keys? The Vault API Key connects to the secure card tokenization system. The Merchant API Key ties transactions to your specific merchant account. Both are required for security.Where to find them: Your Vault API Key was provided at signup (contact support if you lost it). Your Merchant API Key is in Dashboard → Settings → API Keys.
What about the Vault Pub Key (
X-Pub-Key)? If you’ve used OzElements, you may be familiar with the Vault Pub Key required for direct tokenization. With Checkout, you do not need to provide or manage this key — Checkout handles tokenization and pub key authentication internally. Your integration only requires the two keys listed above.Do’s and Don’ts
| Do | Don’t |
|---|---|
| Store keys in environment variables | Hardcode keys in your code |
| Rotate keys if compromised | Commit keys to version control |
| Restrict key access to needed team members | Share keys via email or chat |
Server-Side Only
Create sessions from your server, not from client-side JavaScript:Verify Payments
Always verify payments server-side before fulfilling orders. A malicious user could attempt to visit your success URL directly. Always check the session status:Session Security
Time Limits
Sessions expire after 30 minutes. This provides a secure window for payment while giving customers adequate time to complete checkout.One-Time Use
Each session can only be completed once. After payment:- The session status becomes
completed - Back button won’t work (session is expired)
- The checkout page shows “already paid”
Use HTTPS in Production
All API requests to Ozura are made over HTTPS automatically. Your redirect URLs (successUrl, cancelUrl, errorUrl) should use HTTPS in production:
Local development: You can use
http://localhost:3000 for testing. HTTPS is only required for production URLs.PCI Compliance
Ozura Checkout is designed for PCI compliance:- Card data never touches your servers – Customers enter card details directly on our secure checkout page
- Tokenization – Card data is tokenized before processing
- Encryption – All data is encrypted in transit and at rest