Skip to content

Demo app using Laravel and Stripe for a one shot payment

Notifications You must be signed in to change notification settings

hizone/demo-laravel-stripe

This branch is up to date with JulienTant/demo-laravel-stripe:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8bb5804 · Aug 19, 2015

History

4 Commits
Aug 19, 2015
Aug 19, 2015
Aug 19, 2015
Aug 19, 2015
Aug 19, 2015
Aug 19, 2015
Aug 19, 2015
Aug 19, 2015
Aug 19, 2015
Aug 19, 2015
Aug 19, 2015
Aug 19, 2015
Aug 19, 2015
Aug 19, 2015
Aug 19, 2015
Aug 19, 2015
Aug 19, 2015
Aug 19, 2015
Aug 19, 2015
Aug 19, 2015

Repository files navigation

Laravel Stripe demo

This is a demo project of using Stripe with Laravel for a one shot payment. See http://craftyx.fr/blog/2015/08/19/accepter-des-paiement-sur-votre-sites-en-moins-de-5-minutes-avec-laravel-et-stripe (fr)

Installation

Clone the repository :

git clone [email protected]:JulienTant/demo-laravel-stripe.git

Go to to folder :

cd demo-laravel-stripe/

Install dependencies :

composer install

Copy the demo env file :

cp .env.example .env

Generate a random app key :

php artisan key:generate

Set the stripe keys with your own in the .env file (see https://dashboard.stripe.com/account/apikeys) :

STRIPE_KEY=pk_test_xxxxx
STRIPE_SECRET=sk_test_xxxxx

Serve the public folder, or use artisan's serve command for simplicity :

php artisan serve

Go to http://localhost:8000/pay. Voilà !

About

Demo app using Laravel and Stripe for a one shot payment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 98.6%
  • Other 1.4%