All guides

Selling iOS App Unlocks Through Your Own Web Checkout: External Purchase Links, Storefront Rules and License Entitlements

Apple now lets US storefront apps link to your own checkout, and the EU, Japan and Brazil allow it with an entitlement and a commission. How to sell iOS unlocks on the web with Stripe or Paddle and unlock the app with signed license entitlements, offline tokens, restores and automatic refunds.

iOS illustration for Selling iOS App Unlocks Through Your Own Web Checkout: External Purchase Links, Storefront Rules and License Entitlements

For years the rule for iPhone apps was simple: digital unlocks go through Apple in-app purchase, and the app may not even point to a cheaper price on your website. That rule now depends on the customer's App Store storefront. In the United States storefront, an app may show buttons and links to your own checkout without asking Apple first. In the EU, Japan and Brazil, Apple offers an entitlement for external purchase links, with a commission on sales that follow a link tap. Everywhere else, the old prohibition still applies.

This guide is for indie developers and small studios with an iOS or iPadOS app, often with a Mac, Windows or Android version too, who want to sell a Pro unlock or subscription through their own web checkout with Stripe or Paddle. It covers the storefront rules, how to read the storefront in StoreKit before you show an offer, and then the part most guides skip: how the app learns that the customer paid, keeps working offline, restores on a new iPhone and loses access after a refund. It ends with an App Review checklist. Apple's rules were checked against Apple's own pages on 29 November 2026; the links are listed at the end. Nothing here is legal or tax advice, and App Review makes the final call on every app.

The App Review Guidelines (last updated 16 October 2026) split the world into three groups. Guideline 3.1.1(a) says entitlements for purchase links "are not required for developers to include buttons, external links, or other calls to action in their United States storefront apps." For all other storefronts it says that, "except for the United States storefront, where this prohibition does not apply, apps and their metadata may not include buttons, external links, or other calls to action that direct customers to purchasing mechanisms other than in-app purchase", unless the app uses one of Apple's regional entitlements.

StorefrontLink to your web checkout?EntitlementApple commission on linked web sales
United StatesYes: buttons, links and other calls to actionNot requiredNone published by Apple (see below)
EUYes, as an out-of-app offerStoreKit External Purchases or Offers Entitlement15%, or 10% for program members and subscriptions after their first year, on sales within 7 days of the link tap
JapanYes, as an out-of-app offer to a websiteStoreKit External Purchases or Offers Entitlement15%, or 10% for program members and subscriptions after their first year, within 7 days
BrazilYes, as an out-of-app offer to a websiteStoreKit External Purchases or Offers Entitlement15%, or 10% for program members and subscriptions after their first year, within 7 days
Everywhere elseNo calls to action in the app or its metadataNot available for general appsNot applicable

The small-business rate also applies to the Mini Apps Partner and Video Partner programs. The table leaves out narrow programs, such as reader apps (3.1.3(a)), music streaming apps in the EEA and dating apps in the Netherlands, which have their own entitlements.

The US storefront

The guideline text is clear on links. The fee is the open question. Apple's developer pages publish no commission, entitlement or reporting requirement for US link-outs. According to press reports, a court ruling in April 2025 stopped Apple from charging a commission on these purchases. On 13 August 2026 Apple asked the court to approve rates of 15%, 10% and 5% (The Verge, MacRumors), and the Supreme Court is reviewing the contempt ruling, with oral argument reported for 11 January 2027. Those details come from press coverage, not from Apple. Build your pricing so a future fee would not break it, and recheck before each release.

EU, Japan and Brazil

In the EU, Apple's unified terms took effect on 1 October 2026, under Attachment 14 of the Apple Developer Program License Agreement. You may combine Apple in-app purchase, alternative payment processing within the app and out-of-app offers, but you must keep the combination you choose across all EU storefronts for 12 months. Apps that offer alternative payments or link to out-of-app offers must use the StoreKit External Purchases or Offers Entitlement and the ExternalPurchaseCustomLink API, show an in-app disclosure that the customer will be transacting with you and not Apple, and report transactions to Apple every month, within 15 days after the month ends, through the External Purchase Server API for current OS versions. Apple invoices the commission. The App Store product page may not mention buying on your website.

Japan (iOS 26.2 and later) and Brazil (iOS 26.5 and later) work the same way, with their own pages and the same monthly reporting. Apple's pages for both countries say that if you offer an alternative payment option, you must also present Apple in-app purchase as an option. In all three regions you need to be the Account Holder to accept the terms, and the entitlement lists the allowed regions by country code.

Keep in-app purchase in the app

Guideline 3.1.1 still says that unlocking features or a full version "must use in-app purchase", and names license keys among the mechanisms an app may not use on its own. What allows a web purchase to unlock the iOS app is guideline 3.1.3(b), Multiplatform Services: an app may let users access content or features "acquired in your app on other platforms or your web site", "provided those items are also available as in-app purchases within the app." Apple's EU page has a similar rule: multiplatform apps there must offer Apple in-app purchase and/or alternative payment processing within the app. In practice, the web checkout is an extra way to buy, not a replacement: keep an in-app purchase for the same unlock, and let a purchase from either side unlock the app.

Storefront, not your country: reading the StoreKit storefront before showing a web offer

The rules follow the customer's App Store storefront, not their location, their device language or where your company is. A customer with a German Apple Account on holiday in New York is in the German storefront. StoreKit exposes it as Storefront.current, whose countryCode is an ISO 3166-1 alpha-3 code such as USA. Apple's documentation asks you to read it immediately before you show product information, because it can change at any time, and not to save it with customer data or use it to build a profile. Subscribe to Storefront.updates to react when it changes.

import StoreKit

enum WebOffer { case directLink, entitlementLink, none }

// Call right before showing a paywall; don't cache or store the storefront.
func webOfferMode() async -> WebOffer {
    guard let storefront = await Storefront.current else { return .none }
    if storefront.countryCode == "USA" {
        return .directLink            // guideline 3.1.1(a): no entitlement needed
    }
    // EU, Japan, Brazil: only with the StoreKit external purchases or offers
    // entitlement for this region; isEligible is false everywhere else.
    if #available(iOS 18.1, *), await ExternalPurchaseCustomLink.isEligible {
        return .entitlementLink       // show Apple's disclosure first, report tokens
    }
    return .none                      // in-app purchase only
}

Ship the decision in the app, not only on your server: App Review sees your app in their storefront, and a web offer that appears in the wrong one is a rejection.

Web checkout options: merchant of record (Paddle) or your own Stripe account, VAT and sales tax

When you sell on the web, Apple no longer handles tax, refunds or receipts for that sale. You need a checkout that charges the right tax for each buyer. There are two common setups:

  • A merchant of record, such as Paddle, is the seller on the invoice, handles tax collection and remittance where it covers it, and pays you out.
  • Your own Stripe account, where you are the seller and tax is your responsibility. Stripe Tax can calculate it, and for eligible accounts and digital products Stripe's Managed Payments can act as merchant of record.

Both work well for app unlocks; the trade-offs are in merchant of record vs Stripe. In the PermitCore Store you connect your own Stripe or Paddle account. PermitCore takes no sales commission; provider fees apply. When the signed payment webhook arrives, PermitCore issues the license with the activation limit, node locking, expiry and feature flags you set on the product, and queues the order email, which links to the buyer's Store account. Setup steps are in the Store guide, with provider details in licensing with Stripe and Paddle license keys.

Two iPhone-specific details: make the checkout page work well in mobile Safari, including Apple Pay or Google Pay if your provider supports them, and bring the customer back to the app with a universal link after payment, so they do not have to find their way back.

After a web purchase, the iOS app has no StoreKit transaction to look at. It needs your own record of the purchase. Three patterns are common:

  • Account sign-in. The customer signs in with the email they used at checkout. Your backend finds the license for that account and the app activates it in the background. This is the pattern guideline 3.1.3(b) describes, and the one the customer understands best.
  • Magic link or email code. The same idea without a password: the app asks for the email, your backend sends a one-time link or code, and the app receives the entitlement after the customer confirms.
  • License key entry. The customer pastes a key from the order email. This is common on desktop, but guideline 3.1.1 names license keys among the unlock mechanisms an iOS app may not use on its own. If you offer key entry on iPhone, offer it alongside an in-app purchase of the same unlock, and expect App Review to judge the details.

Behind all three is the same thing: a license that belongs to one customer. In PermitCore, each Store buyer has an account where the My Keys tab lists every license linked to their email, with the purchase date, expiry and activated devices. Keys are not sent in plain text by email; the order email links to that account, and the customer signs in and verifies the purchase email before the key is shown. Your app or backend then uses the key with the licensing API: fetch a single-use nonce from GET /api/v1/nonce, call POST /api/v1/activate once per device, and call POST /api/v1/validate on later launches. Pass expectedProductId so a key for another product is rejected with WrongProduct, and handle SeatsExhausted by pointing the user to device management. See POST /activate and POST /validate.

A device ID that survives reinstalls

Activation counts devices, so the device ID must stay the same across app updates and, ideally, reinstalls. Apple's identifierForVendor "remains the same while the app (or another app from the same vendor) is installed", so deleting your only app and installing it again gives a new value and would use a new seat. A random UUID stored in the Keychain is the common alternative: in current iOS versions, Keychain items usually survive deleting the app, although Apple does not promise that. Use an accessibility class ending in ThisDeviceOnly, so the ID does not move to a new iPhone through a backup; a new phone should be a new activation. Never use advertising identifiers for licensing.

On iOS you call the REST API directly with URLSession, from the app or from your backend. Run it off the main thread:

import Foundation
import Security
import UIKit

let api = URL(string: "https://api.permitcore.dev/api/v1")!

// Random ID in the Keychain. "ThisDeviceOnly": not copied to a new phone by a backup.
func deviceId() -> String {
    let base: [String: Any] = [kSecClass as String: kSecClassGenericPassword,
                               kSecAttrAccount as String: "license.device-id"]
    var query = base
    query[kSecReturnData as String] = true
    var item: CFTypeRef?
    if SecItemCopyMatching(query as CFDictionary, &item) == errSecSuccess,
       let data = item as? Data, let id = String(data: data, encoding: .utf8) {
        return id
    }
    let id = UUID().uuidString
    var add = base
    add[kSecAttrAccessible as String] = kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly
    add[kSecValueData as String] = Data(id.utf8)
    SecItemAdd(add as CFDictionary, nil)
    return id
}

func postJSON(_ path: String, _ body: [String: Any]) async throws -> [String: Any] {
    var request = URLRequest(url: api.appendingPathComponent(path))
    request.httpMethod = "POST"
    request.setValue("application/json", forHTTPHeaderField: "Content-Type")
    request.httpBody = try JSONSerialization.data(withJSONObject: body)
    let (data, _) = try await URLSession.shared.data(for: request)
    return (try JSONSerialization.jsonObject(with: data) as? [String: Any]) ?? [:]
}

let appVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? ""

// Once per device, after sign-in has found the customer's license.
func activate(licenseKey: String, productId: String) async throws -> [String: Any] {
    let (nonceData, _) = try await URLSession.shared.data(from: api.appendingPathComponent("nonce"))
    let nonce = (try JSONSerialization.jsonObject(with: nonceData) as? [String: Any])?["nonce"] as? String ?? ""
    let model = await UIDevice.current.model
    return try await postJSON("activate", [
        "licenseKey": licenseKey, "nonce": nonce, "deviceId": deviceId(),
        "deviceName": model, "version": appVersion, "expectedProductId": productId])
    // Check result["isValid"] and result["errorCode"], e.g. "SeatsExhausted":
    // show "Manage devices" with a link to the customer portal.
}

// Later launches: validate (no new seat) and keep result["offlineCacheToken"].
func validate(licenseKey: String, productId: String) async throws -> [String: Any] {
    try await postJSON("validate", [
        "licenseKey": licenseKey, "deviceId": deviceId(),
        "version": appVersion, "expectedProductId": productId])
}

Signed entitlement tokens: offline use, expiry and clock checks on iPhone and iPad

A paid feature that fails in airplane mode generates refunds. Never store a plain "isPro = true" flag in UserDefaults, which can be edited on a jailbroken device or restored from a modified backup. Store something the app can verify.

In PermitCore you set offline grace days on the license. When the app validates online with its device ID, the response includes an offlineCacheToken: a pc_grace_v1 token signed with your tenant's ECDSA P-256 key. Its payload carries the product ID, a SHA-256 hash of the license key, the device ID, the license's feature flags and a signed validUntil time. The app keeps the token and, when the network or server is unavailable, verifies it with your public key from GET /api/v1/{tenantSlug}/public-key. Ship that public key inside the app; never read it from the cache or a network response. For customers who are never online, an admin can issue a manual pc_offline_v1 token bound to one device for 1 to 365 days. Both are described in offline licensing and offline grace mode.

PermitCore signs the base64url payload string and sends a raw 64-byte r‖s signature. CryptoKit's P256.Signing.ECDSASignature(rawRepresentation:) takes exactly that format, so no DER conversion is needed on Apple platforms:

import CryptoKit
import Foundation

// SPKI base64 public key from /api/v1/{tenantSlug}/public-key, compiled into the app.
let trustedPublicKey = "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE..."

func base64URLDecode(_ value: String) -> Data? {
    var b64 = value.replacingOccurrences(of: "-", with: "+").replacingOccurrences(of: "_", with: "/")
    b64 += String(repeating: "=", count: (4 - b64.count % 4) % 4)
    return Data(base64Encoded: b64)
}

func sha256Hex(_ value: String) -> String {
    SHA256.hash(data: Data(value.utf8)).map { String(format: "%02x", $0) }.joined()
}

func parseDate(_ value: String?) -> Date? {
    guard let value else { return nil }
    let formatter = ISO8601DateFormatter()
    formatter.formatOptions = [.withInternetDateTime, .withFractionalSeconds]
    if let date = formatter.date(from: value) { return date }
    formatter.formatOptions = [.withInternetDateTime]
    return formatter.date(from: value)
}

// Returns the verified claims, or nil (malformed, tampered, expired, other key or device).
func verifyGraceToken(_ token: String, licenseKey: String, deviceId: String, productId: String) -> [String: Any]? {
    let parts = token.split(separator: ".", omittingEmptySubsequences: false).map(String.init)
    guard parts.count == 3, parts[0] == "pc_grace_v1",
          let keyData = Data(base64Encoded: trustedPublicKey),
          let key = try? P256.Signing.PublicKey(derRepresentation: keyData),
          let raw = base64URLDecode(parts[2]), raw.count == 64,
          let signature = try? P256.Signing.ECDSASignature(rawRepresentation: raw),
          key.isValidSignature(signature, for: Data(parts[1].utf8)),   // the base64url payload string
          let json = base64URLDecode(parts[1]),
          let claims = (try? JSONSerialization.jsonObject(with: json)) as? [String: Any]
    else { return nil }

    let bound = claims["deviceId"] as? String ?? ""
    let nodeLocked = claims["nodeLocked"] as? Bool ?? true
    guard claims["isValid"] as? Bool == true,
          let validUntil = parseDate(claims["validUntil"] as? String), validUntil > Date(),
          claims["licenseKeySha256"] as? String == sha256Hex(licenseKey),
          (claims["productId"] as? String)?.lowercased() == productId.lowercased(),
          bound.isEmpty || bound.caseInsensitiveCompare(deviceId) == .orderedSame,
          !nodeLocked || (!bound.isEmpty && claims["deviceActivated"] as? Bool == true)
    else { return nil }
    return claims
}

Plan for how offline licensing behaves, and say so in your support pages:

  • An offline device learns about a refund or a removed device only when it reconnects. A token stays valid until its signed deadline, so shorter grace means faster revocation. iPhones are usually online, so a few days is often enough.
  • Token expiry is compared with the device clock. Save the latest time you have seen, from a successful server response or the device, and treat the cached token as unusable if the clock goes clearly backwards.
  • Online rejections win. If the server says the license is revoked, do not fall back to the cache. Use the cached token only when the network or server cannot be reached.

Restore purchases on a new device without Apple's receipts: device limits and self-service transfers

Apple expects a restore mechanism for in-app purchases, and customers expect the same for a web purchase. For web licenses, "restore" means: sign in again on the new device, fetch the license and activate it. The question is what happens to the seat the old phone holds.

  • Set a realistic activation limit. Many people use an iPhone, an iPad and a Mac. If the same license also unlocks those, count them in the limit.
  • Let customers free seats themselves. Every PermitCore tenant has a customer portal at /portal/{your-slug}, where a customer enters the key, sees the activated devices and removes the old one. You can require an email code before a device is removed (Professional plan and above). Store buyers can see and manage their devices in their Store account as well.
  • Link it from the app. Put "Manage devices" next to "Restore purchases" in your settings screen, and show it automatically when activation returns SeatsExhausted.

If the customer bought through in-app purchase instead, the normal StoreKit restore still applies. Supporting both is part of keeping in-app purchase available. The desktop version of the transfer flow is in transferring a license to a new computer, and device identity in general is covered in device activation and hardware IDs.

Refunds, chargebacks and failed renewals: revoking the entitlement automatically through webhooks

When Apple sells the unlock, Apple handles refunds and tells you about them. When you sell it, a refund in your payment dashboard must also turn the unlock off, or every refund becomes a free copy.

In the PermitCore Store, a fully refunded or lost-dispute order revokes its license automatically, and a subscription license is deactivated when the subscription ends. The next online validation fails, and an offline device stops when its grace token runs out. If you run your own backend, for example to keep an account flag in sync, the signed license.revoked webhook tells it. Verify the X-PermitCore-Signature header before trusting the body. Failed renewal payments and dunning are covered in revoking a license after a failed payment.

Test it before launch: make a test purchase, refund it in test mode, and confirm that the iPhone shows the locked state after its next online check.

One purchase, every platform: unlocking iOS, Mac, Windows and Android versions with the same license

Selling on the web has one clear advantage over in-app purchase: the purchase is yours, not tied to one store. A customer who buys on your site can use the same license on an iPhone, a Mac, a Windows PC and an Android phone. Apple's 3.1.3(b) explicitly allows the iOS app to honor purchases made on other platforms.

In PermitCore, a license belongs to a product, and activation works the same way on any device that calls the API. Use one product for the app across platforms, pass the same expectedProductId from each build, and let the activation limit count devices across all of them. Feature flags on the license, which are also carried in the signed token, decide what each tier unlocks. On the desktop and engine side there are SDKs for .NET, Node, Python, Java, C++, PHP, Go, Unity and Godot; on iOS and Android you can call the same REST endpoints directly. The Android side of the same setup is in selling an Android app outside Google Play.

If a customer buys the in-app purchase on iPhone and later wants the Windows version, that is your business decision. Some developers grant a desktop license on request after checking the App Store purchase; others sell platforms separately. Write the policy down before the first support email asks.

App Review checklist: wording, metadata, keeping in-app purchase, reporting external purchase tokens

  1. Keep an in-app purchase for every unlock you also sell on the web, as 3.1.3(b) requires for multiplatform access.
  2. Gate web offers on Storefront.current: free links only in USA, entitlement links only where ExternalPurchaseCustomLink.isEligible is true, nothing elsewhere.
  3. Outside the US, keep website prices and "buy on our site" text out of your App Store description, screenshots and other metadata. In the EU, Apple's page says this for the product page explicitly.
  4. In entitlement regions, follow Apple's regional design rules: in-app purchase shown at least as prominently as other options, the system or required custom disclosure sheet before the customer leaves the app, and no flow that discourages in-app purchase.
  5. In the EU, request external purchase tokens at launch and before each potential transaction, associate them with the customer account on your server, and report transactions through the External Purchase Server API by the 15th of the following month. Japan and Brazil have their own token types and reporting steps.
  6. Remember the EU 12-month rule: once you choose a combination of payment options, you keep it across EU storefronts for 12 months.
  7. Give App Review a demo account that already owns the web unlock, plus a note explaining where the web offer appears and in which storefronts.
  8. Verify signed tokens in the app, ship the public key in the app, and never store an editable "Pro" flag.
  9. Use a stable device ID and link device management from settings, next to Restore Purchases.
  10. Run a test purchase, a refund and a phone swap end to end, and confirm the license is revoked after the refund.
  11. Recheck Apple's pages before each submission. The US fee question in particular may change after the Supreme Court rules.

Apple now lets many iOS apps tell customers about a web checkout, but the App Store does not know about those purchases. Your licensing system has to issue the unlock, keep it working offline, move it to a new phone and take it back after a refund. If you want those parts ready-made, start with the Store guide, read what to look for in a licensing API, or compare plans on the pricing page.

Sources

Apple pages checked on 29 November 2026:

Put the guide into practice

Build your first licensed product without building a license server.

Create a free PermitCore account, issue a test license, and validate it from your application.