Requirements#
- Paymenter 1.x.
- A Discord application, made in the Discord Developer Portal.
- A Discord server where you can add a bot, for roles and DMs.
1. Upload the extension#
From the admin panel
- Go to Extensions → Available Extensions and click Upload Extension.
- Choose the zip you downloaded and upload it.
- Open the Ready to Install tab and click Install next to DiscordLink.
Over SFTP
-
Extract the zip.
-
Upload the
DiscordLinkfolder to the extensions folder of Paymenter:/var/www/paymenter/extensions/Others/DiscordLink -
Give the web server user ownership of the files:
chown -R www-data:www-data /var/www/paymenter/extensions/Others/DiscordLink -
Go to Extensions → Available Extensions, open the Ready to Install tab and click Install next to DiscordLink.
2. Create the Discord application#
-
Open the Discord Developer Portal and create a new application.
-
Open OAuth2 and copy the Client ID and the Client Secret.
-
Under Redirects, add the callback URL of your Paymenter site:
https://billing.example.com/discord/oauth -
Open Bot and copy the bot token.
-
Invite the bot to your Discord server with the Manage Roles permission, and Create Invite if customers should be added to the server when they link.
3. Enable and configure the extension#
- Go to Extensions → Extensions and edit DiscordLink.
- Turn on Enabled.
- Under Extension Settings, fill in:
- Discord Client ID and Discord Client Secret,
- Discord Bot Token,
- Discord Guild (Server) ID: right-click your server in Discord with developer mode on and choose Copy Server ID.
- Save.
4. Link an account#
- Log in to your client area as a customer.
- Open Discord Link in the account menu. The page is at
/discord/manage. - Click the button to link and approve the request in Discord.
The page now shows the linked Discord account. When Send DM When Account Linked is on, the bot sends a welcome DM.
5. Add customers to your server#
Turn on Enable Server Invite to add customers to your Discord server as soon as they link their account. This needs the bot token and the server ID, and the bot must be in the server with the Create Invite permission. Fill in Server Invite Code to also show a Join Server button on the Discord Link page.
Next: give customers a role in Roles, or set up Notifications.