SA-MP Forums Archive
Premium IPN - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Premium IPN (/showthread.php?tid=665263)



Premium IPN - pwskyline34 - 28.03.2019

I want to implement to my server the premium purchase by paypal. Use INI. Could IPN be used to automatically assign the premium level?


Re: Premium IPN - RoboN1X - 28.03.2019

It does not matter what storage approach you use either it's INI, SQL, whatever database to assign the premium user...
However you cannot do this independently just by using sa-mp pawn natives, Paypal IPN API is made for web as the back-office

Connect your web script to access your user database, so the premium level is assigned by the web script, not the sa-mp server.. However, if you need a live update (i.e. when the player is online in game), you need to make some triggers to call in your sa-mp server, so you assign the premium level by pawn script, not by the web script.