Skip to content

Commit eea675e

Browse files
committed
working on readme
1 parent 00ff688 commit eea675e

File tree

9 files changed

+26
-514
lines changed

9 files changed

+26
-514
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
Homestead.yaml
44
Homestead.json
55
.env
6+
.idea/

.idea/.name

-1
This file was deleted.

.idea/blade.xml

-4
This file was deleted.

.idea/misc.xml

-14
This file was deleted.

.idea/modules.xml

-8
This file was deleted.

.idea/stripe-demo.iml

-8
This file was deleted.

.idea/vcs.xml

-6
This file was deleted.

.idea/workspace.xml

-457
This file was deleted.

readme.md

+25-16
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,36 @@
1-
## Laravel PHP Framework
1+
## Laravel Stripe demo
22

3-
[![Build Status](https://travis-ci.org/laravel/framework.svg)](https://travis-ci.org/laravel/framework)
4-
[![Total Downloads](https://poser.pugx.org/laravel/framework/d/total.svg)](https://packagist.org/packages/laravel/framework)
5-
[![Latest Stable Version](https://poser.pugx.org/laravel/framework/v/stable.svg)](https://packagist.org/packages/laravel/framework)
6-
[![Latest Unstable Version](https://poser.pugx.org/laravel/framework/v/unstable.svg)](https://packagist.org/packages/laravel/framework)
7-
[![License](https://poser.pugx.org/laravel/framework/license.svg)](https://packagist.org/packages/laravel/framework)
3+
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](http://craftyx.fr/blog/2015/08/21/accepter-des-paiement-sur-votre-sites-en-moins-de-5-minutes-avec-laravel-et-stripe) (fr)
84

9-
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, queueing, and caching.
5+
### Installation
106

11-
Laravel is accessible, yet powerful, providing powerful tools needed for large, robust applications. A superb inversion of control container, expressive migration system, and tightly integrated unit testing support give you the tools you need to build any application with which you are tasked.
7+
Clone the repository :
128

13-
## Official Documentation
9+
`git clone [email protected]:JulienTant/demo-laravel-stripe.git`
1410

15-
Documentation for the framework can be found on the [Laravel website](http://laravel.com/docs).
11+
Go to to folder :
1612

17-
## Contributing
13+
`cd demo-laravel-stripe/`
1814

19-
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](http://laravel.com/docs/contributions).
15+
Install dependencies :
2016

21-
## Security Vulnerabilities
17+
`composer install`
2218

23-
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell at [email protected]. All security vulnerabilities will be promptly addressed.
19+
Copy the demo env file :
2420

25-
### License
21+
`cp .env.example .env`
2622

27-
The Laravel framework is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)
23+
Generate a random app key :
24+
25+
`php artisan key:generate`
26+
27+
Set the stripe keys with your own in the *.env* file (keys can be found at https://dashboard.stripe.com/account/apikeys) :
28+
29+
STRIPE_KEY=pk_test_xxxxx
30+
STRIPE_SECRET=sk_test_xxxxx
31+
32+
Serve the public folder, or use artisan's serve command for simplicity :
33+
34+
`php artisan serve`
35+
36+
Go to (http://localhost:8000/pay)[http://localhost:8000/pay]. Voilà !

0 commit comments

Comments
 (0)