Documentation

Migration: v1 → v2

v2 moves products, pricing, providers, and paywall styling out of code and into the dashboard. Your app shrinks to a single initialize call.

What changed

Before (v1)

PayCraft.configure {
    apiKey = "pk_live_…"
    product("pro_monthly") { price = 4.99; interval = MONTH }
    provider(StripeProvider(...))
    paywall { theme = ... }
}

After (v2)

// One line — everything else is configured in the dashboard.
PayCraft.initialize(apiKey = "pk_live_…")

Migration steps

  1. Create your app in the dashboard and re-create your products, prices, and providers there.
  2. Copy your API key from Settings → API Keys.
  3. Replace the PayCraft.configure { … } block with PayCraft.initialize(apiKey = …).
  4. Move any custom paywall styling into the dashboard's paywall designer.
  5. Bump the dependency to the latest cmp-paycraft and rebuild.

Need the full reference? docs.paycraft.mobilebytesensei.com.