Installing Discord Webhooks Plus¶
Upload the files¶
The extension must end up in this folder of your Paymenter installation. The folder name must be exactly DiscordActionWebhooks, because that is the name of the extension's main class.
extensions/Others/DiscordActionWebhooks/
You can get it there in two ways.
Upload the ZIP in the admin area
- In the admin area, open Extensions, then Available Extensions.
- Switch to the Ready to Install / Upload tab.
- Click Upload Extension, choose the ZIP file and confirm.
Copy the folder by hand
- Unpack the ZIP and copy the
DiscordActionWebhooksfolder toextensions/Others/DiscordActionWebhooks/. -
If the extension does not show up in the next step, run these commands in the Paymenter root directory:
composer dump-autoload php artisan optimize:clear
Install and enable¶
- Open Extensions, then Available Extensions, tab Ready to Install / Upload.
- Find DiscordActionWebhooks in the list and click Install. Paymenter opens the extension's settings page.
- Switch on Enabled and save.
Note
Paymenter lists the extension under its class name, DiscordActionWebhooks, both in the install list and in the list of installed extensions. The name "Discord Webhooks Plus" does not appear there.
The extension creates no database tables and runs no migrations. While it is enabled, it listens to the ten supported Paymenter events. While it is disabled, it sends nothing.
First-time setup¶
Nothing is sent until an action has a webhook URL to send to.
- In Discord, create a webhook for the channel that should receive the messages and copy its URL.
- Open the extension's settings page in Paymenter.
- Either paste the URL into Default webhook URL (optional fallback) to use it for every action, or paste it into the Webhook URL field of the actions you want, for example [Invoice Paid] Webhook URL.
- For every action you want, set its Enabled field to Yes. For every action you do not want, set it to No.
- Save.
Warning
If you set a default webhook URL, set Enabled to No for every action you do not want. An action whose Enabled field was never saved or is empty counts as enabled as soon as a webhook URL applies to it, and the default URL applies to all actions.
All settings are described in Configuration.
Updating¶
Upload the new ZIP with Upload Extension as described above, or replace the extensions/Others/DiscordActionWebhooks folder by hand. The extension has no upgrade step and no migrations. Your settings are stored by Paymenter and are kept.
Uninstalling¶
- Open the extension's settings page in the admin area.
- Click Uninstall Extension and confirm.
- Delete the
extensions/Others/DiscordActionWebhooksfolder if you do not want the extension to be offered for installation again.
The extension has no tables or files of its own to clean up. Webhooks you created in Discord stay there until you delete them in Discord.