RevenueCat Capacitor IAP; keep Stripe on web (#100) #102

Merged
westfarn merged 3 commits from feature/revenuecat-iap-100 into master 2026-08-04 03:43:10 -07:00
Owner

Summary

  • Native Capacitor: RevenueCat purchase/restore (@revenuecat/purchases-capacitor)
  • Web: Stripe checkout/portal unchanged
  • Billing history shows store rows (provider / revenuecat_store)
  • RC logIn/logOut on auth lifecycle; appUserID = user pk

Closes #100. Depends on backend chat_backend#68 / monetization PR.

Test plan

  • Unit tests: BillingSection, revenueCat, finance helpers, SignIn/Up, AuthCallback, Header2, DeleteAccount (38 OK)
  • Fill REACT_APP_REVENUECAT_* keys in .env.mobile
  • Align RC offerings/products with plan slugs
  • npm run build:mobile + cap sync; sandbox purchase on Android/iOS
  • Confirm web Stripe checkout/portal still work
  • After RC webhook, Account → Billing history shows store invoice
## Summary - Native Capacitor: RevenueCat purchase/restore (`@revenuecat/purchases-capacitor`) - Web: Stripe checkout/portal unchanged - Billing history shows store rows (`provider` / `revenuecat_store`) - RC `logIn`/`logOut` on auth lifecycle; appUserID = user pk Closes #100. Depends on backend [chat_backend#68](https://git.aimloperations.com/ai_ml_operations/chat_backend/issues/68) / monetization PR. ## Test plan - [x] Unit tests: BillingSection, revenueCat, finance helpers, SignIn/Up, AuthCallback, Header2, DeleteAccount (38 OK) - [ ] Fill `REACT_APP_REVENUECAT_*` keys in `.env.mobile` - [ ] Align RC offerings/products with plan slugs - [ ] `npm run build:mobile` + `cap sync`; sandbox purchase on Android/iOS - [ ] Confirm web Stripe checkout/portal still work - [ ] After RC webhook, Account → Billing history shows store invoice
westfarn added 1 commit 2026-08-04 03:32:26 -07:00
Add RevenueCat Capacitor IAP; keep Stripe for web billing.
Unit Tests / test (pull_request) Failing after 11s
75a0d7f637
Native builds purchase/restore via RevenueCat; browser keeps Stripe
checkout/portal. Billing history shows store ledger rows from backend
webhooks. Closes #100.
westfarn force-pushed feature/revenuecat-iap-100 from 0969629122 to 75a0d7f637 2026-08-04 03:32:26 -07:00 Compare
westfarn added 1 commit 2026-08-04 03:36:13 -07:00
Point billing clients at /monetization/ instead of /finance/.
Unit Tests / test (pull_request) Failing after 11s
bf8f6ea1d2
Align FE with backend finance→monetization rename (api/monetization);
backend keeps /api/finance as alias only.
westfarn added 1 commit 2026-08-04 03:40:55 -07:00
Mock RevenueCat Capacitor plugin in Jest setup.
Unit Tests / test (pull_request) Successful in 12s
86bdb78de7
Package is ESM-only; suites that import AccountContext were crashing
Jest with SyntaxError before any tests ran.
westfarn merged commit ce86f56d37 into master 2026-08-04 03:43:10 -07:00
westfarn deleted branch feature/revenuecat-iap-100 2026-08-04 03:43:10 -07:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ai_ml_operations/chat_web_app#102