PaperTiger.Adapters.StripityStripe (PaperTiger v1.0.2)

Copy Markdown View Source

Syncs Stripe data from strippity_stripe database tables.

Automatically detected when billing tables exist in the database. Queries billing_customers, billing_subscriptions, billing_products, billing_prices, and billing_plans from the local database and populates PaperTiger stores.

Does NOT call the real Stripe API - purely database queries.

Configuration

# Configure your Ecto repo
config :paper_tiger, repo: MyApp.Repo

# Configure user adapter (optional, defaults to auto-discovery)
config :paper_tiger, user_adapter: :auto  # or MyApp.CustomUserAdapter

User Adapter

The adapter needs to resolve user information (name, email) for customers. By default it uses PaperTiger.UserAdapters.AutoDiscover which attempts to discover common schema patterns. For custom schemas, implement PaperTiger.UserAdapter.