Skip to main content

Overview

As soon as your app launches, configure the SDK with your API Key. Retrieve your publishable Live key yourself from the Dashboard under Settings → Project API Keys (use the Test key for staging and local development).
Wrap your app with EncoreProvider to automatically configure the SDK and register callbacks:
EncoreProvider calls configure() and registerCallbacks() automatically on mount.

Option B: Manual Configuration

If you need more control, configure manually:
You must call registerCallbacks() after configure() to enable purchase and passthrough event handling.

Configuration Options

Use logLevel: 'debug' during development, then remove it for production builds.
Can’t find your API key? Open your project’s Settings → Project API Keys in the Encore Dashboard and copy the Live key (or Test for non-production builds).

Next Steps

Now that Encore is configured, you’re ready to: