Skip to main content

A simple unofficial Python wrapper for the Coinbase Commerce API.

Project description

Coinbase Commerce

Since the official Coinbase Commerce API wrapper is no longer being actively updated and has become outdated, I decided to take the initiative to write my own and commit to keeping it up-to-date. commerce_coinbase is a comprehensive Python library that simplifies interactions with the Coinbase Commerce API, enabling developers to easily integrate cryptocurrency payments into their applications. With commerce_coinbase, you can create charges, list charges, cancel charges, and verify webhook signatures directly from your Python code.

Features

  • Create Charges: Quickly generate new charges for your products or services.
  • List Charges: Retrieve a list of all created charges.
  • Cancel Charges: Cancel pending charges.
  • Verify Webhook Signatures: Ensure the integrity and origin of webhook events.

Installation

Install commerce_coinbase via pip to get started:

git clone https://github.com/MaxieDev/Coinbase-Commerce.git
cd Coinbase-Commerce
python setup.py install

Note: This package is not yet available on PyPI. Installation instructions will be updated upon release.

Getting Started

Here's how to create a new charge using commerce_coinbase:

from commerce_coinbase import CoinbaseCommerceAPI

# Initialize the API with your Coinbase Commerce API key
api = CoinbaseCommerceAPI(api_key="your_api_key_here")

# Create a new charge
response = api.create_charge(
    name="Awesome T-Shirt",
    description="Limited edition T-Shirt",
    amount=20.00,
    customer_id=1,
    customer_name="Alice Bobson",
    currency="USD"
)

print(response)

Documentation

For more detailed information about the Coinbase Commerce API's capabilities, visit the official Coinbase Commerce API documentation.

Examples

More examples on how to use commerce_coinbase can be found in the tests directory.

Contributing

Contributions to commerce_coinbase are welcome! Please refer to the Contributing Guidelines for more information on how to contribute to the project.

License

commerce_coinbase is made available under the GPL-3.0 License. For more details, see the LICENSE file in the repository.

Support and Contact

If you encounter any issues or have questions about commerce_coinbase, please file an issue on the GitHub issues page.


Thank you for considering commerce_coinbase for your cryptocurrency payment needs. Happy coding!

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

commerce_coinbase-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

commerce_coinbase-0.1.0-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file commerce_coinbase-0.1.0.tar.gz.

File metadata

  • Download URL: commerce_coinbase-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.2

File hashes

Hashes for commerce_coinbase-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dda053973acaf36e7a042f08779b0b857566bf0e2d94d427501a718b13522e07
MD5 6ce921ce2cc2f535df503c3e5c94317a
BLAKE2b-256 bd45047a59b507acba1d9c559f2b04c47f78a954479b57538b93227b079847cb

See more details on using hashes here.

File details

Details for the file commerce_coinbase-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for commerce_coinbase-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 429f54e763e57e2224ea7fd4afb571bad988e6e04df645e5989cef436eabe504
MD5 a9d616b9d6a3a0ef1b6ace2e3905b8a5
BLAKE2b-256 c91eb80c4bffce2d72cf0d3ee39212cda8b1ba076859139954fca01e91285aac

See more details on using hashes here.

Supported by

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