Launch offer for the first 500 accounts: $10K MTR free for 24 months + $100 credit →
    .io
    Testing
    Any platform
    Beginner
    17 min

    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 premium entitlement
    • 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 premium entitlement
    • A terminal with curl, or your own backend, to read the result

    1. Understand sandbox and production

    2 min

    Every 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, a bd_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 min

    Go 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 min

    In 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 min

    The 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 min

    A 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.

    Terminal
    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.

    Frequently asked questions

    Yes, on the server side. The BillDog Test Store creates sandbox purchases from the dashboard that grant entitlements and create subscriptions, events and webhooks like real store purchases, so you can test your backend, webhooks and dashboards before you set up either store.

    No. They are recorded as sandbox data, which is kept apart from production and excluded from production revenue reports.

    Not with a public SDK key. The server identifies an app by its device key and ignores user IDs the app sends, so the app reads its own customer, not the test user. Read Test Store purchases from the dashboard or from your server with a sandbox secret key, and use store sandbox purchases or a Stripe test checkout to see the unlock in the app.

    Yes. Pick the free trial, failed renewal or refund scenario when creating the purchase, and use Time Travel to move a subscription forward by days to trigger renewals.

    Reference

    Ship it on a free project

    Create a project, grab your SDK key and follow along. Sandbox purchases and data stay separate from production, so test transactions never mix with real revenue.

    We use cookies and process your data to provide our services. By continuing, you agree to our Terms and Privacy Policy.