openhuman
openhuman copied to clipboard
Fix production payment gateway keys/configuration
Summary
Review production payment gateway configuration and ensure the correct keys/credentials are being used so payments work reliably.
Problem
Production payments may be failing or behaving inconsistently due to incorrect, missing, mismatched, or stale payment gateway keys.
Objective
Validate and fix production payment configuration end-to-end without exposing secrets.
Scope
- Audit production payment gateway configuration:
- publishable key
- secret key
- webhook signing secret
- environment mode (live vs test)
- callback/success/cancel URLs
- Verify backend and frontend are using matching live-mode configuration.
- Confirm webhook endpoint receives and validates payment events correctly.
- Validate plan/top-up/credit updates after successful payment.
- Add safe diagnostics that identify config mismatch without logging secrets.
- Document required production environment variables and rotation process.
Acceptance Criteria
- Production payment keys are correct and live-mode aligned.
- Payment checkout opens and completes successfully.
- Webhook events are received, verified, and processed correctly.
- User plan/credit state updates after payment.
- No payment secrets are exposed in logs, UI, or error messages.
@Al629176 The production payment keys were set up by @CodeGhost21. He can verify them by checking against the Stripe dashboard and also cross-check the webhook URLs.