The main entry point for the OFCP App JS SDK. This class should only be instantiated after the user has consented to the terms, conditions, and privacy policy!
A function that returns the customer token as a string inside a promise
Advanced configuration for the SDK, rarely needed
Adds an event listener to the SDK
The event to listen for, see EventType
The listener to call when the event is triggered.
Rest
...args: any[]Creates a cart widget
The element to attach the widget to
The cart widget
Creates a product detail widget
The element to attach the widget to
The product detail widget
Gets the config
The config
Gets the widgets
The widgets
Removes an event listener from the SDK
The event to remove the listener from
The listener to remove
Rest
...args: any[]Sends a message to all widgets
The message to send
The main entry point for the OFCP App JS SDK