mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-26 20:06:17 +02:00
format
This commit is contained in:
@@ -27,11 +27,11 @@ async def on_invoice_paid(payment: Payment) -> None:
|
|||||||
tipAmount = payment.extra.get("tipAmount")
|
tipAmount = payment.extra.get("tipAmount")
|
||||||
|
|
||||||
strippedPayment = {
|
strippedPayment = {
|
||||||
"amount":payment.amount,
|
"amount": payment.amount,
|
||||||
"fee":payment.fee,
|
"fee": payment.fee,
|
||||||
"checking_id":payment.checking_id,
|
"checking_id": payment.checking_id,
|
||||||
"payment_hash":payment.payment_hash,
|
"payment_hash": payment.payment_hash,
|
||||||
"bolt11":payment.bolt11,
|
"bolt11": payment.bolt11,
|
||||||
}
|
}
|
||||||
|
|
||||||
await websocketUpdater(payment.extra.get("tposId"), str(strippedPayment))
|
await websocketUpdater(payment.extra.get("tposId"), str(strippedPayment))
|
||||||
|
Reference in New Issue
Block a user