feat: return payment status in the websocket response (#3025)

This commit is contained in:
Vlad Stan 2025-03-10 12:48:40 +02:00 committed by GitHub
parent 41abe63f18
commit ebd080192c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -261,7 +261,8 @@ async def send_ws_payment_notification(wallet: Wallet, payment: Payment):
await websocket_manager.send_data(payment_notification, wallet.adminkey)
await websocket_manager.send_data(
json.dumps({"pending": payment.pending}), payment.payment_hash
json.dumps({"pending": payment.pending, "status": payment.status}),
payment.payment_hash,
)