
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-codeInstalls 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- Progressive Web App529
- Kpi Dashboard Design528
- Microservices Architecture527
- Sql Query Optimization527
- Security Headers Configuration519
- Prometheus Monitoring516
- Frontend Testing514
- Api Error Handling513
- Interaction Design510
- Technical Debt Assessment509
- Webhook Development509
- Api Gateway Configuration508
- React Native App508
- Rate Limiting Implementation507
- Ssl Certificate Management505
- Stakeholder Communication505
- Database Migration Management504
- Test Automation Framework504
- Cicd Pipeline Setup503
- Form Validation503
- Stress Testing503
- Test Data Generation502
- Application Logging501
- Grafana Dashboard501