payment-gateway-integration

Solid

Integrate payment gateways like Stripe, PayPal, and Square with backends for payment processing, subscription management, and webhook handling. Use when building e-commerce platforms, implementing billing systems, and handling payments securely.

Web & Frontend 236 stars 35 forks Updated 2 months ago MIT

Install

View on GitHub

Quality Score: 84/100

Stars 20%
79
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Payment Gateway Integration ## Table of Contents - [Overview](#overview) - [When to Use](#when-to-use) - [Quick Start](#quick-start) - [Reference Guides](#reference-guides) - [Best Practices](#best-practices) ## 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: ```python # 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) ``` ...

Details

Author
aj-geddes
Repository
aj-geddes/useful-ai-prompts
Created
11 months ago
Last Updated
2 months ago
Language
Shell
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category