Skip to main content

ALFACoins API library

Project description

Python ALFACoins

A Python3.6 wapper aournd the ALFACoins APIs.

by Carrene.

Build Status Coverage Status

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alfacoins-0.1.0a2.tar.gz (7.8 kB view details)

Uploaded Source

File details

Details for the file alfacoins-0.1.0a2.tar.gz.

File metadata

  • Download URL: alfacoins-0.1.0a2.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for alfacoins-0.1.0a2.tar.gz
Algorithm Hash digest
SHA256 a6d078ca025b687e2c191409b375a2dba388f447d169d0a6671eee359dfced47
MD5 ce9f804af78e29051ab8ae30a8067d89
BLAKE2b-256 be7fb42b6e90222908f5017fdcc242d8969c229c2cb9dd91396efff32982646f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page