Accept bitcoin with BitPay

bitcoin, payments, crypto, cash, ethereum, online payments
pip install bitpay==2.6.1910


BitPay Library for Python

Powerful, flexible, lightweight interface to the BitPay Bitcoin Payment Gateway API.

GitHub license Travis PyPI Supported Python versions Scrutinizer Coveralls

This library is only compatible with Python 2.7 and 3.*.

Getting Started

To get up and running with this library quickly, see these getting started guides:

API Documentation

API Documentation is available on the BitPay site.

Running the Tests

Before running the behavior tests, you will need a account and you will need to set the local constants.

To set constants: > source tasks/ "" your@email yourpassword

To run unit tests: > nosetests

To run behavior tests: > behave

Found a bug?

Let us know! Send a pull request or a patch. Questions? Ask! We're here to help. We will respond to all filed issues.

BitPay Support:

  • GitHub Issues
    • Open an issue if you are having issues with this library
  • Support
    • BitPay merchant support documentation

Sometimes a download can become corrupted for various reasons. However, you can verify that the release package you downloaded is correct by checking the md5 checksum "fingerprint" of your download against the md5 checksum value shown on the Releases page. Even the smallest change in the downloaded release package will cause a different value to be shown!

  • If you are using Windows, you can download a checksum verifier tool and instructions directly from Microsoft here:
  • If you are using Linux or OS X, you already have the software installed on your system.
    • On Linux systems use the md5sum program. For example:
      • md5sum filename
    • On OS X use the md5 program. For example:
      • md5 filename