Developer Portal
Documentation & API
Welcome to the Subkit developer hub. Query real-time subscription statuses, integrate native SDKs, or check system uptimes.
Sovereign Client SDKs
Integrate receipt validation and entitlement management natively.
import Subkit
// 1. Initialize Subkit SDK inside AppDelegate
Subkit.configure(
apiKey: "sb_live_eu_77e09e9373ea",
userId: "user_90412"
)
// 2. Fetch Active Offerings remotely
Subkit.shared.getOfferings { offerings, error in
guard let offerings = offerings, error == nil else { return }
if let premiumPackage = offerings.current?.monthly {
print("Product Price: \(premiumPackage.storeProduct.localizedPriceString)")
}
}
// 3. Purchase a Package and get Entitlements
Subkit.shared.purchase(package: premiumPackage) { transaction, customerInfo, error in
if customerInfo?.entitlements["premium"]?.isActive == true {
print("Success! User is now Premium.")
}
}💡 Pro-Tip: Subkit is fully open source. You can host this validation layer on your own servers or connect to our hosted servers inside the EU, complying completely with European GDPR policies natively.