We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1a2f37a + 62a66f4 commit 46c8975Copy full SHA for 46c8975
1 file changed
lnurl.py
@@ -136,7 +136,7 @@ async def lnurl_callback(
136
return {"status": "ERROR", "reason": f"Amount mismatch. Expected {payment.sats} msats."}
137
138
try:
139
- payment_hash, payment_request = await create_invoice(
+ invoice = await create_invoice(
140
wallet_id=device.wallet,
141
amount=int(amount / 1000),
142
memo=create_payment_memo(device, switch),
@@ -155,10 +155,10 @@ async def lnurl_callback(
155
},
156
)
157
158
- await update_payment(payment_id=paymentid, payhash=payment_hash)
+ await update_payment(payment_id=paymentid, payhash=invoice.payment_hash)
159
160
return {
161
- "pr": payment_request,
+ "pr": invoice.bolt11,
162
"routes": [],
163
}
164
except Exception as e:
0 commit comments