DownloadLaravel Stripe Checkout
A beautiful Checkout example using Laravel supporting both Cash-in and Stripe Checkout with Best Coding practices.
Features
-
[x] Authentication - Login, Register, Forget Password
-
[x] Product List Seeder
-
[x] Add to cart, Edit, Delete cart - Localstorage
-
[x] Cart list
-
[x] Checkout Cash-in
-
[x] Checkout Stripe
-
[ ] Webhook Integration
-
[ ] Pest unit test
Setup
Clone this repo -
git clone https://github.com/ManiruzzamanAkash/laravel-stripe-checkout.git
Create .env file
Create .env file by copying .env.example
Change Database in .env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel_stripe_checkout
DB_USERNAME=root
DB_PASSWORD=
Add Stripe public and secret key in .env
To get this visit - https://dashboard.stripe.com/test/apikeys
STRIPE_PUBLIC_KEY=
STRIPE_SECRET_KEY=
Install composer and npm dependencies
cd laravel-stripe-checkout
composer install
npm i
npm run dev
Run migration and seeder
php artisan migrate --seed
Serve application
php artisan serve
and booom, visit http://localhost:8000
Demo
Product list page
.
Cart list page
.
Checkout page
.
Stripe checkout page
.
Login page
.
Stripe Payment Dashboard
.
Contribution
I'm Maniruzzaman Akash, Maintainer of this repo.
Yes, it's open and you can contribute too. If any question regarding this, email me at - manirujjamanakash@gmail.com.
|