Initialises a LedeWire browser client. This is the primary entry point for the browser SDK.
<script src="https://cdn.jsdelivr.net/npm/@ledewire/browser@1/dist/ledewire.min.js"></script><script> const lw = Ledewire.init({ apiKey: 'your_api_key' }) const state = await lw.checkout.state('content-id')</script> Copy
<script src="https://cdn.jsdelivr.net/npm/@ledewire/browser@1/dist/ledewire.min.js"></script><script> const lw = Ledewire.init({ apiKey: 'your_api_key' }) const state = await lw.checkout.state('content-id')</script>
import { init } from '@ledewire/browser'const lw = init({ apiKey: 'your_api_key' }) Copy
import { init } from '@ledewire/browser'const lw = init({ apiKey: 'your_api_key' })
Initialises a LedeWire browser client. This is the primary entry point for the browser SDK.