A

Advisor Fintech Champion

All-in-one agent covering building, payment, systems, financial. Includes structured workflows, validation checks, and reusable patterns for finance.

AgentClipticsfinancev1.0.0MIT
0 views0 copies

Fintech Champion Advisor

Your agent for financial technology development β€” covering payment processing, banking APIs, compliance requirements, and secure financial application architecture.

When to Use This Agent

Choose Fintech Champion Advisor when:

  • Integrating payment processors (Stripe, PayPal, Adyen, Square)
  • Building financial applications with regulatory compliance (PCI-DSS, SOX, KYC/AML)
  • Designing secure money transfer, ledger, or transaction systems
  • Implementing banking APIs (Plaid, Open Banking, ACH, SWIFT)
  • Building cryptocurrency or blockchain integrations

Consider alternatives when:

  • You need general backend development β€” use a backend developer agent
  • You need cloud infrastructure β€” use a cloud architect agent
  • You need data analytics β€” use a data science agent

Quick Start

# .claude/agents/fintech-champion.yml name: Fintech Champion Advisor model: claude-sonnet tools: - Read - Write - Edit - Bash - Glob - Grep description: Fintech development agent for payment integration, banking APIs, compliance, and secure financial architecture

Example invocation:

claude "Design a payment processing system that integrates Stripe for card payments, handles webhook events idempotently, manages subscription billing, and complies with PCI-DSS requirements"

Core Concepts

Fintech Architecture Layers

LayerComponentsRequirements
PresentationPayment forms, dashboardsPCI-compliant UI, no card data in DOM
APIPayment endpoints, webhooksIdempotency, rate limiting, auth
ProcessingPayment orchestration, routingRetry logic, circuit breakers
LedgerTransaction records, balancesDouble-entry bookkeeping, audit trail
ComplianceKYC/AML, PCI-DSS, reportingData encryption, access controls

Payment Processing Flow

Customer β†’ Tokenize Card (client-side)
  β†’ Create PaymentIntent (server-side)
  β†’ Confirm Payment (payment processor)
  β†’ Webhook: payment_succeeded
  β†’ Update ledger + send receipt
  β†’ Webhook: payout.paid (settlement)

Error handling:
  β†’ payment_failed β†’ Retry or notify customer
  β†’ charge.dispute β†’ Automated evidence collection
  β†’ Webhook missed β†’ Polling fallback

Configuration

ParameterDescriptionDefault
payment_processorPrimary processor (stripe, adyen, paypal)stripe
compliance_levelCompliance requirements (pci-saq-a, pci-saq-d, full)pci-saq-a
currencyPrimary currencyUSD
ledger_typeAccounting model (single-entry, double-entry)double-entry
webhook_strategyWebhook handling (sync, async-queue, idempotent)idempotent

Best Practices

  1. Never handle raw card data on your servers. Use client-side tokenization (Stripe.js, Adyen Drop-in) to convert card details into tokens before they reach your backend. This keeps you at PCI SAQ-A (simplest compliance level) instead of SAQ-D (full audit).

  2. Make every payment operation idempotent. Network failures cause duplicate requests. Use idempotency keys on all payment API calls so that retrying a failed request doesn't create duplicate charges. Stripe and most processors support idempotency headers natively.

  3. Implement double-entry bookkeeping for all financial transactions. Every debit has a corresponding credit. This catches accounting errors, simplifies reconciliation, and provides an audit trail. Use a ledger table where every transaction creates two rows (debit and credit).

  4. Process webhooks asynchronously with at-least-once delivery. Payment webhooks may be delivered out of order, duplicated, or delayed. Queue webhooks for async processing, store the event ID to detect duplicates, and design handlers to be idempotent.

  5. Encrypt all financial data at rest and in transit. PCI-DSS mandates encryption for cardholder data. Use TLS 1.2+ for all API calls, AES-256 for data at rest, and never log card numbers, CVVs, or full account numbers β€” even in error messages.

Common Issues

Webhook events arrive out of order. A payment_intent.succeeded may arrive before payment_intent.created due to network timing. Design webhook handlers to be order-independent β€” check the current state of the resource (via API) rather than assuming a sequence.

Currency precision causes rounding errors. Never use floating-point types for money. Use integer cents (1234 = $12.34) or a dedicated money library. Floating-point arithmetic introduces rounding errors that compound across thousands of transactions.

Subscription renewals fail silently. Card expiration, insufficient funds, or bank declines cause renewal failures. Implement dunning logic: retry failed payments on a schedule (days 1, 3, 7), notify the customer, and suspend the account gracefully after repeated failures.

Community

Reviews

Write a review

No reviews yet. Be the first to review this template!

Similar Templates