IntegrateIntegration ModesHeadless CheckoutSDK ReferenceFunctionscreateHeadlessCheckoutOn this pagecreateHeadlessCheckoutfunction createHeadlessCheckout<T, H>( sessionParams, hooks?, apiPaths?): Promise<PurseHeadlessCheckout>; Creates and initializes a new headless checkout instance. Use this function to start a new payment session with the Purse checkout system. Type Parameters Type ParameterT extends | string | PurseHeadlessCheckoutV1ParamsH extends PurseHeadlessCheckoutHooks Parameters ParameterTypeDescriptionsessionParamsTThe checkout session configuration.hooks?HOptional lifecycle hooks to customize checkout behavior See PurseHeadlessCheckoutHooks for available hooksapiPaths?APIPaths- Returns Promise<PurseHeadlessCheckout> A promise that resolves to a configured checkout instance