← ClaudeAtlas

unity-iaplisted

Unity In-App Purchasing v5: catalogue, purchase flow, receipts, restore, subscriptions, v4 code.
tipoLi5890/unity-dev-skills · ★ 2 · AI & Automation · score 75
Install: claude install-skill tipoLi5890/unity-dev-skills
# unity-iap — a purchase is not yours until you answer it > **Every v5 purchase arrives as a question.** The store hands you a `PendingOrder`; you grant the > content, save it, and only then answer with `ConfirmPurchase`. A question you never answer comes > back on the next launch — which is the safe failure. A question you answer before the grant is > saved is money the player spent on nothing, and the store will not ask again. ## Symptom → where to look | Symptom | Go to | |---|---| | "add IAP to this game"; deciding what to do at all — existing SDK, native bridge, v4, nothing | `reference/pre-check.md`, then *The working contract* | | Converting a native BillingClient or StoreKit bridge, or a third-party billing SDK | `reference/pre-check.md` routes to the `path-convert-*` / `convert-*` file | | `OnStoreConnectionFailed` or `product.hasReceipt` does not compile | §8 — shapes that do not exist | | Products list is empty, or prices are stale | §2 | | The same purchase is granted twice | §3 | | A purchase re-appears on every launch | §3 — it was never confirmed | | Player paid, got nothing | §3 — confirmed before the grant was saved | | Ask-to-Buy purchases never arrive | §1 — `OnPurchaseDeferred` was not subscribed | | Non-consumables lost after reinstall | §4 | | Apple receipt validates to an empty array | §5 | | `IsSubscribed()` will not cast to `bool` | §6 | | `CS1061` on a failure description | §7 | | `IStoreListener` / `ConfigurationBuilder` code | `reference/migrati