Laravel eCommerce Multi-tenant Stripe Connect
Laravel eCommerce Multi-tenant Stripe Connect will split the payment among the seller and admin. The payment process will be done through the Stripe payment gateway.
Stripe payment accepts internet payments in many parts of the world. It will settle your payments across your stripe enabled countries
Features of Laravel eCommerce Multi-tanent Stripe Connect
- Admin can select that the stripe fee is to be paid by the customer and the seller.
- Super admin can set client id for the admin.
- Customers can select stripe payment for the purchase of products.
- Allow buyers to pay using all cards that the Stripe supports.
- Super admin can set the publishable key and also the secret key.
- At the time of checkout, payment will split between the seller(s) and the admin.
- SAAS module owner has to enter their stripe account details in the .env file of Laravel
- Single click seller account access revocation from Stripe owner.
How to install Laravel eCommerce Multi-tanent Stripe Connect?
Customers will get a zip folder after purchasing the extension and Unzip the respective extension zip and then merge “packages” folders into the project root directory.
Goto config/app.php file and add the following line under ‘providers’
Goto composer.json file and add the following line under ‘psr-4’.
Find the file concord.php inside the config folder and do the entry
Run the command below to install the Stripe PHP library.
composer require stripe/stripe-php:6.0
composer require guzzlehttp/guzzle:~6.0
Find file .env in your project’s root and add these lines below:
Super admin can set the commission in the .env file under STRIPE_ADMIN_COMMISSION
After saving the .env file run the commands below to finish the installation
php artisan migrate<br>
php artisan vendor:publish
How to generate the Keys to connect Stripe?
The first step is to create an account in the Stripe website
Step1:- Click on Home>>Get your API keys, under which the user can find the Publishable keys and Secret keys.
Step2:- Now the client key is also required, User can get the client key click on Settings>>Connect. After clicking on connect a page will generate where user can see the client id.
These Keys need to be mentioned in the .env file under the required section.
Step3:- Once you click on the connect setting you will get the test client id and here you have to add URL, click on the Add URL. You have to add URL like this site1.saas.com/admin/stripe/connect/retrieve/token.
Seller End Workflow
After performing all the above steps properly Seller needs to navigate through the admin panel of his SaaS-based eCommerce website.
Click on Configure>>Strpe Connect, A Configuration page will generate that contains two fields.
- Stripe fee to be paid by customer or seller:- Here seller can select that the Stripe fee will be paid by the customer or seller from the dropdown menu.
- Statement Descriptor:- This will be visible under the payment details in the Stripe dashboard.
On the left side of the screen click on Stripe, a new page will generate that will look like shown below. Click on the “connect Stripe” button.
After clicking on the connect stripe button a page will generate that carries an Account form that required to be filled to activate the account or click on the skip this account form if you are using the application in test mode.
Now a popup message will generate that will show the message regarding the integration of Stripe account with the platform like shown below:-
On clicking on the “Revoke Your Stripe Account Access button” seller can disconnect stripe with the eCommerce website.
The admin and the sellers can log in to the Stripe accounts using their respective login credentials and view the details of their payment (commission) which displays under the Payments option.
In order to view the complete details, the admin needs to click on the amount.
Similarly, the sellers can also view their payment by simply logging in to their Stripe Accounts using their respective login credentials.
This is all about Laravel eCommerce Multi-tenant Stripe Connect for any issue raise a ticket on https://bagisto.uvdesk.com/en/