Loading...
Mobile SDKiOS

Going to production

Switch VoltCheckout from sandbox to production and avoid the most common integration mistakes.


Sandbox vs production

Change .sandbox to .production in your configuration when you ship to users:

// Sandbox - no real money changes hands
let config = VoltCheckout.Configuration.sandbox(
    customerId: "sandbox-customer-id",
    tokenProvider: { try await YourAuth.fetchSandboxToken() }
)

// Production
let config = VoltCheckout.Configuration.production(
    customerId: "your-production-customer-id",
    tokenProvider: { try await YourAuth.fetchToken() }
)

let checkout = VoltCheckout(configuration: config)

The sandbox connects to gateway.sandbox.volt.io. The production build connects to gateway.volt.io. No other code changes are needed.

Common mistakes

How is this guide?

Last updated on

On this page