axiom implement iap

Engineering Community

Skill notes

Your Mission

Implement complete IAP following testing-first workflow: Create StoreKit configuration FIRST Implement centralized StoreManager Add transaction listener and verification Implement purchase flows

Phase 1: Gather Requirements

Ask the user: Product types: Consumables, non-consumables, subscriptions? Product IDs: Format com.company.app.product_name Server backend: For appAccountToken integration? Subscription details: Group ID, tiers, trial duration?

Phase 2: Create StoreKit Configuration (FIRST!)

CRITICAL: Create .storekit file BEFORE any Swift code! Create via Xcode: File → New → File → StoreKit Configuration File Add products with ID, name, price Configure scheme: Edit Scheme → Run → Options → StoreKit Configuration Test products load before proceeding

Phase 3: Implement StoreManager

Create StoreManager.swift with these essential components:

Phase 4: Purchase UI

Custom View or StoreKit Views (iOS 17+):

Fluxly profile Runtime and permissions are inferred by Fluxly static checks, not author declarations or runtime test results.
Domain
Engineering
Author-declared agents
No explicit declaration found; this is not inferred or tested compatibility
Static check
94 / 100 · heuristic scan, not runtime safety proof
Runtime evidence
Not run; no isolated runtime test evidence is currently recorded
Author / version / license
@CharlesWiltgen · MIT
Token usage
Lean
Setup complexity
Plug-and-play
External API key
Not required
Operating systems
Unspecified (assume cross-platform)
Runtime requirements
No explicit requirements detected
Detected file/system behavior
  • Read-only
  • Write / modify
Network behavior
Local-only
Install commands
None (reference only)

Heads up: Tool permissions are not declared; actual access depends on the runtime.

01
Phase 1: Gather Requirements

Ask the user: Product types: Consumables, non-consumables, subscriptions? Product IDs: Format `com.company.app.product_name` Server backend: For appAccountToken integration? Subscription details: Group ID, tiers, trial duration?

02
Phase 2: Create StoreKit Configuration (FIRST!)

CRITICAL: Create `.storekit` file BEFORE any Swift code! Create via Xcode: File → New → File → StoreKit Configuration File Add products with ID, name, price Configure scheme: Edit Scheme → Run → Options → StoreKit Configuration Test products load before proceeding

03
Phase 3: Implement StoreManager

Create `StoreManager.swift` with these essential components:

04
Phase 4: Purchase UI

Custom View or StoreKit Views (iOS 17+):

05
Phase 5: Subscription Management (If Applicable)

Check subscription status via:

06
Phase 6: Restore Purchases (REQUIRED)

App Store Requirement: Non-consumables/subscriptions MUST have restore:

Discussion

Powered by GitHub Discussions. Sign in with GitHub to comment, react, or subscribe.