Skip to content

Latest commit

 

History

History
74 lines (50 loc) · 1.49 KB

README.md

File metadata and controls

74 lines (50 loc) · 1.49 KB

Acquirers

Python Acquirers

Acquirers at PYPI

Who uses this module

Supported Acquirers

Install

pip install Acquirers

Tinkoff

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"
}

Yandex.kassa

API Doc: https://kassa.yandex.ru/developers/api

Rocketpay

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")