From 6645434663ace4f613e9ff2a2736bca27229e430 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 7 Mar 2023 14:43:48 -0800 Subject: static qr --- src/lib/invoice.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib') diff --git a/src/lib/invoice.js b/src/lib/invoice.js index 23ce1757..429efa2b 100644 --- a/src/lib/invoice.js +++ b/src/lib/invoice.js @@ -9,6 +9,8 @@ export default async ({ cookies, request, url }) => { let request_id = form.get('request_id'); if (request_id === 'undefined') request_id = undefined; + console.log("FORM", form.get('prompt')); + let invoice = { amount, tip: parseInt(form.get('tip')) || 0, @@ -31,6 +33,7 @@ export default async ({ cookies, request, url }) => { throw redirect(307, `/${user.username}/request/${request_id}`); } + console.log('PROMPT?', invoice.prompt); if (invoice.prompt) throw redirect(307, `/${user.username}/invoice/${hash}/tip`); else throw redirect(307, `/${user.username}/invoice/${hash}`); }; -- cgit v1.2.3