Skip to main content
Sets global SDK configuration options: your organization ID, API base URL, and region. Call it once during initialization so you don’t pass these values to every call. createCheckout(), createClientSession(), and the Billing.stripe methods use this configuration. Billing.initMethod(), getAvailablePaymentMethods(), and Billing.silentPurchase() don’t, so pass orgId in their options.

Parameters

string
required
Your organization’s ID.
string
default:"https://billing.funnelfox.com"
Custom API base URL if you are pointing to a non-default backend.
string
default:"default"
Deployment region to use (if applicable).

Returns

This function does not return a value. The configuration is stored globally and applied to all subsequent SDK operations that use it.

Override per call

Values you pass to a method take priority over configure(). Pass orgId and apiConfig: { baseUrl, region } to createCheckout(), createClientSession(), or a Billing.stripe method to override the global values for that call.
In TypeScript, the createCheckout() options type requires orgId, so pass it there even after you call configure().

Example