# Notification of payment

After payment, a request containing payment information will be sent to the **notification URL** specified in your store settings

<table><thead><tr><th width="412">Key</th><th>Description</th></tr></thead><tbody><tr><td>shop_id</td><td>Project public key</td></tr><tr><td>amount</td><td>Payment amount</td></tr><tr><td>order_id</td><td>Order ID</td></tr><tr><td>currency</td><td>Payment currency (RUB, USD, EUR)</td></tr><tr><td>test</td><td>If it was set at the time of payment</td></tr><tr><td>sign</td><td>Request Signature</td></tr></tbody></table>

The signature is formed in the same way as when a form is created, but all fields are involved in the hash formation, for example

```php
<?php 
$secret = 'GB%^&*YJni677';
$data = $_POST;
unset($data['sign']);
ksort($data);
$str = http_build_query($data);
$sign = md5($str . $secret);
```


---

# 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://tegro.gitbook.io/en/tegro-money/creating-a-payment/notification-of-payment.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.
