Apps and their four keys
One app per product. Each has a public and a secret key for the sandbox and for live traffic.
An app is one place your wall runs: a website, a mobile app or a game. If you run several products, add an app for each, so every one has its own currency, design and statistics.
The keys
Each app has four keys. You find them on the app page under Keys.
- Sandbox public key (
yp_test_pk_…) goes into your page or app while you build. - Sandbox secret key (
yp_test_sk_…) stays on your server and checks sandbox postbacks. - Live public key (
yp_live_pk_…) goes into your page or app in production. - Live secret key (
yp_live_sk_…) stays on your server. Never put it in a page, an app or a game client.
The key decides whether you are in the sandbox or live. Nothing else in your integration changes.
If a secret key got out
Replace it on the app page under Keys. The old key stops working at once, so update your server in the same step. Public keys do not need replacing: they are meant to be seen.