Reading list Switch to dark mode

    Laravel eCommerce SaaS Subscription

    Updated 5 June 2023

    Laravel eCommerce SaaS Subscription extension allows the super admin to create custom plans for the tenants. Moreover, the super admin can create multiple types of plans that can be created according to products, categories, attributes, and attribute family.

    Also, the tenant can purchase a subscription plan to use the eCommerce SaaS platform.

    Check a brief overview of the plugin –

    VADf8J0qwPc

    Important Note:- This module is an add-on of Webkul’s Laravel eCommerce Multi-Company SaaS Module, so for using this module you need to install the Webkul’s Laravel eCommerce Multi-Company SaaS Module

    Complete Features List of Laravel Ecommerce SaaS Subscription

    • Super admin can create multiple custom plans.
    • This extension support the trial plan.
    • Super admin can allow a trial of the plan for the tenant.
    • The super admin can set the period of the plan.
    • Super admin can set custom plan for trial.
    • The tenant can purchase plans according to their need.
    • The module supports PayPal recurring profile to activate the plan
    • Super admin can assign a manual plan to the tenants.
    • The Super admin can cancel recurring profiles/plan.
    • The super admin can add the offer in fixed or percentage type for the plan.

    Module Installation

    Unzip the respective extension zip and then merge “packages” and “storage” folders into the project root directory.

    Start your headless eCommerce
    now.
    Find out More
    Bagisto-Laravel-eCommerce-SaaS Subscription-installation

    Goto config/app.php file and add following line under ‘providers’

    Webkul\SAASSubscription\Providers\SAASSubscriptionServiceProvider::class

    Then Goto composer.json file and add following line under ‘psr-4’

    "Webkul\SAASSubscription\": "packages/Webkul/SAASSubscription"

    Goto config/concord.php file and add following line under ‘modules’

    Webkul\SAASSubscription\Providers\ModuleServiceProvider::class

    Run these commands below to complete the setup

    composer dump-autoload
    
    php artisan migrate
    
    php artisan route:cache
    
    php artisan vendor:publish

    -> Press 0 and then press enter to publish all assets and configurations.

    Note**

    Setup:

    Save Instant payment notifications URL in PayPal

    That’s it, now just execute the project on your specified domain.

    Follow the below steps to enable IPN settings in your PayPal account

    1. Go to the Paypal Website
    2. Signin into your PayPal account.
    3. Click on the “Proifle” icon in the right hand corner and then on “Profile & Settings“.
    4. At the left hand side you will see “Setting Tool” click on that.
    5. Once you are there you will find “Getting Paid & Managing my risk”
    6. Under you will find the “Instant Payment Notification” then click on the “Update”
    7. To unable IPN Click “Choose IPN Settings
    8. Under the next page enter your “Notification URL” also choose “Recive IPN Message”
    9. Lastly Click on the “Save” button
    bagisto-laravel-ecommerce-multi-company-saas-subscription-IPN-settings-2

    Also you can check this video tutorial to enable the IPN settings into your Paypal account
    https://youtu.be/eSgQgAjSVys

    Note: 

    IPN Url to be set: https://[bagisto-url]/recurring/paypal/notify

    The IPN message is always sent to your notification URL unless you have disabled the preference to receive IPN messages.

    Module Configuration: Laravel Ecommerce SaaS Subscription

    Once you have successfully installed the module, now let’s go to the module configuration settings by navigating to Configure>>Subscription

    General Settings

    saas.com_super_configuration_subscription_payment

    Allow Trial

    From the drop-down the super admin can allow the trail of the Subscription Plan to the Tenants by selecting “Yes” else they can choose “No

    Trial Days

    Here the super admin can mention the number of trial days of the Subscription Plan

    Trial Plan

    Now the super admin can choose the trails plan from the drop-down.

    PayPal Settings

    Here, the super admin will configure the settings for the payment method as shown below in the snapshot.

    Configuration-1

    The super admin will get all the above details such as Paypal user name, password, and signature under their PayPal merchant account.

    bagisto-laravel-ecommerce-multi-company-saas-Subscription-super-admin-login-to-paypal-devloper-account-

    Once you login to your PayPal merchant account go to the account section under the SANDBOX section.

    After that you will find your sandbox accounts as shows in the below snapshot.

    bagisto-laravel-saas-sunscription-module-super-admin-managing-paypal-merchant-account

    Here you can check your accounts details,once you click on the view and edit account. After that you will find the API Credentials.

    bagisto-laravel-ecommerce-multi-company-saas-Subscription-super-admin-getting-paypal-credentials-

    Sandbox Mode

    Select Yes to enable the testing mode else select No to make use of the Live mode.

    Merchant PayPal Id

    Enter your Merchant PayPal Id within the space provided.

    User Name

    Enter your PayPal User Name.

    Password

    Enter your PayPal password.

    Signature

    Enter your PayPal Signature

    Super Admin – eCommerce Subscription Extension

    Once you have done with the configuration settings, now let’s move to the Subscription section

    As you can see in the below image the super admin will find further 3 more subsections as Plans, Purchase Plan & Invoice.

    Under the Plans section you will find all the Subscription Plans which you have created.

    saas.com_super_subscription_plans

    Now once the super admin will tab on Add Plan button after that they will redirect to the next page as below

    saas.com_super_subscription_plans_create-1-2

    Here the super admin will add the fields

    General Settings

    Code

    Set the code for the plan

    Name

    Enter the name of plan

    Description

    Here super admin can describe about the plan

    Billing Amount

    saas.com_super_subscription_plans_create-2-1

    Monthly Amount: Mention the monthly amount.

    Monthly Amount for Year: Enter the monthly amount for the year.

    Plan Limitation

    While adding the new plan the super admin will add the plan limitation under the below section

    saas.com_super_subscription_plans_create-5

    Allowed Product: Enter the number of product allowed in a specific plan.

    Allowed Categories: Enter the number of categories allowed.

    Allowed Attributes: Mention the allowed attribute’s number.

    Allowed Attributes Family: Enter the number of attributes family.

    Allowed Channels: Number of channels tenant can manage: Enter Here.

    Allowed Orders: Mention the number of orders for a plan.

    Offers

    While adding the new plan the super admin can add the offers available for the plan under the below section.

    saas.com_super_subscription_plans_create-3-1

    Status: The super admin can active or inactive the offer option.

    Title: Enter the title name for the offer.

    Type: Select the type of offer to the fixed or in percentage.

    Discount: Enter the discount price or percentage according to the selected type for the offer.

    However, the super admin can also assign the Subscription plan to any tenant by navigating to superstore>>tenants>>action>>eye icon

    saas.com_super_companies_tenants

    Here in the below snapshot, super admin will find the Assign Plan button, the super admin will click on the assign plan button

    bagisto-laravel-ecommerce-saas-subcritpion-super-admin-assign-plan-to-tenat-2

    As per the below snapshot, the super admin can select the plan and period unit for the tenant, after that the super admin will click on the assign button to successfully assign the plan.

    bagisto-laravel-ecommerce-saas-subcritpion-super-admin-assign-monthly-plan-to-tenant

    Not only super admin can assign the plan but also super admin can cancel the existing plan of the tenant as you can see in the below snapshot by clicking on the Cancel Plan button by navigating to superstore>>tenants>>action>>eye icon>>Cancel Plan

    webkul-bagisto-laravel-ecommerce-saas-subcritpion-super-admin-cancel-existing-plan

    Purchased Plan

    Next we move to the another subsection Purchased Plan here the super admin will find list of all purchase plans.

    Also, the super admin will find some information like Plan, Company Name, Amount, and all you can see in the below snapshot.

    saas.com_super_subscription_purchased-plans

    Apart from this, the super admin can also check the detail information about the purchased plan by just hitting eye icon under the action section:

    saas.com_super_subscription_purchased-plans_view_9

    Invoices

    Under this subsection the super admin will find all the Invoices of their sold plans.

    Also, they will find information like customer email, customer name, total and other. They can also lookout the detailed information by hitting the eye icon under action.

    saas.com_super_subscription_invoices

    Tenant Front End

    After the tenant register with the SaaS, they will find the below pop-up at their dashboard for upgrading the plan.

    webkul-bagisto-laravel-ecommerce-saas-subscription-tenant-choose-plan

    Moreover, once the tenant will click on the Choose Plan button they will find the super admin subscriptions plan Overview Tab as displayed in the below snapshot.

    site1.saas_.com_admin_subscription_overview-1

    After an overview of all the information about the subscription plan, the tenants can click on the Plans tab to check all the plans added by the super admin with available offers.

    site1.saas_.com_admin_subscription_plans

    Now tenants can choose the plan as per their need then they will click on the purchase button to buy the plan.

    site1.saas_.com_admin_subscription_checkout-1

    Payment Information

    Plan : Choose the plan

    Billing Cycle : Select the billing cycle from drop-down

    TIN : Enter the TIN number (tax payer identification number)

    site1.saas_.com_admin_subscription_checkout-2

    First Name: Enter the first name

    Last Name: Enter the last name

    Email: Mention the email id

    Address: Enter the address

    Country: Select the county

    State: Select the state

    After filling in all the billing address detail the tenant will click on the purchase button to make the payment.

    Now the tenant will be redirected to the PayPal Payment Gateway Page, here the tenant will sign in with their credentials then they will complete the payment

    webkul-bagisto-laravel-ecommerce-saas-subscription-tenant-completing-payment

    Furthermore, the tenants can view the invoices list of their purchased plans as shown in the below image.

    site1.saas_.com_admin_subscription_invoices

    That’s all for Laravel eCommerce SaaS Subscription Module Still, have any query regarding subscription management plugin please feel free to add a ticket at https://bagisto.uvdesk.com/en/

    Current Product Version - 1.4.5

    Supported Framework Version - Bagisto v1.4.5

    Blog Version - Bagisto v1.4.5
    • Version Bagisto v1.4.5
    • Version Bagisto v1.2.0
    • Version Bagisto v1.1.1
    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    2 comments

  • mansour
    • Prachi Chauhan (Moderator)
  • Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home

    Table of Content