Skip to main content
Keep your integration secure and protect your customers.

API Key Management

You have two API keys. Treat them like passwords.
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 lives in Developers → Vault Key. Your Merchant API Key is in Developers → 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

Server-Side Only

Never expose your API keys to the browser.
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 completed — single-use)
  • 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
  • Vault API Key stays on your server – When you create a session, Checkout internally mints a short-lived, session-bound tokenization credential. The checkout page uses this credential to tokenize card data in the browser. Your Vault API Key is never sent to the customer’s browser — it is only used in your server-to-server session creation call.
By using Ozura Checkout (hosted page), you significantly reduce your PCI compliance scope.

Refunds

Refunds are handled through the OzuraPay API, not through the Checkout widget.