# tuna and YooKassa

## Step 1. Download the client

Instructions are available on the [installation page](https://tuna.am/en/docs/guides/install.md).

## Step 2. Run a server to handle HTTP notifications

Information about incoming YooKassa notifications can be found in the [official documentation](https://yookassa.ru/developers/using-api/webhooks), where you can also find instructions for creating a [test store](https://yookassa.ru/developers/payment-acceptance/testing-and-going-live/testing#test-store).

## Step 3. Run tuna

Specify your server port in the startup arguments:

```bash
tuna http 8080

```

Or with a static address:

```bash
tuna http 8080 --subdomain=billing

```

## Step 4. Specify the address for incoming notifications

On the [HTTP notifications](https://yookassa.ru/my/merchant/integration/http-notifications) page, in the Integration section, you need to specify the address for receiving notifications, such as payment status changes or refunds: ![yookassa](/en/assets/images/yookassa1-46e782a6d5ec4f70ea0c4bccb968e144.png) The URL consists of the address received from tuna (for example, `https://billing.ru.tuna.am`) and the path to your server's method for processing events (for example, `/payments/yookassa`).

After all settings are complete, you can use [test payment methods](https://yookassa.ru/developers/payment-acceptance/testing-and-going-live/testing#test-bank-card) to debug the interaction.
