Changeset ec288dc in Klonkt for test/paid-patron.test.js

Timestamp:
07/21/2026 03:11:39 AM (7 weeks ago)
Author:
Robin <roboburr@…>
Branches:
main
Children:
dede82e
Parents:
c7a211d
git-author:
Robin <roboburr@…> (07/21/2026 03:11:37 AM)
git-committer:
Robin <roboburr@…> (07/21/2026 03:11:39 AM)
Message:

Debug: show why a patron is rejected on the "Nog geen supporter" page

We are debugging boiert.eu blind (it's a self-hosted instance we can't see
the logs of), so surface the non-identifying diagnosis on the result page
itself. verifyPatron now always returns { status, cents, diag } after it
reaches Patreon, where diag is a breadcrumb: the configured campaign_id, the
memberships Patreon returned (campaign:status:cents each), and what got
picked. The paid-result page prints it small under the buttons so the tester
can read it and report back. No identity (name/email) is included or stored.

Once the cause is known this can be removed again.

Changed files:
src/services/PaidPatreonService.js

  • verifyPatron returns {status,cents,diag}; null only on hard misconfig

src/routes/paid.js

  • pass diag as debug to the notpatron/tier result page

src/views/pages/paid-result.ejs

  • small "diagnose:" line when debug is present

-robo
Co-Authored-By: Claude Opus 4.8 <noreply@…>

(No files)

Note: See TracChangeset for help on using the changeset viewer.