> For the complete documentation index, see [llms.txt](https://wiki.aaio.so/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.aaio.so/priem-platezhei/sozdanie-zakaza-perekhodom-na-formu-ustarevshee/primer-polucheniya-ssylki-na-python.md).

# Пример получения ссылки на Python

```python
import hashlib
from urllib.parse import urlencode

merchant_id = '' # ID Вашего магазина
amount = 10.54 # Сумма к оплате
currency = 'RUB' # Валюта заказа
secret = '' # Секретный ключ №1 из настроек магазина
order_id = 'python_order_1' # Идентификатор заказа в Вашей системе
desc = 'Order Payment' # Описание заказа
lang = 'ru' # Язык формы

sign = f':'.join([
    str(merchant_id),
    str(amount),
    str(currency),
    str(secret),
    str(order_id)
])

params = {
    'merchant_id': merchant_id,
    'amount': amount,
    'currency': currency,
    'order_id': order_id,
    'sign': hashlib.sha256(sign.encode('utf-8')).hexdigest(),
    'desc': desc,
    'lang': lang
}

# Выводим ссылку
print("https://aaio.so/merchant/pay?" + urlencode(params))
```
