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 overconfigure(). 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().