bisual / laravel-cashier-stripe-connect
Extension library for Laravel Cashier that adds Stripe Connect functionality
Requires
- php: ^8.1|^8.2
- illuminate/contracts: ^9.0|^10.0|^11.0
- spatie/laravel-package-tools: ^1.15
- stripe/stripe-php: ^13.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^6.1
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- spatie/laravel-ray: ^1.26
- dev-main
- v2.0.2
- v2.0.1
- v2.0.0
- v1.0.17
- v1.0.16
- v1.0.15
- v1.0.14
- v1.0.13
- v1.0.12
- v1.0.11
- v1.0.10
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-FEAT-ProtectFunctions
- dev-FEAT-ListTransactions
- dev-FEAT-Payouts
- dev-dependabot/github_actions/stefanzweifel/git-auto-commit-action-5
- dev-dependabot/github_actions/actions/checkout-4
This package is auto-updated.
Last update: 2024-11-07 10:01:41 UTC
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.