PHP Classes

Laravel Stripe Integration Tutorial: Process Stripe payments in a Laravel application

Recommend this page to a friend!
  Info   View files Example   View files View files (73)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2023-12-18 (19 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 19 This week: 1All time: 11,130 This week: 108Up
Version License PHP version Categories
tutorial-stripe-paym 1.0The PHP License5PHP 5, E-Commerce, Web services, Fina...
Description 

Author

This package can process Stripe payments in a Laravel application.

It provides a Laravel controller class that can process several steps of integration of payments from people using the Stripe payments service.

Currently the payments controller class can:

- Show a payment request page

- Create a payment request, store the payment details, and charge the customer

- Show a payment thank you page

Innovation Award
PHP Programming Innovation award nominee
December 2023
Nominee
Vote
Stripe is a well-known payment system many sites worldwide use to accept and process payments for products and services sold on those sites.

Many sites written in PHP are developed using the Laravel framework.

This package provides a controller class based on the Laravel framework to process payments using Stripe.

PHP developers can use the payment controller class provided by this package to add support to accept payments for products or services on sites they developed using the Laravel framework.

Manuel Lemos
Picture of Channaveer Hakari
  Performance   Level  
Innovation award
Innovation award
Nominee: 2x

 

Example

<?php

use Illuminate\Support\Facades\Route;

Route::get('/payments', 'PaymentsController@create');
Route::post('/payments', 'PaymentsController@store');
Route::get('/thankyou', 'PaymentsController@thankyou');


Details

About This Project

Stripe Integration With Laravel 7.X

Installation Steps

  • Clone the project
  • Add the STRIPE keys in .env file of your project
  • Stripe package installation

    If you have cloned this project then just run the following command

    composer install
    

    If you are directly integrating in your project then use the following command

    composer require stripe/stripe-php
  • Now add the stripe keys in .env file with same key name and your own stripe values

    STRIPE_PUBLISH_KEY=pk_test...
    STRIPE_SECRET_KEY=sk_test...
    

Read More On

I have written whole article on this - <a href="https://stackcoder.in/posts/stripe-payment-integration-with-laravel">Stripe Integration With Laravel</a>


  Files folder image Files  
File Role Description
Files folder imageapp (2 files, 4 directories)
Files folder imagebootstrap (1 file)
Files folder imageconfig (14 files)
Files folder imagedatabase (3 directories)
Files folder imagepublic (4 files)
Files folder imageresources (4 directories)
Files folder imageroutes (4 files)
Files folder imagetests (2 files, 2 directories)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file .env.example Data Auxiliary data
Accessible without login Plain text file .styleci.yml 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.json Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file server.php Aux. Auxiliary script
Accessible without login Plain text file webpack.mix.js Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:19
This week:1
All time:11,130
This week:108Up