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@…>