0Bit Documentation

Test in sandbox

Prove product-object creation, hosted surfaces, webhooks, retries, and reconciliation before using live credentials.

Sandbox testing should exercise the same architecture you use in production: server-created 0Gate sessions or approved product objects, browser-safe values where applicable, verified webhooks, idempotent workers, and support-ready records.

Sandbox is not just a UI preview

Do not go live after only loading the widget. Test raw-body webhook verification, duplicate event handling, failed states, rate limits, replay, and support investigation.

Sandbox loop

Test plan

AreaWhat to prove
CredentialsSandbox keys are used only with sandbox environment.
Product-object creationIdempotency key prevents duplicate sessions, checkouts, quotes, or writes on retry.
EmbedAllowed origin and browser-safe values work.
Return URLsOutcome pages read server state, not query strings.
WebhooksRaw-body signature verification passes.
Event logDuplicate events do not duplicate fulfillment.
Failure statesFailed, cancelled, expired, and delayed states show correct UX.
SupportRequest id, product object id, event id, and local attempt id are available.

Smoke test record

type SandboxEvidence = {
  attemptId: string;
  productObjectId: string;
  tested: Array<
    | 'object_create'
    | 'embed_mount'
    | 'webhook_verify'
    | 'duplicate_event'
    | 'failed_state'
    | 'reconciliation'
  >;
  passedAt: string;
};

On this page