Credentials stay on the server, and writes stay narrow
API keys and tokens are secrets on the Worker, not in the browser and not in the page. Each credential should have the smallest permission that the exchange needs. A key that can read customers should not also be able to refund payments. Webhooks are checked with the provider’s signature before the payload is trusted.
Tokens get rotated. The application should tolerate that rotation without a redeploy being the only plan. Write permission is separate from read permission, and the audit trail shows who or what approved a write. The web application around the integration is what enforces that boundary.
Where money is part of a product, billing is still this kind of exchange: a plan, a seat, or a cancellation has to be read and written under a contract. That product, when the software itself is the offer, is SaaS development. A knowledge answer that has to cite a row from one of these systems is AI knowledge systems.