JourneyView, call only actions exposed by the current view, and hand admitted customers to your trusted checkout flow without exposing grants in URLs, logs, or third-party analytics.
Install
Initialize Once
Create the SDK in the browser area that owns the customer experience.sdk.destroy() only when that application area unmounts permanently.
Render From The Public View
The view is the stable UI contract. It includes the public state and the actions that are valid for that state.unsubscribe().
Framework Adapter Pattern
For Vue, Svelte, or vanilla state stores, keep the SDK wrapper small and pass the current view into your application renderer.Admission Handoff
When the view reaches an admitted sequence, send the admission grant to your own backend or trusted checkout boundary.What To Test
- Every public state your experience can render.
- The presence or absence of buttons based on the current view.
- Gated flows with generic customer-safe copy.
- Admission handoff through your app boundary.
- Cleanup when a route or embedded surface unmounts.