BlackFort Payment API client
Project description
BlackFortPay
BlackFort Payment API client for Python 3.6+
Installation
pip install blackfortpay
Usage
from blackfortpay import BlackFortPaymentAPI
# pass API User key and API Secret key or store them as environment variables BLACKFORT_API_USER_KEY and BLACKFORT_API_SECRET_KEY
>>> client = BlackFortPaymentAPI('api-user', 'api-secret') # also you can pass pos_id and locale
>>> 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'
# Change pos_id and locale if needed by set_pos_id() and set_locale() methods
API reference available here
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
blackfortpay-0.0.1.tar.gz
(2.6 kB
view details)
Built Distribution
File details
Details for the file blackfortpay-0.0.1.tar.gz
.
File metadata
- Download URL: blackfortpay-0.0.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ddde94f9ef617fa25b5f377218e39a0a48b2aebf6e123309ea0abe5ab5f865b |
|
MD5 | 34013ccfca8c7f68d2d595da5c88874d |
|
BLAKE2b-256 | 85ae51c4cd68e1492ac3d5a4da2550e7ee5eed67d12a91fde7be1864190c1c5e |
File details
Details for the file blackfortpay-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: blackfortpay-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1950269295ff0f46ed669c03fb620cea7919007f0e7b4476df59a593e2d66d97 |
|
MD5 | 7d03cd6936dbcc2b4b3fdbb75ac26fbb |
|
BLAKE2b-256 | 2f9aba10e2fcf33a8862472dd4e275206c8bf3a5231627d91643c8f80f54fec7 |