payment-gateway-integration

payment-gateway-integration is a skill for Claude Code, Codex from aj-geddes/useful-ai-prompts. It costs 48 tokens per session (647 once invoked), scanned A, original, MIT.

A guide to connecting a backend to payment services such as Stripe, PayPal, and Square. It covers one-time payments, subscriptions, refunds, webhooks, and payment-security requirements.

In plain words
What is it for?
Use it for online shops, billing systems, subscription services, refunds, disputes, and recurring charges.
Why use it?
It helps handle provider-specific payment flows, recurring billing, failed transactions, and payment notifications in one implementation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for online shops, billing systems, subscription services, refunds, disputes, and recurring charges.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aj-geddes/useful-ai-prompts/payment-gateway-integration
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add aj-geddes/useful-ai-prompts --skill payment-gateway-integration
Clone the repo
git clone --depth 1 https://github.com/aj-geddes/useful-ai-prompts

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for payment-gateway-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/aj-geddes/useful-ai-prompts/payment-gateway-integration/github.svg)](https://agentmods.dev/skills/aj-geddes/useful-ai-prompts/payment-gateway-integration)
Your own site
<a href="https://agentmods.dev/skills/aj-geddes/useful-ai-prompts/payment-gateway-integration"><img src="https://agentmods.dev/badge/skills/aj-geddes/useful-ai-prompts/payment-gateway-integration/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for payment-gateway-integration

Your own site · 80×15
<a href="https://agentmods.dev/skills/aj-geddes/useful-ai-prompts/payment-gateway-integration"><img src="https://agentmods.dev/badge/skills/aj-geddes/useful-ai-prompts/payment-gateway-integration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 647 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket warn 16 Sept 2026
  • Snyk warn 16 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.00647
Opus 5.5 $0.00019 $0.00259
Sonnet 5.5 $0.00010 $0.00129
Haiku 4.5 $0.00005 $0.00065

Measured 2mo ago against content hash b4f34dee4138, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

payment-gateway-integration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/validate-api.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/payment-gateway-integration/SKILL.md · 106 lines

How it starts

The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Payment Gateway Integration

Table of Contents

Overview

Build secure payment processing systems with major payment providers (Stripe, PayPal, Square), handling transactions, subscriptions, webhooks, PCI compliance, and error scenarios across different backend frameworks.

When to Use

  • Processing customer payments
  • Implementing subscription billing
  • Building e-commerce platforms
  • Handling refunds and disputes
  • Managing recurring charges
  • Integrating payment webhooks

Quick Start

Minimal working example:

# config.py
import os

class StripeConfig:
    STRIPE_SECRET_KEY = os.getenv('STRIPE_SECRET_KEY')
    STRIPE_PUBLISHABLE_KEY = os.getenv('STRIPE_PUBLISHABLE_KEY')
    STRIPE_WEBHOOK_SECRET = os.getenv('STRIPE_WEBHOOK_SECRET')

# stripe_service.py
import stripe
from datetime import datetime, timedelta
import logging

logger = logging.getLogger(__name__)

stripe.api_key = os.getenv('STRIPE_SECRET_KEY')

class StripePaymentService:
    @staticmethod
    def create_payment_intent(amount, currency='usd', description=None, metadata=None):
        """Create a payment intent"""
        try:
            intent = stripe.PaymentIntent.create(
                amount=int(amount * 100),  # Convert to cents
                currency=currency,
// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

Guide Contents
Stripe Integration with Python/Flask Stripe Integration with Python/Flask
Node.js/Express Stripe Integration Node.js/Express Stripe Integration
PayPal Integration PayPal Integration
Subscription Management Subscription Management

Read the full file on GitHub · 106 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 106 lines · 48 tokens per session scan A b4f34dee4138

Subscribe to this mod's changes

payment-gateway-integration is a skill published in the GitHub repository aj-geddes/useful-ai-prompts (376 stars, last pushed 8mo ago), licensed MIT. It adds 48 tokens to every session and 647 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

payment-gateway-integration compared with skills from other repositories

payment-gateway-integration next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
payment-gateway-integrationaj-geddes/useful-ai-promptsSkill3768mo agoMITA48Claude Code, Codex
asc-ppp-pricingrorkai/app-store-connect-cli-skillsSkill1.1kyesterdayMITA45Claude Code
snaplii-cliSnaplii-Inc/agent-to-merchant-paymentsSkill8122d agoApache-2.0A184Claude Code
stripeCraftOS-dev/CraftBotSkill4022d agoMITA79Claude Code, Codex
ai-slopwaybarrios/opencode-power-packSkill5514d agoMITA61Claude Code
stripemagnus919/agent-skillsSkill1662d agoMITA116Claude Code, Codex
asc-ppp-pricinghanamizuki/solopreneurSkill1563d agoMITA45Claude Code