This release is a pre-release and may not be stable for production use.
Python ALFACoins
A Python3.6 wapper aournd the ALFACoins APIs.
by Carrene.
Description
alfacoins is a Python3.6 Library for interacting with ALFAcoins API.
alfacoins provides cryptocurrency payment integration on your website via ALFAcoins.
alfacoins allows you to integrate payments with the following cryptocurrencies:
- Bitcoin (BTC)
- Ethereum (ETH)
- XRP (XRP)
- Bitcoin Cash (BCH)
- Litecoin (LTC)
- Dash (DASH)
APIs
- get_fees
- get_rate
- get_rates
- create_order*
- order_status*
- bitsend*
- bitsend_status*
- refund*
- statistics*
*: Private API
Installation
pip3.6 install alfacoins
Getting Started
Gateway
You can get an instance of ALFACoins class like this:
For public APIs
from alfacoins import ALFACoins
alfacoins = ALFACoins()
For private APIs
from alfacoins import ALFACoins
alfacoins = ALFACoins(
name='shop-name',
password='password',
secret_key='07fc884cf02af307400a9df4f2d15490'
)
Create order
result = alfacoins.create_order(
type='litecointestnet',
amount=1.2345,
currency='USD',
order_id=1,
options={
'notificationURL': 'https://example.io/notify',
'redirectURL': 'https://example.io/redirect',
'payerName': 'Bob',
'payerEmail': 'no_reply@alfacoins.com',
},
description='This is for test!',
)
Additional information and API documentation is here: ALFAcoins API Reference.
Metadata
Release files for alfacoins 0.1.0a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| alfacoins-0.1.0a2.tar.gz | 7.8 kB | Without provenance | Details for alfacoins-0.1.0a2.tar.gz |
Release files / alfacoins-0.1.0a2.tar.gz
| Download URL | alfacoins-0.1.0a2.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6d078ca025b687e2c191409b375a2dba388f447d169d0a6671eee359dfced47
|
|
BLAKE2b-256 checksum How to use checksums |
be7fb42b6e90222908f5017fdcc242d8969c229c2cb9dd91396efff32982646f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
|
Security for alfacoins 0.1.0a2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.