# Overview

The **sBTC Payment Gateway** lets merchants accept Bitcoin payments via sBTC on Stacks.\
Think of it as *Stripe for sBTC*: we handle wallet creation, transaction processing, and merchant payout — so you can focus on your business.

### How it Works

1. A **unique ephemeral wallet** is generated for each charge.
   * Each payment has a clean address.
   * Prevents address reuse → better privacy + accounting clarity.
2. The customer sends sBTC to this wallet.
3. The gateway confirms payment, then transfers funds to the merchant’s **payout wallet**.
4. The merchant is notified via **webhooks** and can track charges in the dashboard.

### Processing Pipeline

```
Customer → Ephemeral Wallet → Merchant Payout Wallet
```

This design:

* Isolates customer deposits from the hot wallet
* Makes every charge auditable, single-use, and secure

#### Why an Ephemeral Wallet?

Instead of paying merchants directly:

* **1 address = 1 charge** → easy mapping between blockchain txs and your records.
* Improved **traceability** + reconciliation.
* Limits risk by avoiding permanent address reuse.


---

# Agent Instructions: 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:

```
GET https://spay.gitbook.io/spay-docs/getting-started/readme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
