0BitDeveloper Docs
0Bit public documentation

Modes and environments

Gate sandbox and production isolation.

Gate has two credential modes and two API origins:

Mode Key prefixes API origin
Test sk_test_*, pk_test_* https://gate-api-sandbox.0bit.app
Live sk_live_*, pk_live_* https://gate-api.0bit.app

The URL is an origin only. Gate routes are unversioned.

Mode is attached to the credential and copied to partner-owned resources. A test key cannot access live resources, and a live key cannot access test resources. Use separate webhook destinations and secrets where your configuration provides them.

Sandbox is for contract and integration testing. Do not infer live payment-method or rail availability from a sandbox response. Query the capability and eligibility endpoints with the key and environment you are about to use.

Before enabling a live flow:

  1. replace both secret and publishable test keys;
  2. switch the API and widget environment together;
  3. configure and verify the live webhook destination;
  4. query capabilities and eligibility;
  5. confirm the organization's Gate and, when needed, rails entitlements.