Easy Coinbase API for simple payment acceptance
Project description
This library was created to simplify the creation and receipt of payments from the Coinbase api, provided on the official website, in the Python programming language.
Features
- Checking token validity
- Creating a bill for payment
- Information about the bill
Installation
Python version 3.2 or higher must be installed
pip install CoinbaseAPI
Using
To get your Api key, you need to register in Coinbase Commecre and get your key by following this link
Quick example of account creation and payment verification
Every 5 seconds the code will check the payment:
from CoinbaseAPI import CoinbaseAPI
from time import sleep
api_key = "YOUR_API_KEY"
api = CoinbaseAPI(api_key)
payment = api.create_charge("Test title", "Test description", 5.00, "USD")
print(payment.url)
while True:
if payment.is_paid():
print("Payment is paid!")
break
sleep(5)
License
GNU General Public License (GPL)
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
CoinbaseAPI-1.1.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for CoinbaseAPI-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 829f5913322e989c5dd889e07e3a04c67138d372aeb81021f6a9ae0f505c2e8a |
|
MD5 | 47e8303039d2b272dcdc7fd29d7fb4ed |
|
BLAKE2b-256 | 49457ba3c1b5a9ae5b41c475d631f87a20187f1566df7eab673c6fcff242f9a5 |