I need to create a Laravel5.6 feature to manage affiliates of my multi-users digital products marketplace (MULTI-SESSIONS and MULTI-PRODUCTS SCRIPT).
- Allow the user to request from the seller the approval to promote one or more of his products
- The seller see the referral request in his membership area, he can approve or reject any request
- When the request of the referral is approved by the seller, a link (unique for each product) will be generated
- The referral use those links to promote any approved product he wish to promote
- When a sale is made from the referral tracked links he win a percentage of the sale price, this
percentage is defined by the seller for each product that he publish on the platform
- When the referral credit balance earned from his generated sales reach a given amount, he can ask the admin to withdraw his money.
- The admin define in setting of the plate-form the minimum balance to request the withdraw
- The admin proceed to the withdraw manually (the feature is already implemented)
The script have to handle multiple concurrent sessions at the time(multiple referred visitors can visit the site and the script must track theme all in the same time.