Skip to content
This repository has been archived by the owner on Jun 1, 2019. It is now read-only.

Commit

Permalink
Change Content-type to json
Browse files Browse the repository at this point in the history
  • Loading branch information
r4victor committed Nov 23, 2018
1 parent 3a4ea1c commit 0504064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/integrations/BitPay/api.py
Expand Up @@ -32,7 +32,7 @@ def create_invoice(order, callback_url, redirect_url):
'country': order['customer']['country'],
}
}
response = requests.post(CREATE_INVOICE_ENDPOINT, data=data)
response = requests.post(CREATE_INVOICE_ENDPOINT, json=data)
if response.status_code is not 200:
return None
response_data = response.json()['data']
Expand Down

0 comments on commit 0504064

Please sign in to comment.