Commit 47b980d
Neo
refactor: strip iOS-only concerns from backend
Stripe subscriptions moved to MTRX iOS (Apple IAP). Backend no longer
handles user billing.
Removed:
- runtime/subscriptions/ (stripe client, tiers, feature gate, usage tracker,
revenue reporter, audit/conversion services, metered billing)
- runtime/referrals/ (tied to subscription tiers)
- scripts/stripe_setup.py
- tests/test_subscriptions.py, tests/test_metered_billing.py
- web/pricing.html
- /subscription/* endpoints from gateway
- /referral/* endpoints from gateway
- /metered/* endpoints from gateway
- /pricing page handler
- APNs push registration endpoint (/bridge/v1/push/register) from bridge
Added:
- Procfile for Heroku/Railway deployment
- railway.toml with Dockerfile build + /health check
- setup_telegram.py — standalone CLI to configure Telegram bot after
initial setup. Auto-discovers chat ID by waiting for the first message,
sends a test message, persists to config and .env.
- PORT env var support (Railway convention) in gateway/server.py
Updated:
- .env.example: removed Stripe vars, added PORT note
- openmatrix.config.json.example: removed subscriptions block1 parent 09ffdd5 commit 47b980d
22 files changed
Lines changed: 278 additions & 4818 deletions
File tree
- gateway
- runtime
- referrals
- subscriptions
- tests
- web
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 25 | | |
31 | 26 | | |
32 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
498 | 497 | | |
499 | 498 | | |
500 | 499 | | |
| |||
548 | 547 | | |
549 | 548 | | |
550 | 549 | | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | 550 | | |
555 | 551 | | |
556 | 552 | | |
| |||
881 | 877 | | |
882 | 878 | | |
883 | 879 | | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | | - | |
888 | | - | |
889 | | - | |
890 | | - | |
891 | | - | |
892 | | - | |
893 | | - | |
894 | | - | |
895 | | - | |
896 | | - | |
897 | | - | |
898 | | - | |
899 | | - | |
900 | | - | |
901 | | - | |
902 | 880 | | |
903 | 881 | | |
904 | 882 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | 314 | | |
321 | 315 | | |
322 | 316 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
This file was deleted.
0 commit comments