Skip to main content

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!

Metadata

Release files for commerce-coinbase 0.1.0

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

Source distribution (sdist)

Source distribution for commerce-coinbase 0.1.0
File Size Uploaded
commerce_coinbase-0.1.0.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for commerce-coinbase 0.1.0
File Interpreter ABI Platform
commerce_coinbase-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 22.7 kB

Release files / commerce_coinbase-0.1.0.tar.gz

Download URL commerce_coinbase-0.1.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
dda053973acaf36e7a042f08779b0b857566bf0e2d94d427501a718b13522e07
BLAKE2b-256 checksum
How to use checksums
bd45047a59b507acba1d9c559f2b04c47f78a954479b57538b93227b079847cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.2

Release files / commerce_coinbase-0.1.0-py3-none-any.whl

Download URL commerce_coinbase-0.1.0-py3-none-any.whl
Size 17.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
429f54e763e57e2224ea7fd4afb571bad988e6e04df645e5989cef436eabe504
BLAKE2b-256 checksum
How to use checksums
c91eb80c4bffce2d72cf0d3ee39212cda8b1ba076859139954fca01e91285aac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.2

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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