initializeWithAPIKey

fun initializeWithAPIKey(context: Context, secretKey: String, publishableKey: String, googlePayMerchantId: String? = null, debug: Boolean = false)

Initializes the Frame SDK. Call once from Application.onCreate before using any SDK component.

Parameters

context

The application context.

secretKey

Your Frame secret key (sk_...). Keep this key server-side where possible.

publishableKey

Your Frame publishable key (pk_...). Safe to embed in the app.

googlePayMerchantId

Optional Google Pay merchant identifier. Required to show the Google Pay button in checkout.

debug

When true, API requests and responses are logged to logcat.