Skip to main content

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

Release files for coingate 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for coingate 0.0.5
File Size Uploaded
coingate-0.0.5.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for coingate 0.0.5
File Interpreter ABI Platform
coingate-0.0.5-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 13.2 kB

Release files / coingate-0.0.5.tar.gz

Download URL coingate-0.0.5.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ba12dd6b79801e2e7d312fec5d88bfeb08b4e1abba7468901fb489bfdf2d6154
BLAKE2b-256 checksum
How to use checksums
050e9c1e703720c4eac4a31af4eafc410eff2e1f4dc34b9e674ba9bec75d9942
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / coingate-0.0.5-py2.py3-none-any.whl

Download URL coingate-0.0.5-py2.py3-none-any.whl
Size 7.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0ffb2a412ad2eaff9994eca81b47f04972524fbe506715b114c6f4940154ec15
BLAKE2b-256 checksum
How to use checksums
69b90761ea02b0ee4adf594ae9f42ed8c1c06aff7bd77f199e7b0f4e6f8d6d86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page