Docs / integrations

Integrations

Raterunner syncs your billing configuration to payment providers, creating and managing products, prices, and promotions.

Payment Providers

ProviderStatusFeatures
StripeSupportedProducts, Prices, Coupons, Promotion Codes
PaddlePlanned-
ChargebeePlanned-
Note: Currently only Stripe is supported. Contact raterunner@akorchak.software for other provider needs.

How Syncing Works

  1. Read — Raterunner reads your billing.yaml configuration
  2. Diff — Compares with the current state in your payment provider
  3. Plan — Generates a list of changes to apply
  4. Apply — Creates, updates, or archives resources
bash
# Preview changes (dry run)raterunner apply --env sandbox --dry-run raterunner/billing.yaml# Apply changesraterunner apply --env sandbox raterunner/billing.yaml

Provider ID Files

After syncing, Raterunner creates provider ID files that map your configuration to provider-specific IDs:

yaml
# stripe_sandbox.yaml (auto-generated)provider: stripeenvironment: sandboxsynced_at: "2026-01-28T10:30:00Z"plans:  pro:    product_id: prod_ABC123    prices:      monthly: price_XYZ789      yearly: price_UVW012

These files are: - Auto-generated — don't edit manually - Environment-specific — separate files for sandbox/production - Committed to Git — for tracking and debugging

Environment Management

Sync to different environments using separate API keys:

bash
# Sandbox (test mode)export STRIPE_SANDBOX_KEY=sk_test_...raterunner apply --env sandbox raterunner/billing.yaml# Production (live mode)export STRIPE_PRODUCTION_KEY=sk_live_...raterunner apply --env production raterunner/billing.yaml

Authentication

Each provider requires API credentials:

ProviderEnvironment VariableDescription
StripeSTRIPE_SANDBOX_KEYTest API key (sk_test_...)
StripeSTRIPE_PRODUCTION_KEYLive API key (sk_live_...)

Store these securely and never commit them to version control.

What Gets Synced

RaterunnerStripe
PlanProduct
Monthly/Yearly PricePrice (recurring)
Per-unit PricePrice (per_unit)
Tiered PricePrice (tiered)
AddonProduct + Price
PromotionCoupon + Promotion Code

Next Steps