Skip to content

A simple PHP/JS terminal for making credit card charges with the stripe.com API

Notifications You must be signed in to change notification settings

bateller/stripe-terminal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stripe-terminal: A simple credit card terminal for Stripe.com

stripe-terminal is a single form that allows anyone with a Stripe.com account to submit credit card charges from any web browser.

This Repository is based on @wlrs' original Stripe-Terminal repository at https://github.com/wlrs/stripe-terminal

This is an update to work with Stripe's latest API located at: https://github.com/stripe/stripe-php

New Version

A new version has been created. This is a fully revamped update to work with Stripe's latest API located at: https://github.com/stripe/stripe-php as well as Stripe.js (version 3.0)

You can find it here: https://github.com/bateller/stripe-terminal-new

The new version also no longer requires JQuery

Because the new version is so different, I am keeping this repo separate.

Features

  • Simple javascript validation of data
  • Stripe.js token generation (credit card data doesn't touch your server)
  • Mobile browser friendly

Requirements

  • Stripe account
  • PHP web environment serving pages via https

Stripe accounts are free but require a US-based checking account to actually create charges. Test charges can be made from a page served over http.

Installation

Just clone this repo into a clean directory. stripe-php is included as a submodule so using the --recursive flag will get you everything:

git clone --recursive git://github.com/bateller/stripe-terminal.git .

Then just set $key_publishable and $key_secret in index.php and you're good to go.

Stripe.com provides "test" and "live" API keys, you should start with your test keys and refer to the Stripe Testing FAQ.

Demo

https://wbat.net/stripe-terminal-demo/

The demo is running in test mode, but please don't submit real credit card information.

About

A simple PHP/JS terminal for making credit card charges with the stripe.com API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 34.8%
  • PHP 34.4%
  • CSS 30.8%