pip install Acquirers
API Documnetation: https://oplata.tinkoff.ru/landing/develop/documentation/processing_payment
from Acquirers.Tinkoff import TinkoffSimplePayment
t = TinkoffSimplePayment(terminal_id, password)
t.init(tr.id, amount_tinkoff, data={"Phone": "+79999999999"})
Result
{
"Success": true,
"ErrorCode": "0",
"TerminalKey": "1520095906182DEMO",
"Status": "NEW",
"PaymentId": "14458036",
"OrderId": "02eb4dae-ec1e-44b2-844f-4e5c21e0bb88",
"Amount": 100,
"PaymentURL": "https://securepay.tinkoff.ru/pX81zg"
}
API Doc: https://kassa.yandex.ru/developers/api
from Acquirers.Rocketpay import RocketpaySimplePayment
rp = RocketpaySimplePayment()
rp.merchant_id = '4'
rp.terminal_id = '4'
rp.secret_key = '265af92d-1ed8-433b-8c54-fa02a45f1227'
Инициируем платёж
rp.init(order_id="example", amount="1.0")