pull down to refresh

Updated the code and now this is all you need to include on your site if you want to protect it with a PlebPay paywall. Just replace the PlebPay paywall URL with your own PlebPay paywall URL.

<script src="https://www.plebpay.com/redirectIfNecessary.js" type="text/javascript"></script>
<script>
    redirectIfNecessary('https://www.plebpay.com/c5bc98ff-a386-45ba-9b99-c3b16da9cdaf')
</script>

Deployed a package to npm so disregard previous code snippet. This one is better.

    <script src="https://unpkg.com/plebpay-utils@1.0.7/dist/index.js" type="text/javascript"></script>
    <script>
        window.PlebPay.redirectIfNecessary('https://www.plebpay.com/c5bc98ff-a386-45ba-9b99-c3b16da9cdaf')
    </script>
reply

Forgot to drop the link to the package 😂

https://www.npmjs.com/package/plebpay-utils

reply

deleted by author

deleted by author

deleted by author