bisual/laravel-cashier-stripe-connect

Extension library for Laravel Cashier that adds Stripe Connect functionality
4,179
Install
composer require bisual/laravel-cashier-stripe-connect
Latest Version:v2.0.2
PHP:^8.1|^8.2
Laravel:9 · 10 · 11
License:MIT
Last Updated:Oct 7, 2024
Links: GitHub  ·  Packagist
Maintainer: bisual

Extension library for Laravel Cashier that adds Stripe Connect functionality

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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.

Related Packages

bisual/laravel-shortcuts

Laravel Shortcuts for Software Agencies

14,650 2
bisual/bisualmail

Editor de mails y gestor de newsletter para backoffice

1,644 0
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

644,549,754 9,698
laravel/framework

The Laravel Framework.

598,760,099 34,966
laravel/tinker

Powerful REPL for the Laravel framework.

507,193,856 7,441

Version History

Version Released PHP Laravel License
v2.0.2 ^8.1|^8.2 ^9.0|^10.0|^11.0 MIT
v2.0.1 ^8.1|^8.2 ^9.0|^10.0|^11.0 MIT
v2.0.0 ^8.1|^8.2 ^9.0|^10.0|^11.0 MIT
v1.0.17 ^8.1 ^9.0 MIT
v1.0.16 ^8.1 ^9.0 MIT