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.5.tar.gz
(5.7 kB
view details)
Built Distribution
File details
Details for the file coingate-0.0.5.tar.gz
.
File metadata
- Download URL: coingate-0.0.5.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba12dd6b79801e2e7d312fec5d88bfeb08b4e1abba7468901fb489bfdf2d6154 |
|
MD5 | e11bfd540208a88610437354e693f12c |
|
BLAKE2b-256 | 050e9c1e703720c4eac4a31af4eafc410eff2e1f4dc34b9e674ba9bec75d9942 |
File details
Details for the file coingate-0.0.5-py2.py3-none-any.whl
.
File metadata
- Download URL: coingate-0.0.5-py2.py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ffb2a412ad2eaff9994eca81b47f04972524fbe506715b114c6f4940154ec15 |
|
MD5 | c0a9a6aecc21bdc4a7525949a5789876 |
|
BLAKE2b-256 | 69b90761ea02b0ee4adf594ae9f42ed8c1c06aff7bd77f199e7b0f4e6f8d6d86 |