wontonee / stripe
来自 wontonee 的 Laravel Bagisto Stripe 支付网关
2.0.3
2024-08-10 06:25 UTC
Requires
- stripe/stripe-php: ^14.3
README
Stripe 是一款流行的支付网关。此包为用户提供强大的支持,以便将 Stripe 支付网关集成到他们的 Bagisto Laravel 电子商务应用中。
支持 Bagisto v2.2。对于 Bagisto 2.1,您可以将包降级到 2.0.1
安装
- 使用命令提示符安装此包
composer require wontonee/stripe
- 打开
config/app.php
并注册 Stripe 提供者。
'providers' => [ // Stripe provider Wontonee\Stripe\Providers\StripeServiceProvider::class, ]
-
导航到
admin panel -> Configure/Payment Methods
,在支付方式列表的末尾可以看到 Stripe。 -
现在打开
app\Http\Middleware\VerifyCsrfToken.php
并将此路由添加到异常列表中。
protected $except = [ '/stripe-success', '/stripe-cancel' ];
- 现在运行
php artisan config:cache
故障排除
- 如果您在下单后没有重定向到支付网关并收到路由错误,请导航到
bootstrap/cache
并删除所有缓存文件。
如有任何帮助或定制需求,请访问 https://www.wontonee.com 或发送电子邮件至 dev@wontonee.com