This add-on allows you to manage all payments and track affiliated statistics for the sold courses, such as Total Profit, Total Payments, get statistics for a specific period, and etc. Also, you can proceed with payments for course authors manually or automatically.
Check the video tutorial:
You can enable the Statistics & Payouts addon in the STM LMS ▸ LMS Settings ▸ Addons section of the WordPress dashboard menu.
Course authors can track sales and earning statistics from the Account page (Statistics tab) and for receiving Payout earning users should enter the PayPal account email address.
By default, in the Addon it is used the PayPal payment method for payout and also payouts can be proceed manually from the Dashboard if you want to use another method.
Website administrators can see statistics of user's purchase histories, course authors' earnings and proceed payments for course authors Statistics are located under the STM LMS menu area in the dashboard.
You can change the author fee from the STM LMS ▸ General Settings area.
In this page, administrators can see order statistics and sort data with a different option.
The website owner can use the PayPal payment for automated payouts and it can be enabled from the STM LMS settings ▸ Payout tab and click to the Gear icon to configure PayPal settings
In the PayPal payout settings, you need to fill up the needed fields by creating a new Application from the PayPal developers page. You need to get Client ID and Secret key to add it to the PayPal settings.
Also, you need to add a webhook by adding the webhook URL like below:
On the PayPal Application page, you need to put the webhook URL and select All Events. After that, you will get a webhook ID and put this ID to the Webhook ID area under the LMS settings.
For sending payments to courses authors click on the “Pay Now” button and all payments will be sent for users.
You can check all history of payments for authors from the STM LMS ▸ Payouts page.
Payouts may have the “pending” status if there a problem with paying like you don’t have enough money in your PayPal Account.
In that case, you need to open the payout page and Proceed Payment now or change the status as paid if you want to pay in cash to authors.
In order to automate Payouts, you can use Cron Jobs on your server/site. First, you need to edit the wp-config.php file and paste the following line of code anywhere above the line that says "That’s all, stop editing! Happy blogging":
After that, you need to add a cron job from the cron tab in your hosting.
Example: Cron At 00:00 on day-of-month 1. 0 0 1 * * wget -O /dev/null https://yoursite.com/wp-cron.php?doing_wp_cron
Here are some manuals for adding cron jobs: cPanel - https://www.youtube.com/watch?v=YwpUjz1tMbA Vesta CP - https://www.plothost.com/kb/create-delete-cron-jobs-vesta/ Kinsta Hosting - https://kinsta.com/knowledgebase/how-to-write-a-cron-job/