|
1 |
| -## Laravel PHP Framework |
| 1 | +## Laravel Stripe demo |
2 | 2 |
|
3 |
| -[](https://travis-ci.org/laravel/framework) |
4 |
| -[](https://packagist.org/packages/laravel/framework) |
5 |
| -[](https://packagist.org/packages/laravel/framework) |
6 |
| -[](https://packagist.org/packages/laravel/framework) |
7 |
| -[](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) |
8 | 4 |
|
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 |
10 | 6 |
|
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 : |
12 | 8 |
|
13 |
| -## Official Documentation |
| 9 | +`git clone [email protected]:JulienTant/demo-laravel-stripe.git` |
14 | 10 |
|
15 |
| -Documentation for the framework can be found on the [Laravel website](http://laravel.com/docs). |
| 11 | +Go to to folder : |
16 | 12 |
|
17 |
| -## Contributing |
| 13 | +`cd demo-laravel-stripe/` |
18 | 14 |
|
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 : |
20 | 16 |
|
21 |
| -## Security Vulnerabilities |
| 17 | +`composer install` |
22 | 18 |
|
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 : |
24 | 20 |
|
25 |
| -### License |
| 21 | +`cp .env.example .env` |
26 | 22 |
|
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