Test purchases without an App Store or Play account
To test purchases without an App Store or Google Play account, open the BillDog Test Store at /dashboard/test-store and create a mock purchase for a test user ID. It is recorded as a real sandbox purchase, so the entitlement, subscription, events and webhooks appear exactly as they would for a store purchase, and none of it counts as revenue. Check it in the dashboard or from your server with a sandbox secret key.
Steps last checked against the SDK source on 15 Nov 2026.
What you'll build
- A sandbox subscriber with an active
premiumentitlement - Your backend reading that entitlement, with no store account
- Trials, failed renewals and refunds you can replay on demand
What you'll need
- A BillDog project where you have write access (the demo project can't create test purchases)
- A product attached to a
premiumentitlement - A terminal with
curl, or your own backend, to read the result
1. Understand sandbox and production
2 minEvery BillDog project keeps sandbox and production data apart. Which side you're on is decided in three places:
- In your app: a
bd_public_test_key talks to sandbox, abd_public_live_key to production. - In the dashboard: the Production / Sandbox switch in the header filters every page and report.
- Over MCP: queries read production unless you pass
sandbox: true.
Test Store purchases are always sandbox, so they never touch real customers or revenue.
2. Open the Test Store
1 minGo to /dashboard/test-store in your project (type the address; the page isn't in the main sidebar). The page is called Test Store Environment and has four tabs: Mock Purchases, Test Users, Time Travel and Error Simulation.
3. Create a mock purchase
3 minIn Create Mock Purchase, fill in:
- Test User ID: the app user ID you'll sign in with, such as
test_user_123. The user is created if it doesn't exist. - Product: the product attached to
premium. - Test Scenario: start with Successful purchase. The others are free trial converts, renewal payment fails, purchase then refund, and declined card.
- Auto-renew: leave it on for a subscription.
Click Create Test Purchase.
4. Check it landed
2 minThe purchase appears under Recent Test Purchases with its state and expiry. Follow View the sandbox customer and entitlements, or switch the header to Sandbox and open Customers: the test user now has an active premium entitlement.
5. Read the entitlement from your server
4 minA Test Store purchase belongs to the Test User ID you typed, so read it the way your backend would: with a sandbox secret key, naming that user. Create one under Integration & Data → API Keys with Environment: Sandbox and Key Type: Secret (Server). Keep it on the server.
curl -X POST https://api.billdog.io/v1/get-customer-info \
-H "X-BillDog-API-Key: bd_secret_test_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"app_user_id": "test_user_123"}'In the response, data.entitlements contains an entry with "identifier": "premium" and "isActive": true.
An app using a public key can't sign in as this user. With a public key, the server identifies the caller by the device's own key and ignores any user ID the app sends, so logIn('test_user_123') in the app reads the device's own customer, not the test user. The one way to see the purchase in the app is to use the app's own anonymous user ID (the SDK's current app user ID on that install) as the Test User ID, with the app on a sandbox key: the purchase then lands on the device's own sandbox customer, and a fresh entitlement read unlocks it. Test Store purchases are for checking your entitlements, webhooks, dashboards and backend; to see an unlock in the app itself, make a store sandbox purchase (iOS, Android) or a Stripe test checkout.
6. Replay renewals, refunds and errors
5 min- Time Travel: enter Days Forward (optionally for one test user) and click Advance Time to run renewals at the product's real period. Check that your app relocks when a subscription lapses.
- Test Users: generate users with a persona (new, mid-trial, active subscriber, churned, high value) to fill dashboards and test segments.
When the flow works end to end, connect the real stores: App Store setup and Google Play setup.