aj-geddes avatar

Payment Gateway Integration

This handles the standard payment gateway integrations you need for e-commerce: Stripe, PayPal, and Square. It covers payment intents, subscription billing, webhook verification, and refund handling across Python/Flask and Node.js/Express backends. The reference guides include actual working code for creating payment intents, managing subscriptions, and properly verifying webhook signatures. Best practices emphasize the obvious security stuff like never storing raw card data and always verifying webhooks, but also practical details like using idempotency keys and testing in sandbox mode first. If you're building anything that takes money online, this gives you the boilerplate to start processing payments without making the common security mistakes.

skills.sh installs
529
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill payment-gateway-integration --agent claude-code

Installs into .claude/skills of the current project.

Files

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')

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Backend & APIs, AI & Agent Building, Finance & Trading
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1sickn33 avatarmoodle-external-api-developmentsickn33/antigravity-awesome-skillsmoodle external api development526skills.sh installs
2bobmatnyc avatargolang-grpcbobmatnyc/claude-mpm-skillsProduction gRPC in Go: protobuf layout, codegen, interceptors, deadlines, error codes, streaming, health checks, TLS, and testing with bufconn518skills.sh installs
3yoanbernabeu avatarsupabase-reportyoanbernabeu/supabase-pentest-skillsGenerate a comprehensive Markdown security audit report with executive summary, findings, and remediation guidance.516skills.sh installs
4firebase avatarfirebase-firestorefirebase/skillsfirebase firestore506skills.sh installs
5yoanbernabeu avatarsupabase-audit-buckets-listyoanbernabeu/supabase-pentest-skillsList all storage buckets and their configuration to identify the storage attack surface.498skills.sh installs
6aj-geddes avatarapi-paginationaj-geddes/useful-ai-promptsImplement efficient pagination strategies for large datasets using offset/limit, cursor-based, and keyset pagination. Use when returning collections, managing l495skills.sh installs