GitXplorerGitXplorer
i

alfacoins

public
11 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
68908fdb5ce52ebbb3b4d38572049053f6ba1306

Fixed typos in setup.py

iiRhonin committed 6 years ago
Unverified
e6f6aca489c9a39914e1a672e86661d99b7c28f7

v0.1.0a2

iiRhonin committed 6 years ago
Unverified
e32f507c2df112f971eff3b80ba29a7fc93e03b9

Updated README

iiRhonin committed 6 years ago
Unverified
174919b00a23e9d872689e324a2f1c8d9ddfb686

Added MIT license

iiRhonin committed 6 years ago
Unverified
60df35d91cd2c2e886332916a11f19729fa1bad6

Added descreption for pypi

iiRhonin committed 6 years ago
Unverified
743c3eb873f6ad8c6c8033dfa15a9ba73e7c8c00

v0.1.0a1

iiRhonin committed 6 years ago

README

The README file for this repository.

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.