Giter Site home page Giter Site logo

pointshop-donation's Introduction

PointShop-Donation

A simple donation processing system for Garry's Mod servers with PointShop. Users are automatically credited in PointShop Points when a payment is made, according to the POINTS_PER_DOLLAR value set by the server owner. Athough the points can be spent, all donations are logged permanently and implementing donator ranks on top of this system is easy (see the example in psdonation.lua). This software uses Stripe to process payements, which allows for a customizable checkout experience.

When users make payments, a running donation_total is kept on their account. Users who make numerous small payments will be credited identically to users who make one large payment of the same value. Also, if POINTS_PER_DOLLAR is increased, any user who donates again will be retroactively credited as if they donated their entire total_donation with the current POINTS_PER_DOLLAR setting.

##Super easy for users Sign in

Sign in through Steam and see your own profile. No mucking about with Steam IDs!


Choose amount

Choose from 2 suggested amounts or enter your own amount to donate.


Stripe

Pay with Stripe, on the same webpage. No going off and needing to sign in on a third party site like PayPal. Be remembered when you come back - see your total cumulative donation.


Note that accepting donations does come with some risk. Malicious/fradulent users can create chargebacks which incurr fines against you. This typically happens with less than %1 of payments, but nonetheless I am not responsible for any loss or damage which may come from using this software. I also recommend frequently backing up your MySQL database to protect against data loss.


##How to Install Are you ready to make money off your Garry's Mod server?

  • You need a web server with PHP and MySQL. I recommend XAMPP.

  • Your web server must be HTTPS secured, to protect users' payment data.

  • Put the contents of the 'php' folder into a directory named 'donate' in your web server's htdocs root.

  • Fill out config.php. You need to sign up for Stripe to get your API keys and start accepting payments!

  • Visit yoursite.com/donate once to create the data tables.

  • On your Garry's Mod server, you need to install the tmysql4 dll file to your garrysmod/lua/bin directory, and libmysql to your base directory (alongside srcds.exe). For libmysql, download the 32 bit ZIP file, even if you are using a 64 bit OS.

  • Place psdonation.lua in your pointshop addon's lua/pointshop/providers folder, configure psdonation.lua, and open pointshop's sh_config.lua to change the provider to "psdonation"

pointshop-donation's People

Contributors

cannon avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

enterstudio

pointshop-donation's Issues

Cannot start session when headers already sent

Hi,

I try to install this system on mij webhosting (cpanel) but every time I login with steam I get this error.
Cannot start session when headers already sent
Already replaced the steam API.

Can you help me?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.