← 返回
未分类 中文

a2a-Market-Stripe-Payment

Integrate Stripe payment intents, capture flow, and webhook reconciliation for A2A orders. Use when implementing payment authorization/capture, refund path,...
集成 Stripe 支付意图、捕获流程和 webhook 对账,适用于 A2A 订单的支付授权、捕获及退款流程实现。
luoqianchenguni-max
未分类 clawhub v0.2.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 880
下载
💾 0
安装
1
版本
#latest

概述

a2a-Market Stripe Payment

Create the Stripe payment integration skeleton for order settlement.

Current status: registration scaffold with stable payment contracts and webhook map.

Scope

  • Create payment intent from negotiated order terms.
  • Capture or cancel payments based on order transitions.
  • Reconcile webhook events with internal order state.

Suggested Project Layout

  • app/integrations/stripe/stripe_client.py
  • app/application/services/payment_service.py
  • app/interfaces/api/payment_routes.py
  • app/infrastructure/tasks/stripe_webhook_worker.py

Minimum Contracts (MVP P0)

  1. create_payment_intent(order_id, amount, currency) returns provider intent id + client secret.
  2. capture_payment(provider_intent_id) captures authorized funds.
  3. cancel_payment(provider_intent_id) voids uncaptured authorization.
  4. handle_webhook(event) verifies signature and upserts payment status.

Event Mapping

  • Emit ORDER_CREATED when payment intent is created.
  • Emit PAYMENT_SUCCEEDED when capture confirms.
  • Emit payment-failed incident event when authorization/capture fails.

Guardrails

  • Verify webhook signature before parsing payload.
  • Enforce idempotency key for create/capture endpoints.
  • Keep provider status mapping table explicit and versioned.

Implementation Backlog

  • Add partial refund and dispute webhook handling.
  • Add multi-currency routing and fee optimization.

Runtime Implementation

  • Status: implemented in local runtime package.
  • Primary code paths:
  • runtime/src/integrations/stripe/stripe-payment-service.js
  • Validation: covered by runtime/tests and npm test in runtime/.

版本历史

共 1 个版本

  • v0.2.0 当前
    2026-05-01 06:55 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

a2a supermarket

luoqianchenguni-max
RealMarket A2A 商业工作流的统一入口技能,支持卖家发布商品、买家通过 UCP 市场连通发现商品,并提供更多功能。
★ 0 📥 630
developer-tools

Amazon Refund & Price Tracker Agent

luoqianchenguni-max
{"answer": "追踪亚马逊价格,监控订单,抓取评论,获取订单详情,起草退款信息,并高效管理退款案例。"}
★ 0 📥 637

a2a-Market-Order-State-Machine

luoqianchenguni-max
定义A2A交易的订单生命周期状态、转换守卫及恢复路径,适用于从报价接受到履约完成的订单编排实现。
★ 0 📥 568