fixed payment threshold webhook
This commit is contained in:
parent
77860ec16d
commit
ab81fb08b0
2 changed files with 7 additions and 6 deletions
|
|
@ -71,13 +71,13 @@ async def lnurl_callback(cp_id):
|
|||
wallet_id=cp.wallet,
|
||||
amount=int(amount_received / 1000),
|
||||
memo=cp.lnurl_title,
|
||||
webhook=url_for(
|
||||
webhook=str(url_for(
|
||||
"copilot.api_copilot_hooker",
|
||||
copilot_id=cp_id,
|
||||
amount=int(amount_received / 1000),
|
||||
comment=comment,
|
||||
_external=False,
|
||||
),
|
||||
_external=True,
|
||||
))[:-1],
|
||||
description_hash=hashlib.sha256(
|
||||
(
|
||||
LnurlPayMetadata(json.dumps([["text/plain", str(cp.lnurl_title)]]))
|
||||
|
|
@ -92,12 +92,12 @@ async def lnurl_callback(cp_id):
|
|||
routes=[],
|
||||
)
|
||||
print(
|
||||
url_for(
|
||||
str(url_for(
|
||||
"copilot.api_copilot_hooker",
|
||||
copilot_id=cp_id,
|
||||
amount=int(amount_received / 1000),
|
||||
comment=comment,
|
||||
_external=False,
|
||||
)
|
||||
_external=True,
|
||||
))[:-1]
|
||||
)
|
||||
return jsonify(resp.dict())
|
||||
|
|
|
|||
|
|
@ -239,6 +239,7 @@
|
|||
if (res[1].substring(0, 3) == 'htt') {
|
||||
document.getElementById('iframe_main').src = res[1]
|
||||
}
|
||||
console.log(res[2])
|
||||
if (res[2] != 'none') {
|
||||
this.showNotif(res[2])
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue