- New: review-rejections, portfolio-originality, release-management, store-preflight, privacy-manifest, export-compliance, aso-basics, whats-new - Updated: explicit build numbers, first availability UI fallback, phased + manual release by default, IAP versions in review submissions (API 4.4.1, reported, verify), IAP description 45, privacy manifest cross-links, tool-neutral CLI instructions - docs/agents-core.md: shared rules for every agent
4.5 KiB
4.5 KiB
| name | description |
|---|---|
| store-iap-setup | Create and price in-app purchases (consumables, non-consumables like "remove ads", coin/gem packs, starter packs) on Google Play and App Store Connect from one product list - regional prices, local overrides, activation, review screenshots, submitting first IAPs with a version, license/sandbox testers. Use when the user sets up, prices, updates or tests in-app products/IAPs, or hits Play onetimeproducts / inappproducts 403 or App Store IAP submission errors. |
In-app purchases on both stores
CLI: storebound (or bunx storebound in a project that has it, or bun <toolchain>/cli/index.ts). One list in storebound.config.ts products[] drives
both stores: id (same on both), type (consumable | non_consumable), usd base price, optional overrides
({ region: 'TR', currency: 'TRY', price: 99.99 }), listings per language (title <= 30, description <= 45 for
Apple), reviewScreenshot.
Prerequisites
- Play: a build with
com.android.vending.BILLINGuploaded to any track; payments profile set up. - Apple: Paid Applications agreement + banking + tax active (Business > Agreements), the app record exists.
Google Play (API)
storebound check, thenstorebound play products --dry(shows create/update and region count per product).storebound play products. Per product:pricing:convertRegionPrices(USD -> every region at local price points, and theregionsVersion), your overrides on top,PATCH .../onetimeproducts/{id}?allowMissing=true®ionsVersion.version=...(create or update), thenoneTimeProducts/{id}/purchaseOptions:batchUpdateStatesto activate (new options are DRAFT).- Verify:
storebound play statuslists every product withbuy:ACTIVE. - Test: Play Console > Settings > License testing: add tester Gmail accounts; install from the internal testing link; purchases are free test orders.
App Store (API + UI)
storebound apple iap --dry, thenstorebound apple iap: creates missing products, localizations, a price schedule (USA base + overrides; Apple equalizes the rest) and availability. Existing schedules are not changed (change prices in the UI if needed).- Review screenshot per product (a real device size, e.g. 1290 x 2796, showing the item in the shop):
storebound apple iap-review. States move to READY_TO_SUBMIT when complete. - UI: each IAP page > "Add for Review"; this puts them into the version's draft submission. Then submit the version (owner, see appstore-first-release).
- Test: Sandbox testers (Users and Access > Sandbox) on device; or a StoreKit configuration file in Xcode for local runs (those transactions are signed locally and fail server-side receipt checks).
Gotchas
- Play legacy
inappproductsreturns 403 "Please migrate to the new publishing API" -> usemonetization.onetimeproducts. - Path casing: PATCH works on
onetimeproducts, but list +purchaseOptions:batchUpdateStatesneedoneTimeProducts; the wrong casing answers with an HTML 404 page. - Play has no consumable flag: the app consumes the purchase after granting it. Use
legacyCompatible: trueso older billing libraries see the product by id. - Apple: first IAPs must ship with an app version ("FIRST_*_MUST_BE_SUBMITTED_ON_VERSION" from
inAppPurchaseSubmissions). If the version is already in review without them: cancel the review submission
(
storebound apple status --cancel-submission <id>, ask the owner), re-add via "Add for Review", resubmit. - Reported, verify before relying on it: App Store Connect API 4.4.1 manages IAPs as versions
(
inAppPurchaseVersions) and its release notes say a review submission item can take aninAppPurchaseVersion. That should let later IAP versions be added toreviewSubmissionsthrough the API; the first attachment of a new app's first IAPs still needed the UI "Add for Review" in our runs. storebound does not automate either yet. - Apple needs an exact existing price point for each manual price; the error lists the nearest ones.
- Apple IAP display name 2-30 characters, description max 45 (App Store Connect Help > Reference > "In-app purchase information"; an older App Store marketing page says 55, but App Store Connect enforces 45).
- Product ids can never be reused after deletion on either store. Never delete without the owner.
- Do not put prices or product names in store descriptions; say "offers optional in-app purchases".
- If the game ships without real billing yet, hide every purchase surface in store builds (review rejects mock purchases) and answer "digital purchases: No" in IARC.