Archive the differentiated YuXinGu product docs, AI engineering system, design contract, and Go/Vue scaffold. Next execution prioritizes Cece-parity over early innovation (see .ai/product/STRATEGY.md). Co-authored-by: Cursor <cursoragent@cursor.com>
587 B
587 B
Playbook: Payment / Unlock / Subscription
Steps
- Terms: Order, Payment, Unlock, Subscription, Membership, VIP (
.ai/domain.md) - Server creates Order with amount/currency/product ref
- Client never sets final price unilaterally
- Payment callback verifies signature + idempotency
- On success: grant Membership or Unlock in service transaction
- Report access checks Membership/Unlock server-side every time
- Migration for
payment_order/ related tables - Tests: double callback, wrong amount, replay
- No secrets in frontend
- Feature checklist + security review