paivana

HTTP paywall reverse proxy
Log | Files | Refs | Submodules | README | LICENSE

commit df4c80e3f215cc0793552b733e3e6670f2024f2e
parent a123ed199496dafd28601c46415d0dafd94d6371
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 22 Jun 2026 11:35:55 +0200

pass missing nonce argument

Diffstat:
Mcontrib/paywall.en.must | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/paywall.en.must b/contrib/paywall.en.must @@ -84,7 +84,7 @@ const hash = await sha256b64(buf); return `${curTime}-${hash}`; } - async function confirmPayment(order_id, linkEl, errorEl) { + async function confirmPayment(order_id, linkEl, errorEl, nonce) { linkEl.textContent = I18N_PAYMENT_CONFIRMED_LOADING; linkEl.href = '#'; try { @@ -191,7 +191,7 @@ try { info = await res.json() } catch (_) {} console.log("[paivana] Got reponse from backend", res, info); if (info.order_id) { - await confirmPayment(info.order_id, talerLink, errorMessageLabel); + await confirmPayment(info.order_id, talerLink, errorMessageLabel, nonce); } else { talerLink.textContent = I18N_PAYMENT_CONFIRMED_NO_ORDER; const remMs = Math.round(POLL_WAIT_MS - (performance.now() - start));