Help home
Using the app
Heartisan Studio
Setup & settings
Back to heartisan.app
Client portal

In-app purchase setup

For admins

If you sell subscriptions or content inside your iOS or Android app, Apple and Google require it to go through their own billing rather than a card payment. This page covers the details they need from you.

The in-app purchase settings showing the Apple shared secret and Google service account fields.
In-app purchase credentials, alongside the rest of the payment settings.
Do you actually need this? Donations and event tickets generally don't go through in-app purchase — they're covered by Stripe. It's digital content sold in the app — subscriptions unlocking media, paid courses — that the stores require to use their billing, with their commission. If you only take giving, skip this.

Everything below is on Settings → Payments & Sign-in, under In-app purchases.

Two of these you've already done. Verifying a purchase uses the same bundle ID and the same Play service account you publish with, so they're taken straight from Store Credentials and shown here read-only. Change them there and this page follows automatically.

Apple

Apple Bundle ID
Inherited. Your app's identifier — the same one used to publish it. Set it under App bundle ID.
App-Specific Shared Secret
Used to verify purchases with Apple. Find it in App Store Connect under your app → App Information → App-Specific Shared Secret.

Google

Google Package Name
Inherited. The same bundle ID as above — Android publishes under it too.
Play service account
Inherited. The JSON key uploaded under Store Credentials → Android. Without one, Android purchases can't be verified — that page has the full walkthrough, including where Play Console moved it to.
RTDN verification token (optional)
A shared secret added to Google's real-time notification URL, so we can confirm messages about subscription changes genuinely came from Google.
Selling through a different Apple or Play account than the one you publish under is unusual, but supported: tick Verify purchases against a different store account than the one I publish with, and the bundle ID, package name and service account become editable instead of inherited. It's set per app, so one of your apps can sell through its own store account while the rest keep using the account they're published from.

Creating the products

The credentials above let us verify purchases — you still have to create the products themselves in each store:

  1. Create the subscription or product in App Store Connect and in the Play Console.
  2. Note each store's product ID.
  3. Enter those product IDs on the matching price point under Purchase Tiers.
Each store has its own product ID for the same amount. That's expected — a price point holds an identifier for every billing system it's sold through, and everything priced at that amount then uses them. You enter them once, not per item.
Apple and Google treat one-off purchases and subscriptions as different product types, so create the store product to match the price point's type — and a separate price point if you sell both at the same amount.

Worth knowing before you commit

  • The stores take a commission on in-app sales. Factor that into your pricing.
  • Store review is stricter for apps with purchases — expect questions about what's being sold.
  • Subscriptions are managed by the store, so cancellations happen in the member's Apple or Google account, not by you. The app links them to the right place.
  • Members switching device use Restore purchases in the app to re-link what they've bought.

Troubleshooting

  • Purchases fail verification — check the shared secret (Apple) or service account permissions (Google).
  • A subscription isn't recognised — have the member try Restore purchases while signed in to the right account.
  • Products don't appear in the app — the product IDs don't match, or the product isn't approved in the store yet.