This is a boilerplate repo showing how to use Stripe Express Connect with Laravel.
Express accounts are a type of Stripe connect account and is generally used for two sided marketplaces where there is a seller selling services or a product and a buyer of those services/product. Examples include:
- Etsy
- Ebay
- Uber
- Lyft
Express essentially allows your platform to onboard and manage the flow of funds for your sellers.
In this boilerplate, we have two types of users. Sellers, who sell their product on the platform and customers, who purchase the products from the sellers. Sellers must create an Express account to ensure they can received payments, while customers must add a payment method to purchase a product.
When a customer purchases a product from a seller, the charge will be collected by your platform. A separate transfer with your fees extracted will then be sent to the connected account. Reference the image below to see the flow of funds during a purchase:
git clone https://github.com/Solomon04/laravel-stripe-connect
cd laravel-stripe-connect
composer install
cp .env.example .env
Then update your env file with your database & Stripe credentials.
php artisan key:generate
php artisan storage:link
php artisan migrate --seed
php artisan serve
Open a PR or contact me directly at [email protected]