🚀 VaultsPay API v1 is live. See what's new →
Set UpEnvironments

Environments

VaultsPay offers two fully-isolated environments so you can develop and test safely before going live.

Sandbox

Use the sandbox for development, automated tests, and QA. It uses test API keys (prefix sk_test_) and does not move real money — all card transactions, transfers, and KYC flows are simulated.

PropertyValue
Base URLhttps://sandbox.api.vaultspay.ae/v1
Dashboardhttps://sandbox.vaultspay.ae
API key prefixsk_test_
Webhook eventsSimulated, delivered to your test endpoint

Sandbox helpers

The sandbox accepts magic values that let you simulate specific outcomes:

ValueBehavior
email: kyc_approved@vaultspay.aeKYC auto-approves immediately
email: kyc_rejected@vaultspay.aeKYC auto-rejects
Card pan: 4000 0000 0000 0127Simulates insufficient funds decline
Card pan: 4000 0000 0000 0002Simulates a successful authorisation
Card pan: 4000 0000 0000 0069Simulates an expired card

Production

The production environment uses live API keys (prefix sk_live_) and processes real money. Access is granted once you’ve completed onboarding and your compliance review.

PropertyValue
Base URLhttps://api.vaultspay.ae/v1
Dashboardhttps://dashboard.vaultspay.ae
API key prefixsk_live_

Switching environments

Switching environments is as simple as changing the API key and base URL. Everything else — endpoints, parameters, response shapes — is identical.

config.js
const config = {
  sandbox: {
    baseUrl: 'https://sandbox.api.vaultspay.ae/v1',
    apiKey: process.env.VAULTSPAY_TEST_KEY
  },
  production: {
    baseUrl: 'https://api.vaultspay.ae/v1',
    apiKey: process.env.VAULTSPAY_LIVE_KEY
  }
}
 
export default config[process.env.NODE_ENV === 'production' ? 'production' : 'sandbox']