Agent skill

payment-integration

Expert in integrating payment gateways (Stripe, PayPal, Adyen) and designing PCI-compliant billing architectures. Use when implementing checkout flows, subscriptions, or payment processing. Triggers include "Stripe", "PayPal", "payment gateway", "checkout", "subscription billing", "PCI compliance", "payment processing".

Stars 66
Forks 6

Install this agent skill to your Project

npx add-skill https://github.com/404kidwiz/claude-supercode-skills/tree/main/payment-integration-skill

SKILL.md

Payment Integration

Purpose

Provides expertise in integrating payment gateways and designing PCI-compliant billing systems. Specializes in implementing checkout flows, subscription management, and payment processing with providers like Stripe, PayPal, and Adyen.

When to Use

  • Integrating Stripe, PayPal, or other payment gateways
  • Implementing checkout and payment flows
  • Building subscription billing systems
  • Ensuring PCI-DSS compliance
  • Handling payment webhooks
  • Implementing payment retry logic
  • Setting up multi-currency payments
  • Building invoicing systems

Quick Start

Invoke this skill when:

  • Integrating payment gateways (Stripe, PayPal, Adyen)
  • Building checkout or subscription flows
  • Designing PCI-compliant payment systems
  • Implementing webhook handlers for payments
  • Setting up recurring billing

Do NOT invoke when:

  • General ledger/accounting systems → use /fintech-engineer
  • API design without payment focus → use /api-designer
  • Frontend checkout UI only → use /frontend-design
  • Security audit → use /security-auditor

Decision Framework

Payment Use Case?
├── One-time Purchase
│   └── Stripe Checkout / PayPal Buttons
├── Subscription
│   └── Stripe Billing / Recurly
├── Marketplace/Split Payments
│   └── Stripe Connect / PayPal Commerce
├── Enterprise/B2B
│   └── Invoicing with NET terms
└── Global Payments
    └── Adyen / Multi-gateway strategy

Core Workflows

1. Stripe Integration

  1. Set up Stripe account and API keys
  2. Create products and prices
  3. Implement Checkout Session or Elements
  4. Handle payment confirmation
  5. Set up webhook endpoint
  6. Process webhook events (succeeded, failed)

2. Subscription Billing

  1. Define subscription plans and pricing
  2. Create customer in payment provider
  3. Implement subscription creation flow
  4. Handle trial periods
  5. Manage upgrades/downgrades
  6. Implement dunning for failed payments

3. Webhook Handling

  1. Create secure webhook endpoint
  2. Verify webhook signatures
  3. Make handlers idempotent
  4. Process events in order
  5. Handle retry scenarios
  6. Log all webhook events

Best Practices

  • Never store full card numbers—use tokenization
  • Always verify webhook signatures
  • Implement idempotency for payment operations
  • Use test mode thoroughly before production
  • Handle all payment states (pending, succeeded, failed)
  • Store payment provider IDs for reconciliation

Anti-Patterns

Anti-Pattern Problem Correct Approach
Storing card numbers PCI violation Use tokenization
No webhook verification Security risk Verify signatures
Synchronous payment only Poor UX, timeouts Async with webhooks
Missing idempotency Duplicate charges Idempotency keys
No retry logic Lost revenue Implement dunning

Expand your agent's capabilities with these related and highly-rated skills.

404kidwiz/claude-supercode-skills

documentation-engineer

Technical documentation and knowledge management expert. Use when creating comprehensive documentation systems, improving developer knowledge sharing, or building documentation-driven development workflows.

66 6
Explore
404kidwiz/claude-supercode-skills

backend-developer

Comprehensive backend development for building production-ready server-side applications with multiple frameworks, databases, and deployment strategies. Use when building APIs, services, databases, or server infrastructure.

66 6
Explore
404kidwiz/claude-supercode-skills

powershell-5.1-expert

Expert in legacy Windows PowerShell 5.1. Specializes in WMI, ADSI, COM automation, and maintaining backward compatibility with Windows Server environments. Use for Windows-specific automation on legacy systems. Triggers include "PowerShell 5.1", "Windows PowerShell", "WMI", "ADSI", "COM object", "legacy PowerShell".

66 6
Explore
404kidwiz/claude-supercode-skills

qa-expert

Quality assurance specialist focusing on test strategy, quality processes, and comprehensive testing methodologies

66 6
Explore
404kidwiz/claude-supercode-skills

multi-agent-coordinator

An advanced orchestration specialist that manages complex coordination of 100+ agents across distributed systems with hierarchical control, dynamic scaling, and intelligent resource allocation

66 6
Explore
404kidwiz/claude-supercode-skills

tooling-engineer

Expert in building developer tools, CLI utilities, IDE extensions, and optimizing local development environments.

66 6
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results