BlackFortPay
BlackFort Payment API client for Python 3.6+
Installation
pip install blackfortpay
Usage
from blackfortpay import BlackFortPaymentAPI
>>> client = BlackFortPaymentAPI('api-user', 'api-secret')
>>> rate = client.start_payment(invoice_amount=100, invoice_currency='EUR', currency='BTC')
GetRateResponse(invoice_currency='EUR', invoice_amount='100.00', currency='BTC', rate='7014.0000', amount_exchange='0.01425719', network_processing_fee='0.00000452', amount='0.01425945', wait_time='7 minutes', fast_transaction_fee='0.00033656', fast_transaction_fee_currency='BTC/kB', payment_id='2a1eb341-5e87-4ad8-9f0b-089f5ff027f6')
>>> rate.rate
'7014.0000'
API reference available here