Integrate Laravel with Stripe Connect Using This Package
Last updated on by Paul Redmond
Laravel Stripe Connect helps you start your own marketplace platform using Stripe Connect, which allows you to make payments to your recipients directly from your Stripe account to theirs. Using the provided package, you can quickly set up your application's users, connect them to your Stripe account, and start making payouts.
Using the Payable
trait in this package, you can onboard users and then start sending them payments:
use SimonHamp\LaravelStripeConnect\Traits\Payable; class User extends Model{ use Payable;} // After onboarding, send the user $100.00 USDauth()->user()->pay(10000, 'usd');
This package assumes that the User
model represents the recipient, but the documentation outlines how to change the model used if a different model represents your recipients.
You can learn more about this package, get full installation instructions, and view the source code on GitHub. You must have a Stripe Connect account to get started, and you can learn more about Stripe Connect through the documentation.