Payzo Docs

Discord Notifications

Receive real-time payment notifications in your Discord server

Overview

Get instant notifications in your Discord server when payments are completed, failed, or refunded. Perfect for keeping your team updated in real-time.

Setting Up Discord Notifications

Step 1: Create a Discord Webhook

  1. Open your Discord server
  2. Right-click the channel where you want notifications
  3. Click "Edit Channel" > "Integrations"
  4. Click "Create Webhook" or "View Webhooks"
  5. Click "New Webhook"
  6. Name it (e.g., "Payzo Payments")
  7. Click "Copy Webhook URL"

The URL will look like:

https://discord.com/api/webhooks/123456789/abcdefgh...

Step 2: Configure in Payzo Dashboard

  1. Go to Dashboard > Shops
  2. Select your shop
  3. Click "Edit" or "Settings"
  4. Scroll to Discord Notifications
  5. Paste your Discord Webhook URL
  6. Select which events to notify:
    • Payment Completed (recommended)
    • Payment Failed
    • Payment Refunded (recommended)
  7. Click "Save"

Step 3: Test Your Integration

  1. Click "Test Discord Notification" button
  2. Check your Discord channel for a test message
  3. If successful, you'll see a blue embed with test data

Notification Examples

Payment Completed

[Green Embed]
🟢 Payment Completed

Amount: $50.00 USD
Payment ID: pay_abc123def456
Status: Completed
Customer: John Doe (john@example.com)
Metadata:
  **order_id**: ORD-12345
  **product**: Premium Package
Time: 2 minutes ago

My Awesome Store • Payzo

Payment Failed

[Red Embed]
🔴 Payment Failed

Amount: $25.00 USD
Payment ID: pay_xyz789
Status: Failed
Customer: jane@example.com
Time: Just now

My Awesome Store • Payzo

Payment Refunded

[Orange Embed]
🟠 Payment Refunded

Amount: $100.00 USD
Payment ID: pay_refund123
Status: Refunded
Customer: Bob Smith (bob@example.com)
Time: 5 minutes ago

My Awesome Store • Payzo

Customizing Notifications

Event Types

You can choose which events trigger notifications:

EventDescriptionRecommended
Payment CompletedCustomer successfully paidYes
Payment FailedPayment attempt failedOptional
Payment RefundedPayment was refundedYes

Notification Settings

Configure per shop:

  1. Discord Webhook URL: Your Discord webhook endpoint
  2. Notify on Completed: Get notified when payments succeed
  3. Notify on Failed: Get notified when payments fail
  4. Notify on Refunded: Get notified when payments are refunded

Next Steps

On this page