Payment Integration
Seth HobsonCommunityCreated by Seth Hobson
- Subagent
- Tool integration
- Automation and integrations
- MIT
- No issues found
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
Download the subagent as a ZIP:
https://mp-staging.autogineer.com/agent-skills/wshobson/payment-integration/downloadExtract 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/agentsKeep 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
Security first - never log sensitive card data
Implement idempotency for all payment operations
Handle all edge cases (failed payments, disputes, refunds)
Test mode first, with clear migration path to production
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
2xxstatus 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
- ATTRIBUTION.mdAdded by AutoGineer999 B
- LICENSELicence file added by AutoGineer1.0 KiB
- payment-integration.md3.1 KiB
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