inaxo/laravelstripehandler

Laravel package that contains everything you need to implement a stripe payment gateway

v1.0.0 2024-01-01 16:44 UTC

This package is auto-updated.

Last update: 2025-06-05 17:34:55 UTC


README

  1. Run command:
composer require inaxo/laravelstripehandler
  1. And:
composer require stripe/stripe-php
  1. Add the following line to the autoload section in the composer.json file:
"Inaxo\\LaravelStripeHandler\\": "vendor/inaxo/laravelstripehandler/src/",
  1. Run the command:
composer dump-autoload
  1. Add the following line to the providers key array in the config/app.php file:
Inaxo\LaravelStripeHandler\LaravelStripeHandlerServiceProvider::class,
  1. Run the command again:
composer dump-autoload
  1. Now, to publish a package config file you need to run the following command:
php artisan vendor:publish --provider="Inaxo\LaravelStripeHandler\LaravelStripeHandlerServiceProvider"
  1. After publishing the service provider, you need to add this line to the middleware array in your app/Http/Kernel.php:
\Illuminate\Session\Middleware\StartSession:: class,
  1. If you've completed all the previous steps, you need to enter data in resources/LaravelStripeHandler/products.* (XML by default). After that, you should add additional keys in your .env file:
STRIPE_PUBLIC_KEY=
STRIPE_SECRET_KEY=
STRIPE_HOME_ROUTE=
STRIPE_CURRENCY=

Enjoy!