MCPInstall

software-payments

Designs production payment and billing systems. Use when implementing Stripe, Paddle, Adyen, subscriptions, tax, marketplaces, or mobile purchase flows.

Installs
164
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/vasilyu1983/ai-agents-public --skill software-payments
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads software-payments automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Payments & Billing Engineering

Use this skill to design, implement, and debug production payment integrations: checkout flows, subscription lifecycle handling, billing portals, entitlement gating, webhooks, regional pricing, and payment-testing strategy.

Quick Reference

NeedDefaultDeviationReference
Standard SaaS subscription checkoutStripe Checkout or Payment LinksUse Payment Element plus Express Checkout Element when branded custom UI is a hard requirementreferences/stripe-patterns.md
Merchant of record (managed tax/seller-of-record)Paddle or LemonSqueezyEvaluate Stripe Managed Payments after checking seller location, product tax codes, account eligibility and supported surfaces at its eligibility pagereferences/platform-comparison.md
High-volume or enterprise multi-method processingAdyen—references/platform-comparison.md
UK or EU bank debit and local methodsGoCardless, Mollie, or open-banking providersRepo-dependent: no bundle source differentiates the three by situation; keep whichever the existing integration already usesreferences/uk-eu-payments-guide.md
Usage-based metering or token billingStripe Billing Meters or Lago—references/subscription-lifecycle.md
Complex contract, seat, or revenue-recognition billingChargebee or Recurly on top of the processor—references/subscription-lifecycle.md
Webhook reliabilityverified signatures plus idempotent processing—references/webhook-reliability-patterns.md
Entitlement and feature gatingregistry plus API enforcement plus UI paywall—references/feature-gating-patterns.md
Native iOS in-app purchaseStoreKit 2 with backend JWS verificationAdd RevenueCat only when multi-platform entitlement sync materially justifies itreferences/storekit2-native-patterns.md
Checkout and webhook testingStripe CLI plus E2E automation—references/testing-patterns.md
AI agents initiating purchasesScoped, limited-use payment credential plus seller-side approvalHuman confirmation for high-risk actionsreferences/agentic-commerce.md

When to Use This Skill

Use this skill when the primary work is:

  • choosing a payment processor, merchant-of-record layer, or billing stack
  • implementing hosted or custom checkout
  • designing subscription lifecycle and webhook handling
  • building feature gating and billing-portal flows
  • handling regional pricing, tax-sensitive platform choice, or local methods
  • testing and operating checkout or billing workflows

Route elsewhere when the main task is:

NeedUse Instead
general backend implementation outside payments../software-backend/SKILL.md
API contract design without billing concerns../dev-api-design/SKILL.md
pricing strategy and package designstartup-business-models
checkout conversion optimizationmarketing-cro
application security review../software-security-appsec/SKILL.md
native app implementation around store billing../software-mobile/SKILL.md
wallets, crypto settlement or on-chain money movement../software-crypto-web3/SKILL.md
Stripe-specific product/API guidance or account toolingAvailable Stripe-maintained skills/plugins; discover them through Stripe’s agent guidance, then follow the runtime’s installation and permission policy

Defaults

  • Stripe is the default processor for most SaaS and product teams.
  • Hosted checkout is the default starting point unless branded custom UI is a hard requirement.
  • Verified webhooks trigger state sync; reconcile against the provider’s current objects because delivery can be duplicated or out of order.
  • Initialize provider clients lazily; do not fail builds on missing secrets at import time.
  • Omit payment_method_types unless you intentionally restrict available methods.
  • Make every webhook handler signature-verified and idempotent.
  • Keep feature gating enforced in three places: registry, API boundary, and UI paywall.
  • Treat platform availability, API versions, preview features, and tax behavior as volatile and verify before final advice.

Workflow

  1. Define the money movement, provider, customer and ledger boundary, then classify the business model:
    • one-time purchase
    • subscription
    • usage-based billing
    • marketplace or multi-party flow (load references/marketplace-payouts.md before choosing the money-flow model or designing payouts)
    • mobile IAP or hybrid web-plus-app billing
  2. Choose the stack:
    • processor
    • merchant-of-record layer if needed
    • billing orchestrator if lifecycle complexity justifies it
  3. Choose the checkout surface:
    • Checkout or Payment Links for speed
    • Payment Element for custom UX
  4. Implement the operational core:
    • webhook verification
    • idempotent processing
    • billing portal or self-serve management
    • entitlement sync and feature gating
  5. Reconcile provider balances or settlement reports, ledger entries and entitlements; assign unmatched records to an owner.
  6. Test success, decline, duplicate, timeout, refund and retry paths; add observability and incident handling before calling the integration production-ready.

See the Quick Reference table above for platform defaults by situation, plus references/platform-comparison.md and references/uk-eu-payments-guide.md for the detailed trade-offs. Mobile subscription default: StoreKit 2 or Play Billing as the store-of-record; add RevenueCat only when cross-platform entitlement sync, experiments, or web-plus-store coordination materially justify it.

Known Traps

  • Hybrid mobile billing without one entitlement registry. If App Store, Play Billing, and web subscriptions can all grant access, define one canonical entitlement state and one conflict-resolution rule before launch.
  • Treating checkout success redirects as purchase truth. Redirects are UX only; provisioning must wait for the verified webhook or store-server notification path.
  • Mixing mobile digital-goods policy boundaries with web-SaaS billing assumptions. Apple and Google policy treatment for in-app digital goods is volatile and must be re-verified before final implementation advice.
  • Showing an iOS link or button to web checkout without branching on the App Store storefront. External-link allowances, entitlements and terms depend on storefront and app category. Branch on Storefront.current and re-read the applicable guideline and regional terms before shipping. See references/storekit2-native-patterns.md.
  • Assuming RevenueCat is automatically the default for every mobile subscription stack. It is a coordination layer, not a requirement, and adds its own operational surface.
  • Reusing one webhook consumer for unrelated billing side effects without idempotent boundaries. Entitlements, invoicing, CRM sync, and analytics fan-out need separate retry and replay behavior.
  • Deferring tax, merchant-of-record, and invoice-issuer decisions until after checkout buildout. Those choices affect product catalog, legal entity exposure, refunds, and support flows.

Common Anti-Patterns

  • Using a native digital-goods checkout that violates the applicable storefront’s purchase and external-link policies; verify those policies before choosing the surface.
  • Creating separate product or price catalogs in web, mobile, and billing systems with no synchronization contract.
  • Using provider object IDs as the only entitlement key instead of a stable internal subscription or account identity.
  • Shipping a billing portal without a tested downgrade, cancellation, refund, and grace-period policy.
  • Letting the pricing page, checkout copy, entitlement rules, and CRM lifecycle drift independently.
  • Treating revenue analytics events as operational truth for access control.

Stripe Integration Defaults

If Stripe is the chosen processor, apply the general Defaults above plus these Stripe-specific defaults:

  • store internal user and tier metadata carefully and validate it before DB use
  • use subscription schedules for preplanned billing changes
  • keep billing portal enabled for self-serve changes
  • use entitlements when packaging changes often, but still enforce authorization in your own API

Use references/stripe-patterns.md for API-version notes, webhook mappings, and migration detail.

Agentic Commerce

When an AI agent buys on a user's behalf, or a seller accepts agent-initiated orders, give the agent only a per-transaction credential bound to a seller, currency, maximum amount, and expiry. Enforce spend limits in code, have the seller approve or decline against the final total, make every step idempotent under agent retries, require human confirmation for high-risk actions such as recurring charges or new merchants, and keep the consent record as dispute evidence. See references/agentic-commerce.md, which includes Stripe shared-payment-token notes.

Production Readiness Checklist

Reconciliation gate.

Define a provider-independent money record for expected amount, currency, fee, tax, settlement, refund, dispute, and current entitlement. Reconcile webhooks and provider balance or settlement reports against that record on a schedule, with an exception queue and an owner. A successful checkout redirect or webhook is event evidence; neither is proof that cash, accounting state, and access rights agree.

  • Webhook signatures verified on every handler before processing
  • All webhook handlers are idempotent (safe to replay the same event)
  • Checkout creation and webhook failures are explicitly logged
  • Dead-letter or retry strategy defined for out-of-order or failing events
  • Stripe CLI (or equivalent) wired into local and CI test flows
  • Tests cover success, decline, and 3DS / step-up challenge flows
  • Incident playbook written for checkout 500s, auth failures, and policy denials
  • Tax and merchant-of-record decisions finalized before checkout buildout
  • Feature gating enforced in three places: registry, API boundary, UI paywall

Common mistakes:

MistakeConsequence
Trusting client redirect as proof of purchaseProvisioning before the verified webhook, creating access without payment
Hardcoding prices or plan logic in codeCatalog drift and deploy-gated pricing changes
Setting payment_method_types unnecessarilyUnintentionally restricts available methods
Silently failing webhooks instead of retryingInvisible entitlement loss or dangling subscriptions
Treating Apple/Google policy as stable across releasesStore rejection or forced redesign

See: references/testing-patterns.md, references/webhook-reliability-patterns.md, references/feature-gating-patterns.md, references/ops-runbook-checkout-errors.md

Navigation

Core

  • references/stripe-patterns.md
  • references/platform-comparison.md
  • references/subscription-lifecycle.md
  • references/feature-gating-patterns.md

Regional and operational

  • references/uk-eu-payments-guide.md
  • references/regional-pricing-guide.md
  • references/webhook-reliability-patterns.md
  • references/ops-runbook-checkout-errors.md

Mobile and in-app purchase

  • references/storekit2-native-patterns.md

Agentic commerce

  • references/agentic-commerce.md

Marketplace payouts

  • references/marketplace-payouts.md

Testing and migrations

  • references/testing-patterns.md
  • references/in-app-browser-checkout-contract.md
  • assets/template-checkout-entrypoint-propagation-checklist.md
  • data/sources.json

Regulatory and Scheme Traps

Thresholds, dates, and legislative status in this area change often. Look them up at the source each time; this section keeps only the engineering controls.

  • 3DS test coverage: CI should exercise challenge, frictionless, off-session-requires-authentication, decline-after-authentication, and 3DS-not-supported paths. Take the card numbers from Stripe's testing docs (docs.stripe.com/testing) or stripe:test-cards at the time you write the test; do not copy them from memory.
  • SCA exemptions for MIT: merchant-initiated charges (renewals, saved-card charges) need off_session: true plus the required consent/mandate captured during on-session setup, with authentication where required. A missing flag can cause unexpected renewal declines. Check EMVCo and provider support for published versus draft specification features before using them.
  • EU PSD3 / PSR: check publication, effective dates and scope through qualified EU regulatory counsel before treating a provision as binding. Architecture risks to design for now: open-banking API performance standards, revised SCA exemptions, stronger APP-fraud liability, and one-leg-out scope.
  • EU Instant Payments Regulation: instant SEPA send/receive and Verification of Payee obligations phase in by eurozone and non-euro member state. Take the dates from the regulation text or qualified EU regulatory counsel before committing an implementation date to a customer.
  • Visa VAMP: the ratio counts fraud reports (TC40) and disputes (TC15) together, so one disputed-and-reported transaction can count twice. The main engineering lever is the exclusion path: disputes resolved pre-dispute (RDR/CDRN-type services) and Compelling Evidence 3.0 wins drop out of the ratio. Take merchant and acquirer thresholds from Visa's current VAMP fact sheet.
  • Mastercard ECP: tiered by chargeback count and ratio over a trailing window, with escalating fees and possible MATCH listing. Take tiers and fee schedules from the current Mastercard rulebook before quoting numbers to a merchant. Treat a merchant near either scheme's threshold as a specialist-review trigger, not a self-serve calculation.
  • PCI DSS v4.0.1: the future-dated v4.0 requirements are now baseline, including the payment-page script controls (6.4.3, 11.6.1). This skill covers checkout-surface scope reduction (SAQ A vs SAQ D; see references/stripe-patterns.md); route full scoping to a security/compliance specialist.
  • Stripe Managed Payments (merchant of record): eligibility-gated by business location, digital products, direct integrations only (no Connect), and Checkout Session or Payment Link surfaces. Check Stripe’s eligibility page for seller locations, account review, product tax codes and supported surfaces before committing to an MoR architecture.
  • UK rules: UK SCA (PSRs 2017 as amended), mandatory APP-fraud reimbursement, and the FCA deferred-payment-credit (BNPL) regime differ from EU rules. Route status and scope to qualified UK regulatory counsel; do not assume UK and EU consumer-liability rules match.
  • Surcharging: consumer-card surcharging is prohibited in the EU and UK. Check local rules before any fee pass-through feature that touches card instruments.

Learnings Loop

When prior decisions or pitfalls are relevant, consult learnings.consolidated.md if present; use learnings.md only for needed history or as the available fallback. Otherwise skip both.

After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.

FAQ

What does the software-payments skill do?

Designs production payment and billing systems. Use when implementing Stripe, Paddle, Adyen, subscriptions, tax, marketplaces, or mobile purchase flows.

How do I install software-payments?

Run npx skills add https://github.com/vasilyu1983/ai-agents-public --skill software-payments in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/software-payments/ (personal) or .claude/skills/software-payments/ (project).

Which AI agents can use software-payments?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is software-payments safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains software-payments?

It is published by vasilyu1983 in vasilyu1983/ai-agents-public. It has 164 recorded installs.

More from vasilyu1983/ai-agents-public

View all →

software-architecture-design

vasilyu1983/ai-agents-public

Designs runtime topology in a chosen solution. Use when choosing monolith vs services, cells, consistency, ADRs. Not for cross-system design (software-solution-architecture).

product-management

vasilyu1983/ai-agents-public

Guides founder-PM discovery, roadmaps, prioritization, and PMF measurement. Use when planning product strategy, metrics, or roadmaps.

AI & Agents914 installs

document-xlsx

vasilyu1983/ai-agents-public

Builds Excel charts, pivots, validation, exports, Office Scripts/Graph automation, and workbook audits. Use when automating workbooks; for plain edits prefer official xlsx skill.

Data & Databases875 installs

software-ui-ux-design

vasilyu1983/ai-agents-public

Designs and audits UI/UX systems with usability and accessibility requirements. Use when shaping flows, design systems, interaction patterns, or WCAG-aware product behavior.

Frontend & Design731 installs

document-pdf

vasilyu1983/ai-agents-public

Handles PDF/UA accessibility, real redaction, metadata scrubbing, signing, and extraction. Use when redacting or signing PDFs; for plain create/merge prefer the official pdf skill.

Docs & Writing689 installs

qa-testing-playwright

vasilyu1983/ai-agents-public

Builds and debugs Playwright E2E suites. Use when authoring browser tests, fixing flakes, or hardening Playwright CI and locator strategy.

Testing & QA665 installs

Popular backend & apis skills

View category →

find-skills

vercel-labs/skills

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

OfficialBackend & APIs4.1M installs

entra-app-registration

microsoft/azure-skills

Guides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration. USE FOR: create app registration, register Azure AD app, configure OAuth, set up authentication, add API permissions, generate service principal, MSAL example, console app auth, Entra ID setup, Azure AD authentication. DO NOT USE FOR: Key Vault secrets (use azure-keyvault-expiration-audit), general Azure resource security guidance.

OfficialBackend & APIs566.7K installs

This skill should be used when the user wants to "write agent code", "build an agent with ADK", "add a tool", "create a callback", "define an agent", "use state management" — in a project that needs ADK (Agent Development Kit) API patterns and code examples. It provides a quick reference for agent types, tool definitions, orchestration patterns, callbacks, state management, the graph Workflow API, and reference recipes to study. Do NOT use for scaffolding (use google-agents-cli-scaffold) or deployment (use google-agents-cli-deploy).

Backend & APIs514.8K installs

embedded-captions

heygen-com/hyperframes

Add captions or subtitles to an existing single-subject talking-head video without editing the footage. Use for plain verbatim captions, cinematic captions embedded behind the subject, VFX captions, “炸/特效/酷炫字幕,” or a named identity from the 35-style catalog. Route by visual identity, not by backend engine. The quiet anchor rail is the default; embed every word only when the user explicitly wants a fully cinematic treatment. The workflow runs locally end to end, including transcription and subject matting; split multi-shot footage before applying it.

Backend & APIs453.3K installs

entra-agent-id

microsoft/azure-skills

Provision Microsoft Entra Agent Identity Blueprints, BlueprintPrincipals, and per-instance Agent Identities via Microsoft Graph, and configure OAuth 2.0 token exchange (fmipath, OBO, cross-tenant) including the Microsoft Entra SDK for AgentID sidecar. USE FOR: Agent Identity Blueprint, BlueprintPrincipal, agent OAuth, fmipath token exchange, agent OBO, Workload Identity Federation for agents, polyglot agent auth, Microsoft.Identity.Web.AgentIdentities. DO NOT USE FOR: standard Entra app registration (use entra-app-registration), Microsoft Foundry agent authoring (use microsoft-foundry).

OfficialBackend & APIs336.6K installs

neon

neondatabase/agent-skills

Overview of Neon, a complete set of cloud backend primitives around Lakebase Postgres: Auth, Object Storage, Functions, the AI Gateway, and Realtime. Start here to choose Neon for undecided login, files, APIs, and LLM calls, set up the CLI or MCP server, and follow the branch-first workflow. Use when building an app or backend on Neon, or when "Neon" or "Lakebase Postgres" is mentioned. Child skill neon-postgres wins for an existing DATABASEURL, SQL, schema, inspect, or search. Child skill neon-auth wins for login, users, sessions, identity routing, and Managed Better Auth setup. Child skill neon-realtime wins for live queries in reactive apps and agents. Also use for object storage, S3, buckets, serverless functions, function triggers, cron, AI gateway, LLM calls, realtime, logs, Loki, Grafana, observability, postgres, database, backend, Claimable Neon, neon.new, or a no-signup database.

Backend & APIs237.1K installs