Hi, I would like to use PHP to check if a user is a current paying member or get the ID of their membership package so i can verify if they are currently paying, is it possible to do this with just PHP? I want to supply a username via PHP and then get the output returned as a variable if possible How can i acheive this?
Hello, You can use Lite Api to do it for currently logged in user: https://www.amember.com/docs/API/API__Lite/ Best Regards.
Hi Caesar, I require to be able to check on my server without the user being logged in and without using the application, i am building custom script to check if user has subscription.
I need something like this: <?php username="testuser' include("../amamber/library/Am/Lite.php"); Am_Lite::getInstance()->haveSubscriptions($testuser); ?> Then yes or no is returned
I am afraid there is not ready to use solution. You can contact us in helpdesk and we will help: https://www.amember.com/support Best Regards.