mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-12-01 17:24:48 +00:00
feat(rotation): buy automatic rotation, $29 per team per 30 days (CoinPay)
- Rotation page button + POST /api/credshare/teams/:slug/rotation/auto/checkout open a CoinPay hosted checkout (owner/admin only). - POST /api/coinpay/webhook and the page's return check settle once per checkout session (rotation_payments); paying again extends from the current end. - Hourly sweep: renewal email 3 days before, switch off when the days run out. A team switched on by hand (paid_until NULL) never expires. - Migration 012 (both dialects), CSP form-action allows coinpayportal.com. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
63ecfb4ed6
commit
50eefed36d
12 changed files with 521 additions and 15 deletions
|
|
@ -250,7 +250,7 @@ test("policy: the Rotation page shows the 90-day policy, due pills and an Approv
|
|||
const { body } = await owner.call("GET", "/teams/policy/rotation");
|
||||
assert.match(body, /90-day policy/);
|
||||
assert.match(body, /pill warn">due/);
|
||||
assert.match(body, /paid add-on/);
|
||||
assert.match(body, /Turn on automatic rotation, \$29 \/ 30 days/);
|
||||
const { body: premium } = await owner.call("GET", "/teams/premium/rotation");
|
||||
assert.match(premium, /Automatic rotation is on/);
|
||||
const s = await owner.call("POST", "/api/credshare/teams/strict/rotation/due");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue