---
updatedAt: 2026-09-02T01:50:27.000Z
agentTools:
  projectIndex: https://docs.zeptopayments.com/llms.txt
---

# Before You Begin

What you need before you integrate Zepto Flow: API keys, environments, and the SDK bundle.

<div class="zepto-docs-hero">
  <div class="zepto-docs-hero__content">
    <span class="zepto-docs-hero__badge">DEVELOPER GUIDE</span>
    <h1>Before You Begin</h1>
    <p>What you need before integrating Zepto Flow: API keys, environments, and the SDK.</p>
  </div>
  <div class="zepto-docs-hero__visual" aria-hidden="true">
    <div class="zepto-docs-hero__glow"></div>
    <div class="zepto-docs-hero__icon">
      <img class="logo" alt="Zepto Flow" src="https://files.readme.io/dcc5db35e266b31d34fe90b3c87705e876f39854b29984127983f42e647d2187-Integration.png">
    </div>
  </div>
</div>

Before you integrate Flow, make sure you have the pieces below in place.

## Your API key

You create Payment Intents server-to-server with your **secret API key**. Keep the key on your backend.

<Zepto_Callout type="error" title="Never expose your secret API key in the browser" id="never-expose-your-secret-api-key">
Your secret key can create and manage payments. Only the `token` from `create-payment-intent` reaches the browser. That `token` works for a single Payment Intent only.
</Zepto_Callout>

## Environments

Flow runs in two environments:

| Environment | Use it for                                                               |
| ----------- | ------------------------------------------------------------------------ |
| **Sandbox** | Development and tests. Flow simulates the payments. No real money moves. |
| **Live**    | Production traffic.                                                      |

A `token` from one environment works only with the SDK bundle for that same environment. Do your development against the sandbox. Then switch both your backend endpoint and your bundle URL when you go live. See **[Test in the sandbox](https://docs.zeptopayments.com/docs/zepto-flow-sandbox-testing)**.

## The Flow SDK

The widget ships as a single self-contained browser bundle, one per environment. Load the bundle for your environment with one `<script>` tag:

```html
<!-- Sandbox -->
<script src="https://go.sandbox.zeptopayments.com/flow/assets/flow.js"></script>

<!-- Live -->
<script src="https://go.zeptopayments.com/flow/assets/flow.js"></script>
```

The bundle exposes a `ZeptoFlow` global. It bundles its own runtime, so you install nothing. It renders into a shadow root. Its styles never collide with your page.

<Zepto_Callout type="info" title="One bundle per environment" id="one-bundle-per-environment">
Load the bundle for the environment your `token` was created in. A sandbox `token` does not work with the live bundle.
</Zepto_Callout>

## Next steps

After you have your key and know your environment, **[create your first Payment Intent](https://docs.zeptopayments.com/docs/zepto-flow-create-payment-intent)**.