Sandbox and live

Every app has two modes with separate keys. The key you use decides the mode; nothing else changes in your code.

SandboxLive
Keysyp_test_pk_…, yp_test_sk_…yp_live_pk_…, yp_live_sk_…
SurveysPractice surveys that end the way you chooseReal surveys, matched to each user
EarningsNone. Nothing reaches your balanceAdded to your balance and invoiced monthly
PostbacksSent to the same URL with test=1, signed with the sandbox secret keySent with test=0, signed with the live secret key
APIReturns sandbox data onlyReturns live data only
DashboardThe Live / Sandbox switch at the top chooses which data and which keys you see

A full test run

  1. Put your sandbox public key into your integration and open the wall as any user id.
  2. Open a practice survey. Instead of questions you get the endings a real survey can have.
  3. Choose Complete the survey. Your server receives a postback with status=completed and test=1.
  4. On the result page choose Now reverse it. Your server receives status=reversed with the same transaction_id and the reward negated.
  5. Open another practice survey and choose Screen out to see status=screenout.
  6. Check the conversions and the postback log in your dashboard, with the switch on Sandbox.

Going live checklist

Secret keys can be replaced at any time from the app page. The old key stops working at once, so update your server in the same step.