bisual/laravel-cashier-stripe-connect
最新稳定版本:v2.0.2
Composer 安装命令:
composer require bisual/laravel-cashier-stripe-connect
包简介
Extension library for Laravel Cashier that adds Stripe Connect functionality
README 文档
README
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
Installation
You can install the package via composer:
composer require bisual/laravel-cashier-stripe-connect
Usage
In order to add the Stripe Connectable functionality, you must add the StripeConnectable Trait to your model.
use Bisual\LaravelCashierStripeConnect\Traits\StripeConnectable; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { use StripeConnectable; }
After that, make sure that your model has an stripe_connect_id and stripe_status field on database. If you want to customize the key of the attributes, you must do the following:
use Bisual\LaravelCashierStripeConnect\Traits\StripeConnectable; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { use StripeConnectable; protected $stripe_connect_db_key = "stripe_connect_id"; protected $stripe_status_db_key = "stripe_status"; }
After that, you must implement the abstract functions.
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 1.54k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-07-19