- After cloning this repository, go to the root folder, run the following command/s,
composer install composer update
- Rename .env.example to .env
- Run
php artisan key:generate
- Replace dummy stripe secret key with you original stripe test Secret key here
\Stripe\Stripe::setApiKey ( 'sk_test_yourSecretkey' );
in web.php file - Replace dummy stripe publishable key with you original stripe test publishable key at form's data attribute
data-stripe-publishable-key="pk_test_yourPublishableKey"
in welcome.blade.php file
You can see the demo of the project here
http://justlaravel.com/integrate-stripe-payment-gateway-laravel/