mirror of
https://github.com/lnbits/lnbits.git
synced 2025-06-26 08:41:04 +02:00
lndrest fees for fastapi (#459)
This commit is contained in:
parent
d21b68a5e7
commit
43b48376bb
@ -117,8 +117,9 @@ class LndRestWallet(Wallet):
|
|||||||
data = r.json()
|
data = r.json()
|
||||||
payment_hash = data["payment_hash"]
|
payment_hash = data["payment_hash"]
|
||||||
checking_id = payment_hash
|
checking_id = payment_hash
|
||||||
|
fee_msat = int(data["payment_route"]["total_fees_msat"])
|
||||||
preimage = base64.b64decode(data["payment_preimage"]).hex()
|
preimage = base64.b64decode(data["payment_preimage"]).hex()
|
||||||
return PaymentResponse(True, checking_id, 0, preimage, None)
|
return PaymentResponse(True, checking_id, fee_msat, preimage, None)
|
||||||
|
|
||||||
async def get_invoice_status(self, checking_id: str) -> PaymentStatus:
|
async def get_invoice_status(self, checking_id: str) -> PaymentStatus:
|
||||||
checking_id = checking_id.replace("_", "/")
|
checking_id = checking_id.replace("_", "/")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user