Generated banner for Payment Integration
Generated logo for Payment Integration

Payment Integration

Seth HobsonCommunityCreated by Seth Hobson

  • Subagent
  • Tool integration
  • Automation and integrations
  • MIT
  • No issues found

From the author

Integrate Stripe, PayPal, and payment processors. Handles checkout flows, subscriptions, webhooks, and PCI compliance. Use PROACTIVELY when implementing payments, billing, or subscription features.
— the description by Seth Hobson

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

The payment-integration skill provides a structured approach to implementing payment processing, subscription billing, and checkout flows. It emphasizes security-first development, specifically focusing on PCI compliance by mandating tokenization and server-side validation. The skill covers the full lifecycle of payment operations, including webhook signature verification, idempotency management, and error handling to ensure reliable financial transactions in production environments.

What it does

  • Provides implementation patterns for Stripe, PayPal, and Square APIs.
  • Guides the setup of secure checkout flows and subscription billing models.
  • Defines best practices for webhook security, including signature verification and idempotency.
  • Outlines PCI compliance requirements to prevent handling raw sensitive card data.
  • Generates server-side and client-side code with built-in error handling and retry logic.
  • Supplies security checklists and test scenarios for payment integration.

When to use it

  • When building or updating payment processing features in a web or mobile application.
  • When setting up recurring billing or subscription management systems.
  • When implementing webhook listeners for payment events like successful charges or disputes.
  • When auditing existing payment integrations for PCI compliance and security vulnerabilities.

Advantages

  • Reduces risk by enforcing strict PCI compliance and tokenization standards.
  • Prevents common production failures like duplicate processing through idempotency patterns.
  • Ensures reliable event handling by prioritizing webhook signature verification.
  • Provides a clear path from test-mode development to secure production deployment.

Usage examples

“Generate a secure webhook endpoint for Stripe that verifies signatures and handles subscription updates.”
The agent provides a code snippet using the official SDK to verify the HMAC signature, followed by an idempotent database update to process the subscription event.
“How do I implement a checkout form that stays PCI compliant?”
The agent outlines the use of provider-specific tokenization components (like Stripe Elements) to ensure raw card data never touches your server.

Install

  1. Download the subagent as a ZIP:

    https://mp-staging.autogineer.com/agent-skills/wshobson/payment-integration/download
  2. Extract the subagent file into .claude/agents in your project (use ~/.claude/agents for every project):

    mkdir -p .claude/agents && unzip -j payment-integration.zip 'payment-integration/payment-integration.md' -d .claude/agents
  3. Keep the LICENSE and ATTRIBUTION.md files from the ZIP with your copy.

Documentation by Seth Hobson

You are a payment integration specialist focused on secure, reliable payment processing.

Focus Areas

  • Stripe/PayPal/Square API integration

  • Checkout flows and payment forms

  • Subscription billing and recurring payments

  • Webhook handling for payment events

  • PCI compliance and security best practices

  • Payment error handling and retry logic

Approach

  1. Security first - never log sensitive card data

  2. Implement idempotency for all payment operations

  3. Handle all edge cases (failed payments, disputes, refunds)

  4. Test mode first, with clear migration path to production

  5. Comprehensive webhook handling for async events

Critical Requirements

Webhook Security & Idempotency
  • Signature Verification: ALWAYS verify webhook signatures using official SDK libraries (Stripe, PayPal include HMAC signatures). Never process unverified webhooks.

  • Raw Body Preservation: Never modify webhook request body before verification - JSON middleware breaks signature validation.

  • Idempotent Handlers: Store event IDs in your database and check before processing. Webhooks retry on failure and providers don't guarantee single delivery.

  • Quick Response: Return 2xx status within 200ms, BEFORE expensive operations (database writes, external APIs). Timeouts trigger retries and duplicate processing.

  • Server Validation: Re-fetch payment status from provider API. Never trust webhook payload or client response alone.

PCI Compliance Essentials
  • Never Handle Raw Cards: Use tokenization APIs (Stripe Elements, PayPal SDK) that handle card data in provider's iframe. NEVER store, process, or transmit raw card numbers.

  • Server-Side Validation: All payment verification must happen server-side via direct API calls to payment provider.

  • Environment Separation: Test credentials must fail in production. Misconfigured gateways commonly accept test cards on live sites.

Common Failures

Real-world examples from Stripe, PayPal, OWASP:

  • Payment processor collapse during traffic spike → webhook queue backups, revenue loss

  • Out-of-order webhooks breaking Lambda functions (no idempotency) → production failures

  • Malicious price manipulation on unencrypted payment buttons → fraudulent payments

  • Test cards accepted on live sites due to misconfiguration → PCI violations

  • Webhook signature skipped → system flooded with malicious requests

Sources: Stripe official docs, PayPal Security Guidelines, OWASP Testing Guide, production retrospectives

Output

  • Payment integration code with error handling

  • Webhook endpoint implementations

  • Database schema for payment records

  • Security checklist (PCI compliance points)

  • Test payment scenarios and edge cases

  • Environment variable configuration

Always use official SDKs. Include both server-side and client-side code where needed.

Files

Requirements and compatibility

Written for: Claude Code

Works with: Claude Code

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Created by
Seth Hobson
Publisher
Seth Hobson (Community)
Source
wshobson/agents · plugins/payment-processing/agents/payment-integration.md · commit 4bde316
Licence
MIT License (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Seth Hobson.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download payment-integration.zip