> For the complete documentation index, see [llms.txt](https://docs.fonbnk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fonbnk.com/widget-integration/getting-started.md).

# Getting started

### 1. Register

{% hint style="info" %}
Start in sandbox. It behaves the same but moves no real money.
{% endhint %}

| Environment | URL                                          |
| ----------- | -------------------------------------------- |
| Sandbox     | <https://sandbox-dashboard.fonbnk.com/login> |
| Production  | <https://dashboard.fonbnk.com/>              |

Sandbox and production accounts are separate. Register in both when you are ready to go live.

### 2. Get your widget credentials

Go to **Navigation → Integration**. Two things configure the widget:

* <mark style="color:yellow;">**Source**</mark> — the value you pass as the `source` URL parameter, which matches orders to your account.
* A <mark style="color:yellow;">**URL signature secret**</mark> — the key you sign the `signature` JWT with. You create it there, and you can rotate it; it is not a fixed value to copy once. Keep it server-side.

### 3. Set your webhook URL

Go to **Navigation → Webhooks → Settings** and set the URL to receive order updates at.

{% hint style="info" %}
A URL from <https://webhook.site/> is enough to see the payloads while you are building.
{% endhint %}

### 4. Build a widget URL

| Environment | Widget                                                            |
| ----------- | ----------------------------------------------------------------- |
| Sandbox     | [https://sandbox-pay.fonbnk.com](https://sandbox-pay.fonbnk.com/) |
| Production  | [https://pay.fonbnk.com](https://pay.fonbnk.com/)                 |

The root path opens the buy (on-ramp) flow; `/offramp` opens sell.

Next: [Signing the URL](/widget-integration/signing-the-url.md), then [URL params](/widget-integration/url-params.md) for everything you can configure. [Integration examples](/widget-integration/integration-examples.md) has three complete URLs to copy, and [Skipping screens](/widget-integration/skipping-screens.md) shows how to shorten the journey.

If your users arrive from inside a wallet app or a crypto browser, see [Native wallet integration](/widget-integration/native-wallet-integration.md) — we can brand the connect step for your environment.

{% hint style="warning" %}
In production, `source`, `signature`, `address` and `freezeWallet` need a verified merchant account. Contact us to start KYB before you plan a launch around them.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.fonbnk.com/widget-integration/getting-started.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
