Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Phase 5] Credits, orders, entitlements and paid launch

Đang mở
#37 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
20/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript

Hướng nghiên cứu

Start by reviewing the dependencies on Epic #31 and Phase 4 #36, then map the credit ledger, webhook inbox, quote/order flow, purchase command/API, and CLI/MCP entry points described here. Done means duplicate events and retries are safe, concurrent purchases cannot overspend, entitlements are traceable, paid payloads remain protected, and the payment architecture is approved.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

Depends on

  • Epic #31

  • Phase 4 #36

Objective

Attach commerce to an already-proven package delivery and entitlement system.

Delivery/security depends on Phase 4. Payment-provider approval work may run earlier, in parallel with Phases 2-4.

Scope

  • Append-only buyer credit ledger.
  • Top-up with verified provider events.
  • Quotes/orders.
  • Atomic debit + entitlement grant.
  • Refund/chargeback.
  • Agent-safe transaction confirmation.
  • Provider/business-model approval gate.

Implementation tasks

  • Add credit ledger entries and balance projection.
  • Add top-up records.
  • Add webhook inbox/dedup.
  • Verify provider signatures and paid-state semantics.
  • Add quote model + expiry.
  • Add orders/order items.
  • Add idempotent purchase command/API.
  • Atomically debit + order + entitlement grant.
  • Add already-owned handling.
  • Add refund compensating entries.
  • Add chargeback account/entitlement policy.
  • Add seller payable placeholder accounting separate from credits.
  • Add quote via CLI/MCP.
  • Add transaction-specific confirmation contract.
  • Test duplicate webhooks.
  • Test duplicate purchase retries.
  • Test concurrent debit/overspend.
  • Document approved payment architecture.

Acceptance criteria

  • No double-mint/double-debit.
  • Concurrent purchase cannot create negative usable balance.
  • Entitlement is traceable to grant/order.
  • Every public representation still protects paid payload.
  • Payment provider has approved the actual business model.

Milestone: paid launch.

Ngôn ngữ chính
TypeScript
Star
186
Fork
40
Merge trung bình
10 giờ 12 phút
Pull request đã merge (30 ngày)
16

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nextlevelbuilder/skillx

Tất cả issue của nextlevelbuilder/skillx

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.