@ledewire/browser
LedeWire SDK for browser environments. Enables buyer authentication, content checkout, wallet funding, and purchases — embeddable with a single <script> tag.
<script>
CDN usage (no build step required):
<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') // state.checkout_state.next_required_action: // 'authenticate' | 'fund_wallet' | 'purchase' | 'view_content'</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') // state.checkout_state.next_required_action: // 'authenticate' | 'fund_wallet' | 'purchase' | 'view_content'</script>
npm / bundler usage:
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' })
https://docs.ledewire.org for guides and examples
@ledewire/browser
LedeWire SDK for browser environments. Enables buyer authentication, content checkout, wallet funding, and purchases — embeddable with a single
<script>tag.CDN usage (no build step required):
npm / bundler usage:
See
https://docs.ledewire.org for guides and examples