Update README.md

This commit is contained in:
Jeff Vandrew Jr 2019-03-17 09:29:23 -04:00 committed by GitHub
parent 66eb59f21e
commit 6209701d37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,6 +51,7 @@ new_invoice = client.create_invoice({"price": 20, "currency": "USD"})
```python
fetched_invoice = client.get_invoice(<invoice-id>)
```
The `fetched_invoixe` above will be a dictionary of all invoice data from the Bitpay API. For instance, you can check the payment status with `fetched_invoice['status']`.
### Get rates
```python