svelte-store-webmonetization

0.0.3 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i svelte-store-webmonetization

      Weekly Downloads

      1

      Version

      0.0.3

      License

      MIT

      Unpacked Size

      4.85 kB

      Total Files

      6

      Last publish

      Collaborators

      • mankins