Giter VIP home page Giter VIP logo

stripe-donation's Introduction

screenshot

PHP Donations Form

A donations form to run on your own site. It works great on mobile handsets as well because it is powered by the Bootstrap responsive framework. Requires an active Stripe account for use.

Who Should Use It

This project is ideal for non-profits and political campaigns that need on-site donations. Note that it any page that processes financial data should be served over SSL (https://).

Quick Start

  1. From the root directory of the downloaded or cloned repository, run composer install to get the necessary library. If you are not familiar with Composer, start here.
  2. Copy config/app-config.php-dist to app-config.php and complete with your Stripe API keys
  3. Update the Google Analytics code in index.php to properly track for your site (or remove it entirely)
  4. Replace assets/img/logo.png with something more meaningful
  5. Test everything! (no money is processed in test mode)
  6. Switch your Stripe API keys to the production set
  7. Switch your Stripe account to Live mode
  8. Test everything! (small dollar amounts, as these are actually processed)

Customizing

You can override the default styles in assets/css/donations-form.css. You can do most changes to the layout of the objects without needing to update the JavaScript as long as the form field IDs do not change.

How It Works

The form on the landing page interacts with the Stripe JavaScript API to obtain a token for the provided credit card. The token is then used on the backend (along with additional form fields) to create a payment in Stripe.

Questions or issues?

Simply file an issue on our GitHub project.

stripe-donation's People

Contributors

stephenyeargin avatar dependabot-preview[bot] avatar

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.