Keys / PayPal

PAYPAL_CLIENT_SECRET

The client secret your server exchanges, with the client ID, for an access token to call PayPal's REST APIs. It stays on the server.

Expires
the docs don't say
API
none; Developer Dashboard only

Get it

Create one on developer.paypal.com/dashboard/applications. The steps aren't recorded yet.

Set it

PAYPAL_CLIENT_SECRET=...

No official PayPal SDK reads this variable. The Server SDKs' fromEnvironment reads O_AUTH_CLIENT_SECRET; PayPal's guides pass PAYPAL_CLIENT_SECRET in. Or keep it out of .env with keypin: keypin run -- npm run dev

Replace it

  1. In Apps & Credentials, open the app on the Sandbox or Live tab and generate a new secret. PayPal's docs say the dashboard generates and revokes credentials but don't list the steps.
  2. Deploy it everywhere that reads PAYPAL_CLIENT_SECRET.
  3. Check that nothing still uses the old secret, then revoke it in the same place.

Set rotate_every on the key in keypin.toml and a rotated date on its vault item, and keypin status shows when it's due.

Sources, checked 2026-11-16