• I have a WordPress blog with the Coil Web Monetization plugin activated. I need to check, from inside a Javascript game that sits on a blog post, if the user is a Coil subscriber.

    Does the plugin offers a REST API that can be used to do this check?

    I’ve noticed that it sets a “monetization” field in the document, but can you please describe its structure and how to achieve this?

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Not sure if this is exactly what you are looking for but I use this to check if visitors to my page are Coil Subscribers, this is a blanket check and I don’t think you can check who the user is, just if they are a Coil Subscriber or not.

    I show various Coil subscription checks on my Coil showcase page here: https://xrp4u.com/what-is-xrp/xrp-ecosystem/coil/

    I am am just a massive Coil fan.

    <div style=”display:none;”>

    <script src=”https://cdn.coil.com/if-monetized.js”></script>

    <!– you can put whatever code you want after the script tag –>

    <p>XRP4U have detected your Coil subscription! you are amazing! How did I know?

    We have not enabled Ads on our site because we do not want to spoil your viewing experience!</p>

    </div>

Viewing 1 replies (of 1 total)
  • The topic ‘How To Check For Subscribed User From Javascript?’ is closed to new replies.