diff --git a/src/pages/api/invoices/polling.js b/src/pages/api/invoices/polling.js index 22a5716..52beb44 100644 --- a/src/pages/api/invoices/polling.js +++ b/src/pages/api/invoices/polling.js @@ -83,9 +83,8 @@ export default async function handler(req, res) { tags: [ ["p", parsedZapRequest.tags.find(t => t[0] === "p")[1]], ["bolt11", response.data.payment_request], - ["description", parsedZapRequest.content], + ["description", JSON.stringify(parsedZapRequest)], ["preimage", preimage], - ["request", JSON.stringify(parsedZapRequest)] ] }; @@ -120,4 +119,4 @@ export default async function handler(req, res) { console.error('Error in polling endpoint:', error); res.status(500).json({ error: 'Internal server error' }); } -} +} \ No newline at end of file