Discord Integration
Send payment notifications to Discord channels with color-coded rich embeds.
Connect Dunmore to Discord to receive payment notifications as rich embed messages with color-coded status indicators.
Setup
- In your Discord server, go to Server Settings > Integrations > Webhooks
- Create a new webhook, choose a channel, and copy the webhook URL
- Add a Discord connector in the Dunmore console or via the API
Supported Events
| Dunmore Event | Embed Color | Details |
|---|---|---|
payment.settled | Green (#22c55e) | Amount, payer/seller addresses (linked to Basescan), network, endpoint, TX hash, latency |
payment.failed | Red (#ef4444) | Amount, failure stage, error code, endpoint, error message |
customer.first_payment | Blue (#3b82f6) | New customer wallet and first payment amount |
customer.milestone | Amber (#f59e0b) | Wallet address, milestone name, total spend, payment count |
Messages are posted under the username "Dunmore" with embed fields, timestamps, and a Dunmore footer.
Configuration
{
"type": "discord",
"config": {
"webhookUrl": "https://discord.com/api/webhooks/..."
},
"eventTypes": ["payment.settled", "payment.failed", "customer.first_payment"]
}
| Field | Required | Description |
|---|---|---|
webhookUrl | Yes | Discord channel webhook URL |
API Example
curl -X POST https://api.dunmore.xyz/api/projects/{projectId}/connectors \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{
"type": "discord",
"config": {
"webhookUrl": "https://discord.com/api/webhooks/..."
},
"eventTypes": ["payment.settled", "payment.failed", "customer.first_payment"]
}'