FastAPI Payments

Contents:

  • Getting Started
    • Installation
      • Basic Installation
      • Optional Dependencies
      • Requirements
    • Setup
      • Database Setup
      • RabbitMQ Setup
      • Provider Accounts
        • Stripe
        • PayPal
        • Adyen
    • Configuration
      • Configuration File
      • Environment Variables
      • Configuration Schema
      • Message Broker Configuration
    • Quickstart
      • Basic Integration
      • Basic Operations
        • Creating a Customer
        • Creating a Product and Plan
        • Creating a Subscription
        • Processing a Payment
        • Handling Webhooks
      • Complete Example
  • Core Concepts
    • Payment Providers
      • Provider Architecture
      • The Provider Interface
        • Customer Management
        • Payment Method Management
        • Product and Plan Management
        • Subscription Management
        • Payment Processing
        • Webhook Handling
      • Supported Providers
        • Stripe Provider
        • PayPal Provider
        • Adyen Provider
      • Adding Custom Providers
    • Pricing Models
      • Overview
      • The Pricing Strategy Interface
      • Supported Pricing Models
        • Subscription Pricing
        • Usage-Based Pricing
        • Tiered Pricing
        • Per-User Pricing
        • Freemium Pricing
        • Dynamic Pricing
        • Hybrid Pricing
      • Pricing Configuration
    • Database Architecture
      • Data Model
        • Customer
        • ProviderCustomer
        • Product
        • Plan
        • Subscription
        • Payment
      • Repository Pattern
      • Database Configuration
      • Migrations
    • Event-Driven Architecture
      • Overview
      • Supported Message Brokers
      • Broker Configuration
        • RabbitMQ (Default)
        • Kafka
        • Redis
        • NATS
      • Event Types
        • Customer Events
        • Payment Method Events
        • Subscription Events
        • Payment Events
        • Invoice Events
        • Usage Events
      • Publishing Events
      • Consuming Events
      • Using Default Handlers
      • Best Practices
  • Examples
    • Simple Subscription Example
      • Application Setup
      • Data Models
      • Endpoints
        • Create Customer
        • Add Payment Method
        • List Available Plans
        • Create Subscription
        • Get Subscription
        • Cancel Subscription
        • Handle Webhooks
      • Running the Application
      • Testing the Subscription Flow
    • Webhook Handling Example
      • Setting Up Webhook Endpoints
        • Stripe Webhooks
        • PayPal Webhooks
        • Adyen Webhooks
  • Advanced Guides
    • Deployment Guide
      • Prerequisites
      • Build Artifacts
      • Runtime Configuration
      • Database Migrations
      • Application Startup
      • Kubernetes Tips
      • Rollback Strategy
  • API Reference
    • Configuration API
      • Configuration Schema
        • PaymentConfig
        • ProviderConfig
        • DatabaseConfig
        • RabbitMQConfig
        • PricingConfig
        • TaxConfig
      • Configuration Functions
        • load_config
        • load_config_from_file
        • load_config_from_env
        • merge_configs
    • Providers API
      • Provider Base Class
        • PaymentProvider
      • Stripe Provider
        • StripeProvider
      • PayPal Provider
      • Adyen Provider
      • Provider Factory
        • get_provider()
    • Pricing API
      • Pricing Strategy Base Class
        • PricingStrategy
      • Subscription Pricing
        • SubscriptionPricing
      • Usage-Based Pricing
        • UsageBasedPricing
      • Tiered Pricing
        • TieredPricing
      • Per-User Pricing
        • PerUserPricing
      • Freemium Pricing
        • FreemiumPricing
      • Dynamic Pricing
        • DynamicPricing
      • Hybrid Pricing
        • HybridPricing
    • Services API
      • Payment Service
        • PaymentService
      • Pricing Service
      • Dependency Injection
        • get_payment_service()
    • Utilities API
      • Exception Classes
        • PaymentError
        • ProviderError
        • ConfigurationError
        • ValidationError
        • ResourceNotFoundError
        • AuthenticationError
        • WebhookError
        • PaymentRequiresActionError
      • Helper Functions
        • generate_random_string()
        • generate_idempotency_key()
        • format_amount()
        • parse_amount()
        • sanitize_metadata()
        • calculate_subscription_period_end()
FastAPI Payments
  • Core Concepts
  • View page source

Core Concepts

This section covers the core concepts of the FastAPI Payments library.

  • Payment Providers
    • Provider Architecture
    • The Provider Interface
    • Supported Providers
    • Adding Custom Providers
  • Pricing Models
    • Overview
    • The Pricing Strategy Interface
    • Supported Pricing Models
    • Pricing Configuration
  • Database Architecture
    • Data Model
    • Repository Pattern
    • Database Configuration
    • Migrations
  • Event-Driven Architecture
    • Overview
    • Supported Message Brokers
    • Broker Configuration
    • Event Types
    • Publishing Events
    • Consuming Events
    • Using Default Handlers
    • Best Practices
Previous Next

© Copyright 2025, InnerKore.

Built with Sphinx using a theme provided by Read the Docs.