Commit graph

4 commits

Author SHA1 Message Date
9575d312fe fix: cancelled tier, remove key logging, add billing rate limits
All checks were successful
Build & Deploy to Staging / Build & Deploy to Staging (push) Successful in 10m13s
- Add 'cancelled' tier (0 req/month) for downgraded subscriptions
- Remove full API key from recovery endpoint logs (security)
- Add IP-based rate limiting (10/15min) to billing endpoints
- Bump version to 0.7.0
- 4 new tests (338 total)
2026-03-04 09:06:16 +01:00
e04d0bb283 test: comprehensive billing route tests (checkout, success, webhook)
All checks were successful
Build & Deploy to Staging / Build & Deploy to Staging (push) Successful in 12m0s
2026-03-03 12:45:43 +01:00
e240d9e30d test: comprehensive billing route tests (checkout, success, webhook, portal, recover)
Some checks failed
Build & Deploy to Staging / Build & Deploy to Staging (push) Has been cancelled
2026-03-03 12:37:26 +01:00
SnapAPI Test Agent
c32436631a feat: Add Stripe Customer Portal for API Key Recovery
Some checks failed
Build & Deploy to Staging / Build & Deploy to Staging (push) Has been cancelled
- Add POST /v1/billing/portal endpoint for customer portal access
- Add GET /v1/billing/recover endpoint for API key recovery
- Implement getKeyByEmail() and getCustomerIdByEmail() service functions
- Add comprehensive test coverage for new endpoints and services
- Create dedicated recovery page at /recovery.html with forms
- Add 'Lost your API key?' link on landing page near pricing
- Update OpenAPI documentation for new endpoints
- Return masked API keys for security (snap_xxxx...xxxx format)
- Log full keys for manual email sending (email service TBD)
- Include proper error handling and input validation
2026-02-25 08:06:38 +00:00