0.0.3 • Published 3 years ago

svelte-store-webmonetization v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Svelte Store Web Monetization

A Svelte store for listening to changes to Web Monetization.

Usage

npm install -D svelte-store-webmonetization
  import webmon from 'svelte-store-webmonetization';
    {#if $webmon.monetized}
        <h1>Premium Content Unlocked</h1>
    {/if}

    Web Monetization: {JSON.stringify($webmon)}

Setup Web Monetization

This assumes that you have a payment pointer setup on your app.html:

	<meta name="monetization" content="$ilp.uphold.com/fWWxqr4H9rHa" />

For more information see Web Monetization.

Related

See Also

License

This plugin is released under the MIT License.