Skip to content

Latest commit

 

History

History
148 lines (96 loc) · 4.45 KB

README.md

File metadata and controls

148 lines (96 loc) · 4.45 KB

CryptAPI's Python Library

Python implementation of CryptAPI's payment gateway

Requirements:

Python >= 3.0
Requests >= 2.20

Install

pip install python-cryptapi

on pypi or on GitHub

Usage

Importing in your project file

from cryptapi import CryptAPIHelper

Generating a new Address

from cryptapi import CryptAPIHelper

ca = CryptAPIHelper(coin, myAddress, callbackUrl, params, cryptapiParams)

address = ca.get_address()['address_in']

Where:

  • coin is the coin you wish to use, from CryptAPI's supported currencies (e.g 'btc', 'eth', 'erc20_usdt', ...).
  • myAddress is your own crypto address, where your funds will be sent to.
  • callbackUrl is the URL that will be called upon payment.
  • params is any parameter you wish to send to identify the payment, such as {orderId: 1234}.