本文へ移動
cccskills
無料GitHub で公開

payments-architecture

Design payment architecture independent of any single processor — gateway selection, payment intents, idempotency, webhook reliability, reconciliation, PCI scope, fraud, and refunds. Complements processor-specific skills. Triggers: choosing a PSP, designing webhook handling, reducing PCI scope, reconciling payments.

日本語の概要は準備中です。原文の説明を表示しています。

SebastianLuser/claude-code-arcaneスター 3(GitHub 3 + cccskills 0)

実行スコア 未検証

インストール方法を見る

含まれるファイル(1)

  • SKILL.md3.6 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Payments Architecture

The payment layer must never double-charge, never lose a webhook, and never widen PCI scope. This skill designs the processor-agnostic architecture; processor-specific implementation (e.g. Stripe) is a handoff.

Before Starting

Gather: markets/currencies, payment methods (cards, wallets, local methods), capture model (immediate vs auth/capture), subscription needs, and goal (design the architecture, harden webhooks, or audit an existing integration).

How This Skill Works

ModeTriggerOutput
DesigndesignGateway choice + payment flow + PCI strategy
WebhookswebhooksReliable, idempotent webhook handling design
AuditauditRisk review of an existing integration

Phase 1 — Flow & Idempotency

Use the payment intent model regardless of processor: create intent → confirm → succeeded/failed, with status mirrored onto the order.

PrincipleWhy
Idempotency keys on every create/chargeA retried request must not double-charge
Server-authoritative amountsNever trust client-sent totals; re-price server-side
Auth then capture (where supported)Capture at fulfillment, not at order placement
Money as integer minor unitsNo floats for currency, ever

Phase 2 — Webhook Reliability

Webhooks are the source of truth for async payment outcomes — treat them as unreliable transport:

  1. Verify the signature before doing anything.
  2. Deduplicate by event id (idempotent processing) — providers redeliver.
  3. Persist then process — store the raw event, ack fast (2xx), process out of band.
  4. Tolerate out-of-order delivery; reconcile against current state, don't assume sequence.
  5. Reconcile daily against the processor's ledger to catch missed events.

For the persist-ack-process pattern, retry/backoff, and reconciliation report design, apply the principles above and hand processor specifics to stripe-integration-expert.


Phase 3 — PCI Scope & Fraud

  • Minimize PCI scope: use hosted fields / tokenization so raw PAN never touches your servers (SAQ A). Never log card data.
  • Fraud: combine processor risk signals with velocity checks, AVS/CVV, and 3-D Secure for high-risk; balance friction vs chargebacks.
  • Refunds: never exceed captured amount; support partial; emit payment.refunded to the order lifecycle.

Output Artifacts

RequestOutput
DesignGateway selection + intent flow + PCI scope plan
WebhooksIdempotent handler design + reconciliation plan
AuditFindings: SECURE / CONCERNS / FAIL per area

A payment architecture is SECURE when charges are idempotent, amounts are server-authoritative, webhooks are signature-verified and deduplicated, money is integer minor units, and PCI scope is minimized.


Related Skills

  • stripe-integration-expert: processor-specific implementation once this architecture is set.
  • cart-checkout: invokes the payment step.
  • order-lifecycle: consumes payment events (paid, refunded).
  • subscription-billing: recurring charges build on this layer.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Plan, design, and implement A/B tests and experiments with statistical rigor. Covers hypothesis frameworks, sample sizing, metrics, and result analysis.

日本語の概要は準備中です。原文の説明を表示しています。

SebastianLuser/claude-code-arcane32026年10月27日 更新

Web/mobile accessibility decision guide: WCAG 2.2 AA, ARIA, keyboard nav, focus management, contrast, testing. Use for: a11y, accessibility, wcag, aria, screen reader, keyboard, contrast.

日本語の概要は準備中です。原文の説明を表示しています。

SebastianLuser/claude-code-arcane32026年10月27日 更新

Generate, iterate, and scale ad creative for paid advertising across Google, Meta, LinkedIn, and X. Covers platform specs, creative frameworks, and quality validation.

日本語の概要は準備中です。原文の説明を表示しています。

SebastianLuser/claude-code-arcane32026年10月27日 更新

Musica interactiva para juegos: layering vertical, re-secuenciacion horizontal, stingers, reglas de transicion con sync points, y mapeo de estados de gameplay a musica. Usar para: musica adaptativa, sistema de musica dinamica, transiciones musicales, combat music.

日本語の概要は準備中です。原文の説明を表示しています。

SebastianLuser/claude-code-arcane32026年10月27日 更新

Design multi-agent systems, create agent architectures, define communication patterns, and build autonomous agent workflows with structured evaluation frameworks.

日本語の概要は準備中です。原文の説明を表示しています。

SebastianLuser/claude-code-arcane32026年10月27日 更新

Inter-agent communication protocol for C-suite agent teams. Defines invocation syntax, loop prevention, isolation rules, response formats, and quality loops.

日本語の概要は準備中です。原文の説明を表示しています。

SebastianLuser/claude-code-arcane32026年10月27日 更新

SebastianLuser のスキルをすべて見る

このスキルの問題を報告する