Commit e5f4c59
Fix: show real Stripe error in toast + add /billing/stripe-check endpoint
billing/index.tsx:
- Toast now shows actual backend detail message instead of hardcoded string
- Falls back to err.message then generic text if no detail
- duration: 6000ms so user can read the full error
- console.error logs the full error for debugging
billing.py:
- Add GET /api/billing/stripe-check endpoint
- Returns which env vars are set (secret key masked as bool, price IDs shown)
- Helps diagnose missing Render config without checking the dashboard
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 1280d63 commit e5f4c59
2 files changed
Lines changed: 17 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
36 | 49 | | |
37 | 50 | | |
38 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
126 | 124 | | |
127 | 125 | | |
128 | 126 | | |
| |||
0 commit comments