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
PayCraft.configure { … }was removed. Products, prices, payment links, and paywall styling now live in the dashboard and are fetched at runtime.- The paywall re-renders automatically when you change config in the dashboard (realtime).
- Test/live mode is derived from the API key prefix (
pk_test_/pk_live_).
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
- Create your app in the dashboard and re-create your products, prices, and providers there.
- Copy your API key from Settings → API Keys.
- Replace the
PayCraft.configure { … }block withPayCraft.initialize(apiKey = …). - Move any custom paywall styling into the dashboard's paywall designer.
- Bump the dependency to the latest
cmp-paycraftand rebuild.
Need the full reference? docs.paycraft.mobilebytesensei.com.