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 SimonHampLaravelStripeConnectTraitsPayable;
class User extends Model
{
use Payable;
}
// After onboarding, send the user $100.00 USD
auth()->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.
The post Integrate Laravel with Stripe Connect Using This Package appeared first on Laravel News.
Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.
Source: Read MoreÂ