Fix · Payments
My payment secret key is in the website code
UrgentSecurity
What you may see
- The gateway secret appears in the page source or in GitHub
Most likely cause
Payment secrets must stay on the server; anything in browser code or a public repository is visible to everyone.
Check first (about two minutes)
- Search the project and the live page source for the start of the key.
The fix prompt
What you type here never leaves your browser. The search runs on this page, and nothing is sent to a server or to an AI.
Kept only in this browser, on this device. Keys and passwords are removed before anything is saved.
Prompt language
Paste it into Claude, ChatGPT, Gemini or Cursor, then follow what it says.
After you tried it, did it work?
Steps
- FIRST tell me to ask the gateway to rotate or reissue the keys now, and to check recent payments and refunds for anything I do not recognise.
- Move all calls that use the secret to server code and read the secret from a server-only variable.
- Remove it from Git history if it was committed (with my approval), and add checks that stop secrets from being committed.
Do not do this
- Do not paste the new key into chat.
- Do not wait to see if someone used it. Rotate first.