Modify IPN error

This commit is contained in:
susanna
2021-11-05 11:57:07 +01:00
parent 01d2a36d37
commit 0c251a6790
3 changed files with 21 additions and 8 deletions
+1 -1
View File
@@ -58,4 +58,4 @@ fetched_invoice = client.get_invoice(new_invoice['id'])
print("FETCHED INVOICE: ", new_invoice['id'])
curl --no-keepalive --raw --show-error --verbose --connect-timeout 10 --insecure --max-redirs 1 -H "Content-Type: application/json" -d '{"data": "{"id":"P38S4ewSvvLoRrBSoEiMTz"}"}" http://odoo-dev.zynthian.org/payment/btcpay/ipn
curl --no-keepalive --raw --show-error --verbose --connect-timeout 10 --insecure --max-redirs 1 -H "Content-Type: application/json" -d '{"data": "{"id":"8vQMp1C6gB1DxUyJB9gcBp"}"}" http://odoo-dev.zynthian.org/payment/btcpay/ipn
+12
View File
@@ -0,0 +1,12 @@
import requests
import json
url = 'https://odoo-dev.zynthian.org/payment/btcpay/ipn'
headers = {'Content-Type': 'application/json'}
data = {
"data": {
"id":"8vQMp1C6gB1DxUyJB9gcBp",
}
}
data_json = json.dumps(data)
r = requests.post(url=url, data=data_json, headers=headers)