Skip to content

Installing To-do List

Before you start

Have a Discord webhook URL ready. Discord Webhook URL is a required field on the extension's settings page, and the Enabled switch is on the same page, so you cannot enable the extension without it. You create a webhook in Discord in the settings of the channel that should receive the reminders, under the channel's integrations.

Upload the files

  1. Unpack the download.
  2. Copy the TodoList folder into extensions/Others/ of your Paymenter installation, so that the main class is at:

    /var/www/paymenter/extensions/Others/TodoList/TodoList.php
    

    The folder name must be exactly TodoList.

Enable the extension

  1. In the admin area, open Extensions and click Install Extension. This opens Available Extensions on the Ready to Install / Upload tab.
  2. Find TodoList in the list, click Install and confirm.
  3. Paymenter opens the extension's settings page. Paste your webhook URL into Discord Webhook URL.
  4. Switch on Enabled and save.

When you save with Enabled switched on, the extension runs its migration and creates one table, ext_todolist_todos. You do not need to run a migration by hand. If the table is missing later, the extension creates it again on the next request while it is enabled.

After a reload, the admin navigation shows a TodoList group with the entry Todos.

First-time setup

  1. Open TodoList > Todos and create a to-do with a Reminder Date a minute or two in the future.
  2. Wait until that time has passed and load any Paymenter page. The reminder appears in your Discord channel. See how reminders are triggered.
  3. If other staff roles should work with to-dos, give them the permissions listed in Configuration. Roles that have all permissions need no change.

Updating

  1. Replace the extensions/Others/TodoList folder with the new version.
  2. Clear Paymenter's caches:

    cd /var/www/paymenter
    php artisan optimize:clear
    

Your to-dos are stored in the database and are not touched when you replace the folder.

Warning

The extension only runs its migrations when you switch Enabled on, or when the ext_todolist_todos table does not exist. It has no update routine. If a new version ships additional migrations, switch Enabled off, save, switch it on and save again, or run:

php artisan migrate --path=extensions/Others/TodoList/database/migrations --force

Uninstalling

  1. In the admin area, open Extensions, edit TodoList and click Uninstall Extension. To only switch it off, turn off Enabled and save instead. While the extension is disabled, the Todos page is gone and no reminders are sent.
  2. Delete the folder extensions/Others/TodoList.

Warning

Uninstalling does not drop the ext_todolist_todos table, although Paymenter's confirmation dialog says that all data is removed. Your to-dos stay in the database.

To remove the data as well, drop the table and its migration record:

DROP TABLE ext_todolist_todos;
DELETE FROM migrations WHERE migration = '2024_01_01_000000_create_ext_todolist_todos_table';