Skip to main content
TS
Create an instance of PrimerHeadlessCheckout, which is used to interact with the Primer API in a headless environment.
Starting from the version 2.45.0, the options parameter should be used instead of the deprecated configure method. If both are used simultaneously, the SDK will throw an error.Note: the configure method must be called before the start method.
  • The start method must be called to begin the checkout process.

Parameters

Returns

Example

See guide on initializing Headless Checkout for more details.
TS