payment-integration
Skill157 starsChanged 3 months agoMITView on GitHub
PCI DSS compliance, payment gateway integration, tokenization, webhook reliability, idempotency, fraud prevention, and subscription billing.
15 other projects use a version of this.
Adopted by
Most recently taken up by
- belentani7/manus-ai-skill-packtheir own version, first seen Sep 12, 2026
- 2867203296/hermes-agenttheir own version, first seen Aug 19, 2026
- jshsakura/awesome-opencode-skillstheir own version, first seen Jul 8, 2026
- duongthinh03/portfoliotheir own version, first seen Jun 24, 2026
- codecharmhq/claude-code-skillstheir own version, first seen May 17, 2026
- luanquangminh/claude-skilltheir own version, first seen Apr 21, 2026
Used with
Projects with it also use mobile-development, planning and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
truongtv22Skillmobile-development
Build modern mobile applications with React Native, Flutter, Swift/SwiftUI, and Kotlin/Jetpack Compose. Covers mobile-first design principles, performance optimization (battery, memory, network), offline-first architecture, platform-specific guidelines (iOS HIG, Material Design), testing strategies, security best practices, accessibility, app store deployment, and mobile development mindset. Use when building mobile apps, implementing mobile UX patterns, optimizing for mobile constraints, or making native vs cross-platform decisions.
Also in 3 projects that use this
AWSSkillplanning
Discovers user intent and generates a structured, step-by-step plan for model customization workflows. This skill must always be activated alongside any other skill when the user's request relates to model customization — including fine-tuning, training, building, customizing, reviewing data, or getting advice on approach, regardless of domain. Do not skip this skill even if the immediate ask is narrow (e.g., reviewing data format or a single workflow step), because planning discovers the full scope of work needed. Also activate when the user wants to resume, continue, or modify an existing plan.
Also in 3 projects that use this
DockerSkillresearch
Research a documentation topic — locate affected files, understand the problem, identify what to change. Use when investigating an issue, a question, or a topic before writing a fix. Triggers on: "research issue 1234", "investigate what needs changing for #500", "what files are affected by #200", "where is X documented", "is our docs page about Y accurate", "look into how we document Z".
Also in 3 projects that use this
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- mrgoonie/claudekit-skills★ 2.2ksame name
- travisjneuman/.claude★ 101same name
- duongthinh03/portfolio★ 85same name
- jshsakura/awesome-opencode-skills★ 29same name
- belokonm/claude-supercode-skills★ 11same name
- xfstudio/skills★ 9same name
- marttp/my_agent_skills_I_use★ 4same name
- ai4brands-design/claude-skills★ 2same name
- kyuhyi/BSD_claude_skills★ 2same name
- codecharmhq/claude-code-skills★ 1same name
5 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository59 other files it gives its agents.
- github-pages/agents.mdAGENTS.md
- adrSkill
- agent-protocolsSkill
- angular-idiomsSkill
- api-documentationSkill
- axum-idiomsSkill
- browser-automationSkill
- chaos-testingSkill
- ci-cdSkill
- cli-developmentSkill
- code-auditSkill
- code-reviewSkill
- cpp-idiomsSkill
- csharp-idiomsSkill
- data-engineeringSkill
- debugging-protocolSkill
- django-idiomsSkill
- dotnet-idiomsSkill
- elixir-idiomsSkill
- embedded-systemsSkill
- feature-flagsSkill
- flutter-idiomsSkill
- frontend-designSkill
- git-commit-integritySkill
- go-idiomsSkill
- guardrailsSkill
- hono-idiomsSkill
- incident-responseSkill
- java-idiomsSkill
- javascript-idiomsSkill
- kotlin-idiomsSkill
- laravel-idiomsSkill
- logging-implementationSkill
- ml-engineeringSkill
- mobile-designSkill
- mobile-testingSkill
- nextjs-idiomsSkill
- parallel-dispatchSkill
- perf-optimizationSkill
- php-idiomsSkill
- postgres-idiomsSkill
- python-idiomsSkill
- rails-idiomsSkill
- react-idiomsSkill
- refactoring-patternsSkill
- research-methodologySkill
- ruby-idiomsSkill
- rust-idiomsSkill
- security-auditSkill
- sequential-thinkingSkill
- spring-boot-idiomsSkill
- sql-idiomsSkill
- structured-specSkill
- supply-chain-securitySkill
- swift-idiomsSkill
- testability-patternsSkill
- testing-strategySkill
- typescript-idiomsSkill
- vue-idiomsSkill
The file
Files
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
User → Client-side SDK (Stripe.js/Elements) → Gateway tokenizes → Token to your server → Server charges via tokenYour server never sees raw card data.
Transaction Patterns
Idempotency (Critical)
POST /api/payments
Idempotency-Key: unique-request-id-abc123
→ Gateway processes once, returns same result on retry- 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
Authorize → Capture → Settle
→ Void (cancel before capture)
→ Refund (after capture)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
Trial → Active → Past Due (dunning) → Cancelled/Expired
→ Upgraded/Downgraded (proration)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
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

