Basic CoinGate API client
Project description
Simple API client for the CoinGate service.
Usage
from coingate.client import CoinGateClient, CoinGateOrder
# Create a client
# To use the production API, add env="live"
client = CoinGateClient("app_id", "api_key", "api_secret")
# Prepare an order
new_order = CoinGateOrder.new(
"order-ID",
10.5,
"USD",
"USD",
callback_url='https://api.example.com/paymentcallback?token=randomtoken',
cancel_url='https://www.example.com/ordercancelled',
success_url='https://www.example.com/orderprocessed')
# Create the order
placed_order = client.create_order(new_order)
# Get the payment URL:
print(placed_order.payment_url)
# List orders :
orders = list(client.iterate_all_orders())
# Get an order by id:
order = orders[0].coingate_id
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
coingate-0.0.3.dev1.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for coingate-0.0.3.dev1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5e9bf801293492a4aff6d4b5deee43b6f6970cdcae8f14d61ca2f287d3deadd |
|
MD5 | c2ba62e4432cb811a960a7faadffdfe7 |
|
BLAKE2b-256 | fd81a8f7315c216c7d8372f1ff410ecb33f3fbdd76e77ddd9186d5aaf4e2a1a4 |