Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#37 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
20/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
活跃
技术栈
typescript

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
TypeScript
星标
189
派生
40
平均合并
7 小时 38 分钟
30 天内合并 PR
30

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextlevelbuilder/skillx 的其他 Issue

查看 nextlevelbuilder/skillx 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。