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.
You can enable the Statistics & Payouts addon in the STM LMS ▸ LMS Settings ▸ Addons section of the WordPress dashboard menu.
Statistics for the Course authors
Course authors can track sales and earning statistics from the Account page (Statistics tab) and for receiving Payout earning user should enter the PayPal account email address.
By default, in the Addon used the PayPal payment method for payout and also payouts can be proceed manually from the Dashboard if you want to use another method.
Statistics and Payouts for website administrators
Website administrators can see statistics of users' 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.
Statistics and Payouts for the website owner
On the PayPal Application page, you need to put the web hook 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 the 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.
Adding a Cron Job for Payouts
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.
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/