attempting to fix "can't look up exception for http status 200"
This commit is contained in:
parent
8717ad477e
commit
107a5fc659
@ -120,15 +120,15 @@ def btcpay_webhook():
|
|||||||
|
|
||||||
current_app.logger.info(f"got btcpay webhook")
|
current_app.logger.info(f"got btcpay webhook")
|
||||||
|
|
||||||
# IMPORTANT! there is no signature or credential for the data sent into this webhook :facepalm:
|
# IMPORTANT! there is no signature or credential to authenticate the data sent into this webhook :facepalm:
|
||||||
# its just a notification, thats all.
|
# its just a notification, thats all.
|
||||||
request_data = json.loads(request.data)
|
request_data = json.loads(request.data)
|
||||||
invoice_id = request_data['id']
|
invoice_id = request_data['id']
|
||||||
|
|
||||||
# so you better make sure to get the invoice directly from the horses mouth!
|
# so you better make sure to get the invoice data directly from the horses mouth!
|
||||||
result = poll_btcpay_session(invoice_id)
|
result = poll_btcpay_session(invoice_id)
|
||||||
|
|
||||||
abort(result[0], result[1])
|
return result[1], result[0]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user