Launch
Test, then go live
Test purchases are free, are checked exactly like real ones, and show under Sandbox in your dashboard. They never count as revenue.
1Test on iPhone
- Install your build from TestFlight (or run it from Xcode with a sandbox account signed in).
- Buy something. The sheet says it’s a test, and you’re never charged.
- In Vend16, switch to Sandbox. The purchase appears within a few seconds, under Transactions and on the customer’s page.
Subscriptions renew fast in sandbox (a month takes about five minutes), so you can watch renewals and expiry arrive too.
2Test on Android
- Install from your internal testing link with a licence tester’s Google account.
- Buy something. Choose the test card that always approves.
- It shows under Sandbox in Vend16. Within seconds we acknowledge it with Google, so it isn’t refunded after three days.
3Check these before launch
- A purchase that fails in the middle (turn on flight mode as the sheet closes) comes back on the next launch and is recorded once.
- Access comes from
GET /v1/subscribers/:appUserId, so deleting and reinstalling the app keeps it. - Restore works on a second device signed in as the same user.
- Consumables can be bought twice in a row.
- Your app’s Setup page shows the Apple notifications URL and a Google service account as connected, and the Getting started list on Overview is ticked.
Three rules that protect your money
- Tell the store a purchase is finished only after Vend16 answers
recorded,duplicateorrevoked. If the answer ispending, or Vend16 can’t be reached (a502or no network), leave it unfinished. The store hands it back on the next launch and you try again. - If Vend16 answers
422 invalid_receipt, finish it and unlock nothing. The store says it isn’t a real purchase. - Unlock from
active_product_idsinGET /v1/subscribers/:appUserId, never from a flag on the phone. Check it at launch and after every purchase.
Use a stable user ID from your own sign-in (or a UUID you keep on the device), never an email address.
4Go live
- Submit your app version with its in-app purchases attached (App Store) and roll the release out (Google Play).
- Real purchases show under Live. The first one ticks “First live sale” on your Overview, and push alerts on your phone if you’ve turned them on in the Vend16 app.
Stuck anywhere? Email hello@spruik.co and a real person replies.
Stuck? Email hello@spruik.co and a real person replies.