horse revenue Docs

Start here

Horse Revenue developer docs

Horse Revenue runs the subscription side of your app. It records every App Store purchase, decides who has access, draws the paywalls you design in the dashboard, and shows what your app earns. These docs take you from a new account to an app that sells.

#What you need

  • An Apple Developer Program membership, and access to App Store Connect as an Admin or App Manager.
  • An app with at least one in-app purchase or subscription set up in App Store Connect. It can still be waiting for review.
  • Xcode 15 or later. The Horse iOS SDK supports iOS 15, macOS 12, tvOS 15, watchOS 8 and visionOS 1 or later.
  • A Horse Revenue account. Creating one is free and needs no card.

#How it fits together

Your app talks to Horse through the Horse iOS SDK (the HorseKit Swift library). The SDK sells through StoreKit 2, sends each purchase to Horse, and keeps the customer's access cached on the device. Apple tells Horse about everything that happens after that, such as renewals, refunds and billing problems, through App Store Server Notifications. The dashboard is where you set up what your app sells and see what it earns.

import HorseKit

Horse.configure(apiKey: "pk_…", baseURL: URL(string: "https://tally-api-755619271848.us-central1.run.app")!)

if Horse.shared.isEntitled("pro") { showProFeatures() }

How Horse works explains the handful of ideas behind it: entitlements, products, offerings, placements and paywalls.

#Android

The Horse Android SDK is in preview: it works end to end, but it isn't on Maven Central yet and we set up Google Play with you. Read about the preview.