Files
office_translator/.claude/settings.json
sepehr 374c605027
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2m5s
feat: Stripe integration complete - products created, DB migration, payment_failed handler, credit buttons wired
- Create Stripe products/prices (Starter/Pro/Business monthly+yearly)
- Fix CRITICAL bug: add subscription_ends_at + cancel_at_period_end columns to users table
- Alembic migration: f6a7b8c9d0e1_add_subscription_ends_at_cancel_at_period_end
- Fix: implement handle_payment_failed() to set subscription_status=PAST_DUE
- Fix: harmonize .env.production Stripe variable names to match pricing_config.py
- Fix: add missing FRONTEND_URL and STRIPE_PUBLISHABLE_KEY to .env.production
- Add all Stripe Price IDs (test mode) to .env.production
- Wire credit purchase buttons to /api/v1/auth/create-credits-checkout
- Dashboard sync post-checkout was already implemented (no change needed)

Stripe test keys: configured in .env.production
Webhook: must be configured on server via stripe CLI or Stripe Dashboard
Webhook URL: https://wordly.art/api/v1/auth/webhook/stripe
2026-05-31 21:40:31 +02:00

19 lines
1013 B
JSON

{
"permissions": {
"allow": [
"Bash(xargs grep -l 'useTranslation\\\\|t\\\\\\(\\\\\\)\\\\|$t\\\\|from.*i18n')",
"Bash(awk '/^ en: {/,/^ fr: {/{/^[[:space:]]+\"[^\"]*\"[[:space:]]*:/ {count++}} END {print \"English keys:\", count}' D:/dev1405/office_translator/frontend/src/lib/i18n.tsx)",
"Bash(git commit -m ' *)",
"Bash(node -c scripts/setup.js)",
"Bash(git ls-tree *)",
"Bash(git push *)",
"WebSearch",
"Bash(DEEPSEEK_API_KEY=sk-176db424442e40728c04c04a4170c224 python -u -c ' *)",
"Bash(python -u -c ' *)",
"Bash(DEEPSEEK_API_KEY=sk-176db424442e40728c04c04a4170c224 PYTHONUNBUFFERED=1 python -u scripts/enrich_glossary_templates.py --api deepseek --model deepseek-chat --workers 5)",
"Bash(ssh -o BatchMode=yes root@192.168.1.151 \"cd /opt/wordly && docker compose ps backend --format '{{.Status}}'\")",
"Bash(ssh -o BatchMode=yes root@192.168.1.151 'cd /opt/wordly && docker compose exec -T backend python -c \" *)"
]
}
}