Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aj-geddes avatar

Payment Gateway Integration

  • 469 installs
  • 305 repo stars
  • Updated March 4, 2026
  • aj-geddes/useful-ai-prompts

payment-gateway-integration is a Claude Code skill that guides developers through Stripe, PayPal, and similar payment gateway setup with checkout flows, webhooks, idempotent charges, refunds, subscriptions, and PCI-aware

About

payment-gateway-integration is a prompt skill from aj-geddes/useful-ai-prompts that walks developers through production payment wiring for monetized products. The skill covers gateway selection, checkout session design, server-side charge APIs, webhook signature verification, idempotent payment retries, refund flows, subscription lifecycle events, and PCI-aware patterns that keep card data off your servers. Developers reach for payment-gateway-integration when a SaaS or ecommerce feature needs real money movement and the team must avoid double charges, missed webhook events, or unsafe client-side token handling. The skill targets backend engineers adding billing to an existing app rather than teams still choosing a business model. It assumes you already have an application stack and need concrete integration steps for Stripe, PayPal, or comparable providers.

  • Checkout and subscription flow wiring
  • Webhook verification and idempotency patterns
  • Refund, dispute, and failure handling guidance
  • PCI scope reduction via server-side tokens
  • Test-mode and production cutover checklist

Payment Gateway Integration by the numbers

  • 469 all-time installs (skills.sh)
  • Ranked #875 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill payment-gateway-integration

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs469
repo stars305
Last updatedMarch 4, 2026
Repositoryaj-geddes/useful-ai-prompts

How do you integrate Stripe webhooks and idempotent charges?

Integrate Stripe, PayPal, or similar gateways with checkout flows, webhooks, idempotent charges, refunds, subscriptions, and PCI-aware server-side handling for monetized products.

Who is it for?

Backend developers shipping monetized SaaS or ecommerce checkout who need Stripe, PayPal, or similar gateway integration guidance.

Skip if: Teams still exploring pricing strategy or products with no payment requirement should skip payment-gateway-integration.

When should I use this skill?

The user asks to add Stripe, PayPal, subscriptions, payment webhooks, refunds, or PCI-safe checkout to an application.

What you get

Checkout flow code, webhook handlers, refund logic, subscription event processors, and PCI-safe server-side payment patterns.

  • Webhook handler code
  • Checkout integration patterns
  • Subscription billing flow

Files

SKILL.mdMarkdownGitHub ↗

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:

GuideContents
Stripe Integration with Python/FlaskStripe Integration with Python/Flask
Node.js/Express Stripe IntegrationNode.js/Express Stripe Integration
PayPal IntegrationPayPal Integration
Subscription ManagementSubscription Management

Best Practices

✅ DO

  • Use official payment SDK libraries
  • Verify webhook signatures
  • Store minimal payment information
  • Never store full credit card numbers
  • Use HTTPS for all payment routes
  • Implement proper error handling
  • Test with sandbox environments
  • Handle payment failures gracefully
  • Implement PCI compliance
  • Log all payment transactions
  • Use idempotency keys
  • Implement retry logic

❌ DON'T

  • Handle raw card data
  • Store sensitive payment information
  • Log sensitive details
  • Trust client-side validation only
  • Ignore webhook events
  • Hardcode API keys
  • Use test keys in production
  • Skip SSL/TLS verification
  • Forget to validate amounts
  • Store payment tokens without encryption

Related skills

FAQ

What payment providers does payment-gateway-integration cover?

payment-gateway-integration focuses on Stripe, PayPal, and similar mainstream payment gateways. The skill guides checkout flows, webhooks, idempotent charges, refunds, subscriptions, and PCI-aware server-side handling for monetized SaaS and ecommerce products.

Does payment-gateway-integration handle subscription billing?

payment-gateway-integration includes subscription setup, lifecycle webhook events, refund flows, and idempotent charge retries. Developers use it when wiring recurring billing alongside one-time checkout in production backends.

Backend & APIspaymentsecommercepricing

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.