![]() |
|
[PHP] [Release] Points System PaymentWall for EVERY website! - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Web Development (https://hackforums.net/forumdisplay.php?fid=183) +---- Thread: [PHP] [Release] Points System PaymentWall for EVERY website! (/showthread.php?tid=3522619) |
[Release] Points System PaymentWall for EVERY website! - hellomen - Jun 2, 2013 Hi there I am releasing here a paymentwall source which works on EVERY website or forum if your hosting allows php mysql / pdo connections. first go to paymentwall make an account make a new app follow it's instructions! then when you are on the pingback just wait we have to make the php file first be aware edit the database information AND edit the database row where your selecting from edit Your Secret Key Here with the secret key of your application in paymentwall (findabled in Application settings) php: PHP Code now upload this to a spot where you want it too on your website set the pingback to the php url you cannot typ the url because it's not going over paymentwall. THIS IS WITH A PURPOSE SO PEOPLE CANNOT JUST HIT THE URL! now test the pingback url it will probably fail check the response if it says something like: HTTP/1.0 200 OK Server: hosting Date: Fri, 31 May 2013 17:31:57 GMT Content-type: text/html Content-length: 5 X-powered-by: PHP/5.4.14 Connection: close OK if it does then your good because it contains the OK now send an inquiry to paymentwall they will probably response: Quote:It look's like there's a BOM symbol in your script. this is not the php file this is a side on paymentwall itselves now for the url where people will START buying it (the so called: Application URL [in the application setting]) is the url where the iframe is i would suggest you to make it like this for mybb: Install the plugin pagemanager active pagemanager make a new page with your own name on how you want to name it :) then say use mybb theme NO then use the code: BE AWARE TO EDIT ?key=appkey TO ?key= YOUR APPLICATION KEY HERE! if you don't edit it to your own appkey then it won't work! edit the mybb->user['row name'] to the row named into the database example: if your row name of the coins/points is Coins then rename mybb->user['row name'] TO: mybb->user['Coins'] this is stated as $b!!!! the getcoins php file must be the same then with FROM `mybb_users` but thats understand able I guess PHP Code Credits: Paymentwall for their api me for the database and mybb page manager page code! if you use it it will be appreciated to give me credits! it's maybe hard to understand with my bad english language skills but i have tried to make it understandable for all of you! if you need help importing this system feel free to request my help! do I use it? YES site: http://www.xetoia.com/forum Point System: http://www.xetoia.com/forum/misc.php?page=xicoins * - hellomen - Jun 4, 2013 No one thinks a single thing of this? * - VPN - Jun 6, 2013 You have done good job. Thanks for sharing this with us. Just in case; is that secure ? * - Arkantos - Jun 7, 2013 Thanks a lot for your help! You really helped me with my website! * - hellomen - Jun 7, 2013 (Jun 6, 2013 03:34 AM)Vendox Wrote: You have done good job. Thanks for sharing this with us. Just in case; is that secure ? it is secure because the only possibility to connect to the getpoints.php to receive points is through the paymentwall system if they verify that the payment was a succes then it connects once with the user userid to the getpoints.php also the user cannot simply bypass to getpoints.php because 1: it checks for the registered paymentwall IP's if the ip isn't from the api then it will throw an IP error 2: you must have the correct url which is in case very long 3: you must have the register key which the paymentwall frame automaticly registers when the paymentwall is correct I hope this answered your question(s). (Jun 7, 2013 09:45 AM)Arkantos Wrote: Thanks a lot for your help! You really helped me with my website! You're welcome my friend I really enjoy if I help people out correctly ;) * - Alex™ - Jun 8, 2013 Thanks a lot, i might actually use this.. Do you need to submit any personal info to payment wall to verify it? * - hellomen - Jun 8, 2013 (Jun 8, 2013 03:58 AM)Alex™ Wrote: Thanks a lot, i might actually use this.. you just register like paypal but on paymentwall and then you create your application you do need some personal info for the register of your account but they don't do anything with it... https://i.imgur.com/4pfSIWU.jpg - register https://i.imgur.com/QaCseJQ.jpg - application register and then everything goes automaticly with filling out :) * - Theboy128 - Nov 25, 2013 I know its an old thread but i dont geht the OK. Paymentwall told me too its not working but idk why :-( * - Digitalx - Aug 14, 2015 well its not working the paymentwall script becuase of an error ( missing parameters! ) * - CyberTechnologyInc - Aug 14, 2015 Nice grave digging you've done there. * - hellomen - Aug 14, 2015 Just to inform you, paymentwall changed their API over time, the missing parameters is there because there are 2 or 3 versions already for the paymentwall api, I believe this was version 1, I have to recheck that. However I would highly recommend to ignore this topic and let it die in piece again as the new API is way easier to be used and which is much nicer. You don't have to do all this by yourself anymore, there is are classes for it now, so all you have to do in the new API system is calling a few methods which can be downloaded by the paymentwall developer knowledge base (link to github is in there) |