Skip to main content

Easy Coinbase API for simple payment acceptance

Project description

N|Solid

Python

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

CoinbaseAPI-1.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file CoinbaseAPI-1.1.tar.gz.

File metadata

  • Download URL: CoinbaseAPI-1.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.6

File hashes

Hashes for CoinbaseAPI-1.1.tar.gz
Algorithm Hash digest
SHA256 6e9be7935103a052038a076b1c0a1028cb8dda3ef181c86b92542f0ea3d7e36b
MD5 7f6c720c3af047e482e836b44f951723
BLAKE2b-256 4a39ce8344fd332955522318ff49aadf5e134e5754856b2a22cc8fd240030400

See more details on using hashes here.

File details

Details for the file CoinbaseAPI-1.1-py3-none-any.whl.

File metadata

  • Download URL: CoinbaseAPI-1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.6

File hashes

Hashes for CoinbaseAPI-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 829f5913322e989c5dd889e07e3a04c67138d372aeb81021f6a9ae0f505c2e8a
MD5 47e8303039d2b272dcdc7fd29d7fb4ed
BLAKE2b-256 49457ba3c1b5a9ae5b41c475d631f87a20187f1566df7eab673c6fcff242f9a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page