If you found yourself in this scenario, then here is a guide how to configure PAP using Automatic approval of commissions plugin.
First, go to your merchant panel > Plugins > activate Automatic approval of commissions plugin
If cron error occurs, then you have to configure your cron job so it will automatically start PAP4 tasks using jobs.php script.
To do it use instructions here - Merchant panel > Tools > Integration > Cron job integration.
Now, head to your campaigns manager and select desired campaign - automatic approval of commissions can be set per campaign.
Go to commissions settings tab and select desired commission type - automatic approval of commissions can be set per commission type.
First, you need to change the Commission type settings approval to Manual approval. This is essential for our purpose.
Scroll down to additional options. There you can choose if the plugin should automatically 'approve' or 'decline' the 'pending' commissions after the desired number of days has passed by. The default behavior is to approve such commissions.
Don't forget to save the settings before you continue.