PHP Classes

Laravel Stripe Checkout: E-commerce checkout that uses Stripe to pay orders

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 37 All time: 10,956 This week: 47Up
Version License PHP version Categories
laravel-stripe-check 1.0.0MIT/X Consortium ...5PHP 5, E-Commerce, Libraries, Web ser...
Description 

Author

This package implements an e-commerce checkout that uses Stripe to pay orders.

It implements an e-commerce system that can track product orders and implements the checkout using Stripe payment gateway API to let users pay their orders.

Currently, it can display the products:

- List products for sale

- Manage the product shopping cart

- Present the checkout pages to take the customer payment details

- Manage customer user profiles

- Manage customer orders

- Manage customer payments

- Handle the payment processing with Stripe

Innovation Award
PHP Programming Innovation award nominee
February 2023
Number 6
Many PHP sites now have an e-commerce section where customers can buy products and services from the company that owns the site.

Stripe is one of the most popular payment gateways used in many e-commerce sites to let customers pay for their orders.

This package extensively implements an e-commerce system in PHP that uses Stripe as a payment gateway.

Manuel Lemos
Picture of Maniruzzaman Akash
  Performance   Level  
Name: Maniruzzaman Akash <contact>
Classes: 19 packages by
Country: Bangladesh Bangladesh
Age: 28
All time rank: 320244 in Bangladesh Bangladesh
Week rank: 195 Up3 in Bangladesh Bangladesh Up
Innovation award
Innovation award
Nominee: 7x

Documentation

Laravel Stripe Checkout

A beautiful Checkout example using Laravel supporting both Cash-in and Stripe Checkout with Best Coding practices.

Features

  1. [x] Authentication - Login, Register, Forget Password
  2. [x] Product List Seeder
  3. [x] Add to cart, Edit, Delete cart - Localstorage
  4. [x] Cart list
  5. [x] Checkout Cash-in
  6. [x] Checkout Stripe
  7. [ ] Webhook Integration
  8. [ ] 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

Product list page.

Cart list page

Cart list page.

Checkout page

Checkout page.

Stripe checkout page

Stripe checkout page.

Login page

Login page.

Stripe Payment Dashboard

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.


  Files folder image Files (150)  
File Role Description
Files folder imageapp (9 directories)
Files folder imagebootstrap (1 file)
Files folder imageconfig (15 files)
Files folder imagedatabase (3 directories)
Files folder imagelang (1 directory)
Files folder imagepublic (3 files, 3 directories)
Files folder imageresources (3 directories)
Files folder imageroutes (5 files)
Files folder imagetests (3 files, 2 directories)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file .env.example Data Auxiliary data
Plain text file artisan Class Class source
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file package-lock.json Data Auxiliary data
Accessible without login Plain text file package.json Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file postcss.config.js Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file tailwind.config.js Data Auxiliary data
Accessible without login Plain text file vite.config.js Data Auxiliary data

  Files folder image Files (150)  /  app  
File Role Description
Files folder imageAbstracts (1 file)
Files folder imageConsole (1 file)
Files folder imageExceptions (2 files)
Files folder imageHttp (1 file, 3 directories)
Files folder imageInterfaces (1 file)
Files folder imageModels (4 files)
Files folder imageProviders (5 files)
Files folder imageRepositories (2 files)
Files folder imageView (1 directory)

  Files folder image Files (150)  /  app  /  Abstracts  
File Role Description
  Plain text file PaymentRepository.php Class Class source

  Files folder image Files (150)  /  app  /  Console  
File Role Description
  Plain text file Kernel.php Class Class source

  Files folder image Files (150)  /  app  /  Exceptions  
File Role Description
  Plain text file Handler.php Class Class source
  Plain text file InvalidProductJson.php Class Class source

  Files folder image Files (150)  /  app  /  Http  
File Role Description
Files folder imageControllers (8 files, 1 directory)
Files folder imageMiddleware (9 files)
Files folder imageRequests (1 file, 1 directory)
  Plain text file Kernel.php Class Class source

  Files folder image Files (150)  /  app  /  Http  /  Controllers  
File Role Description
Files folder imageAuth (9 files)
  Plain text file CartController.php Class Class source
  Plain text file CheckoutController.php Class Class source
  Plain text file Controller.php Class Class source
  Plain text file OrderController.php Class Class source
  Plain text file PaymentController.php Class Class source
  Plain text file ProductController.php Class Class source
  Plain text file ProfileController.php Class Class source
  Plain text file StripeController.php Class Class source

  Files folder image Files (150)  /  app  /  Http  /  Controllers  /  Auth  
File Role Description
  Plain text file AuthenticatedSessionController.php Class Class source
  Plain text file ConfirmablePasswordController.php Class Class source
  Plain text file EmailVerificationN...ationController.php Class Class source
  Plain text file EmailVerificationPromptController.php Class Class source
  Plain text file NewPasswordController.php Class Class source
  Plain text file PasswordController.php Class Class source
  Plain text file PasswordResetLinkController.php Class Class source
  Plain text file RegisteredUserController.php Class Class source
  Plain text file VerifyEmailController.php Class Class source

  Files folder image Files (150)  /  app  /  Http  /  Middleware  
File Role Description
  Plain text file Authenticate.php Class Class source
  Plain text file EncryptCookies.php Class Class source
  Plain text file PreventRequestsDuringMaintenance.php Class Class source
  Plain text file RedirectIfAuthenticated.php Class Class source
  Plain text file TrimStrings.php Class Class source
  Plain text file TrustHosts.php Class Class source
  Plain text file TrustProxies.php Class Class source
  Plain text file ValidateSignature.php Class Class source
  Plain text file VerifyCsrfToken.php Class Class source

  Files folder image Files (150)  /  app  /  Http  /  Requests  
File Role Description
Files folder imageAuth (1 file)
  Plain text file ProfileUpdateRequest.php Class Class source

  Files folder image Files (150)  /  app  /  Http  /  Requests  /  Auth  
File Role Description
  Plain text file LoginRequest.php Class Class source

  Files folder image Files (150)  /  app  /  Interfaces  
File Role Description
  Plain text file PaymentInterface.php Class Class source

  Files folder image Files (150)  /  app  /  Models  
File Role Description
  Plain text file Order.php Class Class source
  Plain text file OrderItem.php Class Class source
  Plain text file Product.php Class Class source
  Plain text file User.php Class Class source

  Files folder image Files (150)  /  app  /  Providers  
File Role Description
  Plain text file AppServiceProvider.php Class Class source
  Plain text file AuthServiceProvider.php Class Class source
  Plain text file BroadcastServiceProvider.php Class Class source
  Plain text file EventServiceProvider.php Class Class source
  Plain text file RouteServiceProvider.php Class Class source

  Files folder image Files (150)  /  app  /  Repositories  
File Role Description
  Plain text file OrderRepository.php Class Class source
  Plain text file StripePaymentRepository.php Class Class source

  Files folder image Files (150)  /  app  /  View  
File Role Description
Files folder imageComponents (2 files)

  Files folder image Files (150)  /  app  /  View  /  Components  
File Role Description
  Plain text file AppLayout.php Class Class source
  Plain text file GuestLayout.php Class Class source

  Files folder image Files (150)  /  bootstrap  
File Role Description
  Plain text file app.php Class Class source

  Files folder image Files (150)  /  config  
File Role Description
  Plain text file app.php Class Class source
  Plain text file auth.php Class Class source
  Accessible without login Plain text file broadcasting.php Aux. Auxiliary script
  Accessible without login Plain text file cache.php Aux. Auxiliary script
  Accessible without login Plain text file cors.php Aux. Auxiliary script
  Accessible without login Plain text file database.php Aux. Auxiliary script
  Accessible without login Plain text file filesystems.php Aux. Auxiliary script
  Accessible without login Plain text file hashing.php Aux. Auxiliary script
  Plain text file logging.php Class Class source
  Accessible without login Plain text file mail.php Aux. Auxiliary script
  Accessible without login Plain text file queue.php Aux. Auxiliary script
  Plain text file sanctum.php Class Class source
  Accessible without login Plain text file services.php Aux. Auxiliary script
  Accessible without login Plain text file session.php Aux. Auxiliary script
  Accessible without login Plain text file view.php Aux. Auxiliary script

  Files folder image Files (150)  /  database  
File Role Description
Files folder imagefactories (2 files)
Files folder imagemigrations (7 files)
Files folder imageseeders (1 file)

  Files folder image Files (150)  /  database  /  factories  
File Role Description
  Plain text file ProductFactory.php Class Class source
  Plain text file UserFactory.php Class Class source

  Files folder image Files (150)  /  database  /  migrations  
File Role Description
  Plain text file 2014_10_12_000000_create_users_table.php Class Class source
  Plain text file 2014_10_12_100000_...rd_resets_table.php Class Class source
  Plain text file 2019_08_19_000000_...iled_jobs_table.php Class Class source
  Plain text file 2019_12_14_000001_...ss_tokens_table.php Class Class source
  Plain text file 2023_01_22_031306_..._products_table.php Class Class source
  Plain text file 2023_01_22_031437_...te_orders_table.php Class Class source
  Plain text file 2023_01_29_160522_...der_items_table.php Class Class source

  Files folder image Files (150)  /  database  /  seeders  
File Role Description
  Plain text file DatabaseSeeder.php Class Class source

  Files folder image Files (150)  /  lang  
File Role Description
Files folder imageen (4 files)

  Files folder image Files (150)  /  lang  /  en  
File Role Description
  Accessible without login Plain text file auth.php Aux. Auxiliary script
  Accessible without login Plain text file pagination.php Aux. Auxiliary script
  Accessible without login Plain text file passwords.php Aux. Auxiliary script
  Accessible without login Plain text file validation.php Aux. Auxiliary script

  Files folder image Files (150)  /  public  
File Role Description
Files folder imagecss (1 file)
Files folder imageimages (1 directory)
Files folder imagejs (2 files)
  Accessible without login Plain text file .htaccess Data Auxiliary data
  Plain text file index.php Class Class source
  Accessible without login Plain text file robots.txt Doc. Documentation

  Files folder image Files (150)  /  public  /  css  
File Role Description
  Accessible without login Plain text file checkout.css Data Auxiliary data

  Files folder image Files (150)  /  public  /  images  
File Role Description
Files folder imagedefault (2 files)

  Files folder image Files (150)  /  public  /  images  /  default  
File Role Description
  Accessible without login Image file cash-in.png Data Auxiliary data
  Accessible without login Image file stripe-payments.png Data Auxiliary data

  Files folder image Files (150)  /  public  /  js  
File Role Description
  Accessible without login Plain text file cart.js Data Auxiliary data
  Accessible without login Plain text file checkout.js Data Auxiliary data

  Files folder image Files (150)  /  resources  
File Role Description
Files folder imagecss (1 file)
Files folder imagejs (2 files)
Files folder imageviews (2 files, 7 directories)

  Files folder image Files (150)  /  resources  /  css  
File Role Description
  Accessible without login Plain text file app.css Data Auxiliary data

  Files folder image Files (150)  /  resources  /  js  
File Role Description
  Accessible without login Plain text file app.js Data Auxiliary data
  Accessible without login Plain text file bootstrap.js Data Auxiliary data

  Files folder image Files (150)  /  resources  /  views  
File Role Description
Files folder imageauth (6 files)
Files folder imagecarts (1 file)
Files folder imagecheckout (3 files)
Files folder imagecomponents (13 files)
Files folder imagelayouts (3 files)
Files folder imageproducts (1 file)
Files folder imageprofile (1 file, 1 directory)
  Accessible without login Plain text file dashboard.blade.php Aux. Auxiliary script
  Accessible without login Plain text file welcome.blade.php Aux. Auxiliary script

  Files folder image Files (150)  /  resources  /  views  /  auth  
File Role Description
  Accessible without login Plain text file confirm-password.blade.php Aux. Auxiliary script
  Accessible without login Plain text file forgot-password.blade.php Aux. Auxiliary script
  Accessible without login Plain text file login.blade.php Aux. Auxiliary script
  Accessible without login Plain text file register.blade.php Aux. Auxiliary script
  Accessible without login Plain text file reset-password.blade.php Aux. Auxiliary script
  Accessible without login Plain text file verify-email.blade.php Aux. Auxiliary script

  Files folder image Files (150)  /  resources  /  views  /  carts  
File Role Description
  Accessible without login Plain text file index.blade.php Aux. Auxiliary script

  Files folder image Files (150)  /  resources  /  views  /  checkout  
File Role Description
  Accessible without login Plain text file cancel.blade.php Aux. Auxiliary script
  Accessible without login Plain text file index.blade.php Aux. Auxiliary script
  Accessible without login Plain text file success.blade.php Aux. Auxiliary script

  Files folder image Files (150)  /  resources  /  views  /  components  
File Role Description
  Accessible without login Plain text file application-logo.blade.php Aux. Auxiliary script
  Accessible without login Plain text file auth-session-status.blade.php Aux. Auxiliary script
  Accessible without login Plain text file danger-button.blade.php Aux. Auxiliary script
  Accessible without login Plain text file dropdown-link.blade.php Aux. Auxiliary script
  Accessible without login Plain text file dropdown.blade.php Aux. Auxiliary script
  Accessible without login Plain text file input-error.blade.php Aux. Auxiliary script
  Accessible without login Plain text file input-label.blade.php Aux. Auxiliary script
  Accessible without login Plain text file modal.blade.php Aux. Auxiliary script
  Accessible without login Plain text file nav-link.blade.php Aux. Auxiliary script
  Accessible without login Plain text file primary-button.blade.php Aux. Auxiliary script
  Accessible without login Plain text file responsive-nav-link.blade.php Aux. Auxiliary script
  Accessible without login Plain text file secondary-button.blade.php Aux. Auxiliary script
  Accessible without login Plain text file text-input.blade.php Aux. Auxiliary script

  Files folder image Files (150)  /  resources  /  views  /  layouts  
File Role Description
  Accessible without login Plain text file app.blade.php Aux. Auxiliary script
  Accessible without login Plain text file guest.blade.php Aux. Auxiliary script
  Accessible without login Plain text file navigation.blade.php Aux. Auxiliary script

  Files folder image Files (150)  /  resources  /  views  /  products  
File Role Description
  Accessible without login Plain text file index.blade.php Aux. Auxiliary script

  Files folder image Files (150)  /  resources  /  views  /  profile  
File Role Description
Files folder imagepartials (3 files)
  Accessible without login Plain text file edit.blade.php Aux. Auxiliary script

  Files folder image Files (150)  /  resources  /  views  /  profile  /  partials  
File Role Description
  Accessible without login Plain text file delete-user-form.blade.php Aux. Auxiliary script
  Accessible without login Plain text file update-password-form.blade.php Aux. Auxiliary script
  Accessible without login Plain text file update-profile-inf...tion-form.blade.php Aux. Auxiliary script

  Files folder image Files (150)  /  routes  
File Role Description
  Accessible without login Plain text file api.php Example Example script
  Plain text file auth.php Class Class source
  Accessible without login Plain text file channels.php Example Example script
  Accessible without login Plain text file console.php Example Example script
  Plain text file web.php Class Class source

  Files folder image Files (150)  /  tests  
File Role Description
Files folder imageFeature (2 files, 1 directory)
Files folder imageUnit (1 file)
  Plain text file CreatesApplication.php Class Class source
  Plain text file Pest.php Class Class source
  Plain text file TestCase.php Class Class source

  Files folder image Files (150)  /  tests  /  Feature  
File Role Description
Files folder imageAuth (6 files)
  Accessible without login Plain text file ExampleTest.php Example Example script
  Accessible without login Plain text file ProfileTest.php Example Example script

  Files folder image Files (150)  /  tests  /  Feature  /  Auth  
File Role Description
  Accessible without login Plain text file AuthenticationTest.php Example Example script
  Plain text file EmailVerificationTest.php Class Class source
  Accessible without login Plain text file PasswordConfirmationTest.php Example Example script
  Plain text file PasswordResetTest.php Class Class source
  Accessible without login Plain text file PasswordUpdateTest.php Example Example script
  Accessible without login Plain text file RegistrationTest.php Example Example script

  Files folder image Files (150)  /  tests  /  Unit  
File Role Description
  Accessible without login Plain text file ExampleTest.php Example Example script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:37
This week:0
All time:10,956
This week:47Up