1.0.21 • Published 3 years ago

plebpay-utils v1.0.21

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

plebpay-utils (beta)

NPM

Utility package to help protect your site with a PlebPay paywall. Example usage https://github.com/SamSamskies/protected-by-plebpay-example.

If you've never heard of PlebPay, go check it out https://www.plebpay.com/ 😀

Installation

npm

$ npm install plebpay-utils

or

yarn

$ yarn add plebpay-utils

Usage

Script Tag (no installation required)

<script src="https://unpkg.com/plebpay-utils@1.0.21/dist/index.js" type="text/javascript"></script>
<script>
  // replace with your own PlebPay paywall URL
  const plebPayPaywallUrl = 'https://www.plebpay.com/c5bc98ff-a386-45ba-9b99-c3b16da9cdaf'
      
  window.PlebPay.redirectIfNecessary(plebPayPaywallUrl)
</script>

Module

import { redirectIfNecessary } from 'plebpay-utils'

// replace with your own PlebPay paywall URL
const plebPayPaywallUrl = 'https://www.plebpay.com/c5bc98ff-a386-45ba-9b99-c3b16da9cdaf'

redirectIfNecessary(plebPayPaywallUrl)
1.0.21

3 years ago

1.0.20

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago