Answer the question
In order to leave comments, you need to log in
How to make a paid monthly product subscription system?
Good day to all!
The idea is that there will be a library on the server that adds some functionality to the site for subscribed users. Almost all functionality is written in js. It is very important that users do not see the code other than what I provide them. I want to do like facebook does with inline comments, giving users a code to embed on the page (html block, and js with its id and active license) Here is an example of facebook
<div id="fb-root"></div>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/pl_PL/sdk.js#xfbml=1&version=v7.0&appId=&autoLogAppEvents=1"></script>
Answer the question
In order to leave comments, you need to log in
Request the code not as a js file, but by giving it through PHP after checking the user's permissions.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question