> For the complete documentation index, see [llms.txt](https://kollect.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kollect.gitbook.io/docs/guides/testing-and-sandbox.md). Agents can also search and read this documentation through its [MCP server](https://kollect.gitbook.io/docs/~gitbook/mcp).

# Testing and sandbox

This page covers practical testing strategies without implying a separate undocumented public sandbox hostname.

***

## Testnet currencies

For integration testing, use **`invoiceCurrency`** and **`paymentCurrency`** values that map to **Sepolia** test tokens:

* `fUSDC-sepolia`
* `fUSDT-sepolia`

These values are part of the **allowed enum** in server-side validation alongside mainnet and Polygon mainnet identifiers.

***

## Webhook testing

* Expose your local listener with a tunnel (**ngrok**, **Cloudflare Tunnel**, etc.) — the webhook API rejects `localhost`/private/link-local addresses, so a bare local URL won't validate.
* Register the **HTTPS** tunnel URL as `webhookUrl` with `scope: "invoice_settlement"` via the profile webhook API.
* Use `POST /kollect/profile/webhook/test` to send a one-shot signed sample payload without creating a real payment, or trigger a real test payment and observe **POST** delivery with `x-kollect-signature` / `x-kollect-signature-v2`.

***

## Deposit wallet

Even in test configurations, the merchant record must have a **deposit wallet** resolved for payout initiation. Missing configuration typically surfaces as a **business error** mapped to `PAYMENT_PROCESSING_FAILED` during create-payment / initiate flow.

***

## Idempotency testing

{% stepper %}
{% step %}

### Call create-payment

Call create-payment with a fixed **`X-Idempotency-Key`** and body **A**; expect **`200`**.
{% endstep %}

{% step %}

### Repeat the same request

Repeat with the **same** key and body **A**; expect the **same** successful payload (cached).
{% endstep %}

{% step %}

### Change the body

Repeat with the **same** key and body **B**; expect **`409`** (`IDEMPOTENCY_CONFLICT`).
{% endstep %}
{% endstepper %}

***

## Related pages

* [Create payment URL](https://kollect.gitbook.io/docs/api-reference/create-payment.md)
* [Idempotency](https://kollect.gitbook.io/docs/security/idempotency.md)
