irahardianto/agy-perf-optimization-demo/payment-integration
Claude Code and agent skill by irahardianto/agy-perf-optimization-demo
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
PCI DSS compliance, payment gateway integration, tokenization, webhook reliability, idempotency, fraud prevention, and subscription billing.
Install
npx vskill@latest install irahardianto/agy-perf-optimization-demo/payment-integrationSKILL.md
Payment Integration Principles
Guidelines for building secure, compliant payment systems.
When to Invoke
- Integrating payment gateways (Stripe, Adyen, etc.)
- PCI compliance requirements
- Subscription/billing system design
- Fraud prevention implementation
Security (Non-Negotiable)
PCI DSS Compliance
- Never store raw card data — use tokenization via gateway.
- Never log payment credentials — mask card numbers, CVV never stored.
- TLS everywhere — all payment communication over HTTPS.
- Minimal data retention — store only what's legally required.
Tokenization Flow
Your server never sees raw card data.
Transaction Patterns
Idempotency (Critical)
- Generate idempotency key client-side or server-side
- Store key → result mapping for deduplication
- Retry-safe — network failures don't cause double charges
Authorization Flow
Webhook Handling
- Verify webhook signatures — never trust unverified payloads.
- Idempotent processing — webhooks may be delivered multiple times.
- Queue webhooks — process asynchronously, acknowledge immediately (200 OK).
- Handle out-of-order delivery — use event timestamps, not arrival order.
Subscription Billing
Lifecycle
Dunning Management
- Retry failed payments (exponential backoff: day 1, 3, 7, 14)
- Notify user before and after each retry
- Grace period before cancellation
Fraud Prevention
- 3D Secure (SCA) for European payments (PSD2 requirement).
- Address Verification (AVS) — match billing address.
- Velocity checks — rate-limit transactions per user/IP.
- Risk scoring — use gateway's built-in fraud tools.
Testing
For universal testing principles, see.agents/rules/testing-strategy.md. Below: language-specific patterns only.
- Sandbox/test mode for all development — never test with real cards.
- Test card numbers — cover success, decline, 3DS, and error scenarios.
- Webhook testing — use gateway's webhook testing tools or local tunnels.
Related
- Security Principles .agents/rules/security-principles.md
- API Design Principles @.agents/rules/api-design-principles.md
- Error Handling Principles .agents/rules/error-handling-principles.md
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingflashmart-api/.agents/skills/payment-integration/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/irahardianto/agy-perf-optimization-demo/payment-integration)