Introductory offer eligibility on iOS, without overcharging

Introductory offer eligibility on iOS is judged by Apple ID, not your account. How I built a paywall that reads it right and never charges more than it shows.

By

A seasonal campaign on a fitness app I work on put 30% off both plans, monthly and yearly, on iOS and Android. The discount itself was easy. The hard part was introductory offer eligibility: who Apple will give the intro price to, who needs a signed promotional offer instead, and what the paywall should show while it is still finding out. Get any of it wrong and the tile shows one price while the store charges another. This post covers the rules I ended up with, built on RevenueCat and Flutter, so the paywall never charges more than it shows.

Who is eligible for an introductory offer on iOS?

Apple decides, and it decides by Apple ID, per subscription group. Apple's guide to implementing introductory offers says new subscribers are always eligible, lapsed subscribers are eligible only if they never used an intro offer in that group, and current subscribers are not eligible at all. Your own app account plays no part in it, so someone who subscribed under an old account and signs up again with a new email is still a returning customer to Apple.

That last point broke my first version. The resolver asked "has this app account ever bought anything?" to decide who gets the promotional offer. A person on a fresh account but the same Apple ID failed the intro check and also failed my check, so they saw the normal price with no discount at all.

One answer per plan, shared by every part of the paywall

The first change was structural, because prices only drift apart when more than one piece of code works them out. Each plan gets one resolved offer from the store: Apple's intro offer, a signed Apple promotional offer, or a Google Play subscription option picked by ID. The tile, the price line above the button and the purchase call all read that one object, so they can't disagree.

Two smaller bugs fell out of that change. iOS had been calling a paid intro offer a free trial. And a promotional banner bought the yearly plan directly from a tap; it now opens the paywall, so the user sees the resolved prices before paying.

The most important rule sits at the purchase step. If the store refuses the discount, the app refreshes the prices instead of carrying on at full price. A user who tapped "30% off" should never be charged the full amount because the store turned the discount down.

Reading introductory offer eligibility as three states

RevenueCat's eligibility check returns a status, and I had squashed it into a yes or no. Apple's answer has more in it than that. "Not eligible" is useful information: it means this Apple ID trialled or subscribed before, which is exactly who Apple's promotional offers are for. "Unknown" is a third state, and the dangerous one, because guessing either way is wrong.

So the resolver now takes Apple's status instead of a boolean. A trimmed version, with neutral names:

final status = eligibility[product.identifier]?.status ??
    IntroEligibilityStatus.introEligibilityStatusUnknown;
final intro = product.introductoryPrice;

if (status == IntroEligibilityStatus.introEligibilityStatusEligible &&
    intro != null && intro.price > 0) {
  return PlanOffer.intro(intro.priceString);
}

// Apple judges by Apple ID: "ineligible" means a returning customer,
// even when this app account has never bought.
final returning = boughtOnThisAccount ||
    status == IntroEligibilityStatus.introEligibilityStatusIneligible;
if (!campaignLive || !returning) return PlanOffer.none(product.priceString);

final discount = product.discounts?.firstWhereOrNull((d) => d.identifier == offerId);
if (discount == null) return PlanOffer.none(product.priceString);
final signed = await Purchases.getPromotionalOffer(product, discount);
return PlanOffer.promotional(discount.priceString, signed);

During the campaign, an "unknown" answer is retried once, for just the products that came back unknown. If it is still unknown, the user gets the promotional path when this account has bought before, and the normal price otherwise. A discount is never shown on "unknown" alone. Each answer that stays unknown is logged and sent to analytics as an "Intro Eligibility: Unknown" event, so I can see how often it happens instead of guessing. Outside the campaign, no promotional offer is requested at all.

Only show an offer that matches the tile

The tiles promise "first month, then ..." or "first year, then ...". That wording is only true for an offer that is exactly one discounted cycle of the plan's own length. Store set-up is manual, and a three-month intro on a monthly plan would make the tile lie.

So every offer is checked before it is shown. On Apple, an intro or promotional offer must be one cycle of the plan's length, with 12 months counted as a year. On Google Play, an option must have one discounted phase, either one cycle or non-recurring, of the base plan's length, and no free phase. On both stores the discounted price must be below the normal one. Anything that fails shows the normal price and reports the set-up mistake to the log and Sentry. A wrong offer costs the user a discount for a while; a wrong price costs their trust.

Picking the offer is just as strict. The admin promotion carries a monthly and a yearly offer ID that pick each plan's store offer exactly. An ID the product doesn't have shows the normal price and is reported. With no ID set, the app falls back to the offer whose ID starts with the campaign's prefix, so an offer recreated in the store works with no app release. Analytics records the offer ID really used, which keeps reporting honest in the way I described in RevenueCat trial conversion tracking that adds up.

Load prices in two stages, and never buy early

Eligibility checks and offer signing take time, and I didn't want the sheet to wait for all of them. The paywall now loads in two stages. Stage one fetches the plans and the campaign together and brings the sheet up behind a loader. Stage two fetches discounts and the trial check in parallel and fills in the discounted prices. While discounts load, the prices shimmer inside tiles that are already laid out, so nothing jumps when the numbers land.

The purchase has to respect that gap. A tap during stage two waits for the selected plan's offer, then buys with it, or at the normal price if loading failed. The app never buys before the discount is known. Resolved discounts are kept for the session, per account, and dropped after a purchase or after the store refuses a discount, so a stale offer can't be reused.

Store prices also had to fit. Price rows now shrink as one piece instead of cutting a price off, and a discounted pair that would shrink below about 70% puts the struck price on its own line. The price line takes at most two lines, then shrinks. Store price strings are never reformatted, since the store already localised them. Widget tests run at 320pt wide with seven currencies. A day later I also stopped the tiles repeating "first year, then ...", which the price line already says, and fixed the monthly tile so it is never shorter than the yearly one.

How do you test promotional offers before launch?

You need a real App Store app in the sandbox, because Apple's intro and promotional offers don't exist in a test store. I added an optional RevenueCat key for the staging App Store app so an iPhone can test them, with its own staging-only promotional offers separate from production's. Android has no staging Play app, so it keeps the test store key.

The staging key is read only in the staging entry point, so production binaries never contain it. That follows the same rule as keeping test API keys out of production builds. And if your entitlements are granted by a server, webhook security for in-app purchases covers the other half of trusting a purchase.

The short version

Treat introductory offer eligibility as Apple's call, made per Apple ID and subscription group, and keep all three of its answers. "Ineligible" means a returning customer who can get a promotional offer; "unknown" deserves one retry and never a discount on its own. Resolve one offer per plan and let the tile, price line and purchase share it. Reject any store offer that doesn't match the tile's wording, report it, and show the normal price. Never buy before the discount is known, and refresh prices when the store refuses one. If you do one thing before your next campaign, check whether your paywall asks your own database a question that only Apple can answer.

More of my mobile work is on the projects page.

Want this kind of work on your product?

Get in touch