inaxo/laravelstripehandler
最新稳定版本:v1.0.0
Composer 安装命令:
composer require inaxo/laravelstripehandler
包简介
Laravel package that contains everything you need to implement a stripe payment gateway
README 文档
README
- Run command:
composer require inaxo/laravelstripehandler
- And:
composer require stripe/stripe-php
- Add the following line to the autoload section in the
composer.jsonfile:
"Inaxo\\LaravelStripeHandler\\": "vendor/inaxo/laravelstripehandler/src/",
- Run the command:
composer dump-autoload
- Add the following line to the providers key array in the config/app.php file:
Inaxo\LaravelStripeHandler\LaravelStripeHandlerServiceProvider::class,
- Run the command again:
composer dump-autoload
- Now, to publish a package config file you need to run the following command:
php artisan vendor:publish --provider="Inaxo\LaravelStripeHandler\LaravelStripeHandlerServiceProvider"
- After publishing the service provider, you need to add this line to the
middlewarearray in yourapp/Http/Kernel.php:
\Illuminate\Session\Middleware\StartSession:: class,
- 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!
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-01-01