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
- 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.
- Deploy it everywhere that reads
PAYPAL_CLIENT_SECRET. - 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
- PayPal: Get started with PayPal REST APIs
- PayPal: Apps, scopes, and credentials
- PayPal: Test and go live
- PayPal: Security guidelines
- PayPal: Checkout with Node.js and Express
- PayPal REST API specifications
- PayPal TypeScript Server SDK: reads O_AUTH_CLIENT_SECRET
- PayPal Python Server SDK: reads O_AUTH_CLIENT_SECRET