Repository navigation
feat(admin): payment health card on Integration credentials - #227
Merged
Merged
Conversation
What a merchant otherwise learns only when a customer can't pay — bactrack.in.th had an undecryptable key and an unregistered webhook, both invisible until a test purchase: - Beam mode: Live / Playground / custom API host (from BEAM_BASE_URL). - Credentials: all resolve, or which are not set / can't be decrypted, plus env vars that look like Beam keys but aren't read. - Last webhook: when a VERIFIED Beam webhook last arrived (recorded in KV by the webhook route after the signature check), or how to register one if none ever has. - Test connection: one read-only GET /api/v1/charges?limit=1 with the stored credentials; reports accepted / rejected / unreachable. Names and timestamps only; super_admin only, like the rest of the page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
thunpisit
changed the base branch from
fix/payment-config-diagnostics
to
main
October 25, 2026 12:45
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 2.7. Stacked on #226: merge that first; this then retargets to main.
What
A Payment health card at the top of
/admin/settings/secrets(super_admin only):BEAM_BASE_URL.BEAM_SECRET_KEY).GET /api/v1/charges?limit=1; accepted / rejected (401/403) / unreachable.Names and timestamps only, never values.
Verified on a local worker (wrangler dev, fake Beam at
BEAM_BASE_URL, throwaway local super admin)BEAM_BASE_URLwas reported as an unread lookalike. Fixed on fix(shop): PAYMENT_PROVIDER_NOT_CONFIGURED names the credential that's wrong (#216) #226 (BASE_URLoverrides are read).Tests
payment-health.node.test.ts(9): mode mapping; configured + no webhook; last-webhook timestamp; lookalike flagged; recording never throws; test connection 200 / 401 / unreachable with one GET; route records only after verification.Gate: lint 0 errors · check 0 · 1183/1183 · build · contract-guard · css-inventory +2 classes.
🤖 Generated with Claude Code