docs/MONETIZATION_IMPLEMENTATION.md
│ Monetization Implementation Plan │
│ │
│ Phase 1: App Store Connect Setup (Required First) │
│ │
│ 1. Configure Products in App Store Connect │
│ - Log into App Store Connect │
│ - Add the 3 In-App Purchase products: │
│ - com.ilikeyacut.credits.small ($0.99 consumable) │
│ - com.ilikeyacut.credits.large ($4.99 consumable) │
│ - com.ilikeyacut.subscription.monthly ($9.99 auto-renewable) │
│ - Submit products for review │
│ 2. Configure App Capabilities │
│ - Enable In-App Purchase capability in Xcode project │
│ - Add StoreKit configuration for production │
│ │
│ Phase 2: Fix iOS Implementation Issues │
│ │
│ 1. Debug Product Loading │
│ - Add error handling and logging to PurchaseManager.loadProducts() │
│ - Show loading state in PurchaseView │
│ - Display error messages if products fail to load │
│ 2. Add Product Visibility Fallback │
│ - Show placeholder UI when products aren't loaded │
│ - Add "Retry" button if product loading fails │
│ - Display helpful error messages │
│ │
│ Phase 3: Backend Enhancements │
│ │
│ 1. Complete Apple Receipt Validation │
│ - Set up Apple shared secret in AWS Secrets Manager │
│ - Fix stub validation in purchase-handler Lambda │
│ - Add proper transaction verification │
│ 2. Add Purchase Recording Endpoint │
│ - Implement /api/purchase endpoint in API Gateway │
│ - Connect to purchase-handler Lambda │
│ - Add proper error handling │
│ │
│ Phase 4: Testing & Polish │
│ │
│ 1. StoreKit Testing │
│ - Test with sandbox accounts │
│ - Verify credit allocation works │
│ - Test subscription renewals │
│ 2. UI Improvements │
│ - Add purchase success animations │
│ - Show receipt/confirmation │
│ - Add purchase history view │
│ │
│ The main issue is that products need to be configured in App Store Connect before they'll appear in the app. The code infrastructure is mostly │
│ complete but needs the App Store configuration to function.
