Skip to content
This repository has been archived by the owner on Dec 24, 2021. It is now read-only.

Commit

Permalink
#v2.4 - Set headers get invoice (#14)
Browse files Browse the repository at this point in the history
- client improvement
- Readme updated
  • Loading branch information
Antonio Buedo committed May 22, 2019
1 parent 9654bd4 commit 3a8bc4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ Powerful, flexible, lightweight interface to the BitPay Bitcoin Payment Gateway
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://raw.githubusercontent.com/bitpay/bitpay-python/master/LICENSE.txt)
[![Travis](https://img.shields.io/travis/bitpay/bitpay-python.svg?style=flat-square)](https://travis-ci.org/bitpay/bitpay-python)
[![PyPI](https://img.shields.io/pypi/v/bitpay.svg?style=flat-square)](https://pypi.python.org/pypi?%3Aaction=pkg_edit&name=bitpay)
[![Code Climate](https://img.shields.io/codeclimate/github/bitpay/bitpay-python.svg?style=flat-square)](https://codeclimate.com/github/bitpay/bitpay-python)
[![Scrutinizer](https://img.shields.io/scrutinizer/g/bitpay/bitpay-python.svg?style=flat-square)](https://scrutinizer-ci.com/g/bitpay/bitpay-python/)
[![Coveralls](https://img.shields.io/coveralls/bitpay/bitpay-python.svg?style=flat-square)](https://coveralls.io/r/bitpay/bitpay-python)

This library is only compatible with Python 3. Please use the bitpay-python-py2 library for Python 2 installations.
This library is only compatible with Python 3.

## Getting Started
To get up and running with this library quickly, see these getting started guides:
Expand Down
3 changes: 2 additions & 1 deletion bitpay/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ def create_invoice(self, params):

def get_invoice(self, invoice_id):
uri = self.uri + "/invoices/" + invoice_id
headers = {'accept': 'application/json'}
try:
response = requests.get(uri, verify=self.verify)
response = requests.get(uri, headers=headers, verify=self.verify)
except Exception as pro:
raise BitPayConnectionError(pro.args)
if response.ok:
Expand Down

0 comments on commit 3a8bc4c

Please sign in to comment.