Advanced Broadcasting Banner
Official Documentation

Advanced Broadcasting

A high-performance communication and automation engine for Paymenter. Streamlines user engagement through multi-channel broadcasts, automated reminders, and dynamic rewards.

Overview

Advanced Broadcasting is a powerful extension for sending mass communications across multiple channels. Whether you're announcing product updates, sending promotional offers, or delivering critical notifications, this extension streamlines your outreach.

📢 What You Can Send

  • Mass broadcasts & announcements
  • Newsletters & product updates
  • Coupon codes & discount offers
  • Important system notifications
  • Promotional campaigns

🚀 Delivery Channels

  • Discord Direct Messages
  • Email (via Paymenter SMTP)
  • SMS Gateways (Beta)
  • WhatsApp Business (Beta)

Advanced Scheduling & Triggers

Automate your broadcasts with powerful scheduling options and event-based triggers:

Schedule broadcasts for future dates
Auto-trigger on invoices & orders
Recurring reminder schedules
Event-based automation rules

Dependencies

⚠️

Important

You MUST configure Discord OAuth in Paymenter settings for Discord features to work properly.

Optional Dependencies

🤖

Discord Application & Bot

Required for Discord DM broadcasts and account linking.

discord.com/developers →
📱

Twilio Account (Beta)

Required for SMS broadcasts and WhatsApp DMs via Twilio Cloud API.

💬

WhatsApp Group Invite Link

Optional for WhatsApp community features and group broadcasts.

📸

Instagram Group Invite Link

Optional for Instagram community features and group notifications.

Installation & Requirements

  1. Enable the Extension

    Go to Admin - Extensions - Others - Advanced Broadcasting and click Enable.

  2. Migrations

    Database tables are managed automatically. If needed, run the command below:

    Terminal
    php artisan migrate --path=extensions/Others/AdvancedBroadcasting/database/migrations --force
  3. Cron Job

    Critical for scheduling. Ensure your system cron is active:

    Crontab
    * * * * * php /path/to/paymenter/artisan schedule:run >> /dev/null 2>&1
  4. Permissions

    Assign admin.advanced_broadcasting.* and admin.broadcasts.* to your admin role.

Automated Triggers

Set up "set and forget" automation. Advanced Broadcasting listens for key system events—like new user signups, invoice creations, or server suspensions—and automatically triggers your pre-defined notification flows.

Event-Driven Architecture

Triggers fire immediately when system events occur, ensuring real-time communication.

Conditional Logic

Filter triggers based on specific criteria (e.g., invoice total > $50) for targeted messaging.

Multi-Channel Routing

Define different templates for different channels (e.g., a short SMS vs. a detailed Email).
Trigger Configuration Interface

Visual Trigger Editor

Easily configure complex automation rules with our intuitive UI.

example.php
// Example: Registering a custom trigger event AdvancedBroadcasting::registerTrigger( 'user.upgraded', 'User Upgraded Package', ['package_name', 'old_package', 'new_price'] );

Frontend Integration

Seamless User Experience

Our extension injects a beautiful, native-feeling modal into your Paymenter frontend. Users can easily connect their accounts without leaving your dashboard.

ReactVueBlade
Get Notified Modal

Core Features

Advanced Manual Broadcasting

Multi-channel campaigns with granular controls.

Granular Filtering

Target by active services, products, country, or linked accounts.

Multi-Channel

Email, Discord DM, SMS (beta), and WhatsApp (beta) simultaneously.

Smart Queueing

Throttled Discord DMs to prevent rate-limiting.

Intelligent Scheduled Reminders

  • Billing Automation: Reminders X days before/after due date.
  • Service Notices: Suspension or expiration warnings.
  • Quiet Hours: "Do Not Disturb" time enforcement.

Event-Driven Automation

  • Triggers: Registration, Payment, Ticket Open, Installation.
  • Dynamic Coupons: Auto-generate codes like {coupon.code} for rewards.

Broadcast Management

A centralized command center for all your communications. View past broadcasts, analyze delivery rates, and clone successful campaigns with a single click.

Broadcast List View

Comprehensive Logs

Track status across all channels in real-time.

Create Broadcast Interface

Powerful Editor

Draft messages with live preview and variable support.

Key Capabilities

Smart Rate Limiting

Automatically handles API limits for Discord and WhatsApp to prevent bans.

Recipient Filtering

Target specific user groups based on product ownership or activity.

User & Account Verification

Security & Linking

OTP Verification (Beta)

Verify phone numbers via WhatsApp or SMS. Features 10-minute expiry and secure cache validation.

Linked Accounts

Dashboard for users to manage connections:

  • • Discord OAuth (DMs & Sync)
  • • WhatsApp/Phone (OTP)
  • • Google OAuth

Checkout GatePowerful feature

Intercepts users at invoice payment to ensure reachable contacts.

Enforcement
Invoice View
Requirements
Min 1, Min 2, or All
Tracking
OAuth2 & Clicks
Bypass
"Allow Skip" Option

Channel Configuration

Discord DM Queue

Protects your bot from API bans using asynchronous processing.

Smart Throttling

Batch limits (default 10) and random jitter delays (8s ±2s) mimic human behavior.

Fail-Safe

Auto-pauses on 429 Rate Limits (15 mins). Exponential backoff retries (3x).

Dry Run Mode

Simulate broadcasts to test recipient filters without sending real messages.

Twilio & Meta WhatsApp (Beta)

Native support for Twilio/Meta Cloud API for production-grade WhatsApp Business messaging.

Generic SMS Gateways (Beta)

Compatible with any provider supporting HTTP GET/POST requests.

Discord Bot & OAuth Setup

To enable Discord DMs and account linking, you must create a Discord Application.

1Create Application

Go to the Discord Developer Portal and create a "New Application".

2OAuth2 Configuration

  • Redirect URI:https://yourdomain.com/oauth/advanced-broadcasting/discord/callback
  • Scopes:Ensure your application supports identify, email, and guilds.join.
  • Credentials:Copy your Client ID and Client Secret into the Paymenter Admin settings.

3Bot Configuration

  • Token:Go to the "Bot" tab and click "Reset Token" to get your Bot Token.
  • Privileged Gateway Intents:You MUST enable Server Members Intent and Message Content Intent for the bot to fetch user lists and send DMs reliably.
  • Permissions:The bot requires Send Messages and Create Public Threads permissions in your server.

Technical Reference

Dynamic Placeholders

VariableDescription
{client_name}Full Name
{invoice_total}Amount Due
{payment_link}Invoice URL
{coupon.code}Auto-Generated Code

Monitoring

  • Activity LogsTrack every broadcast and OTP attempt.
  • Debug LoggerReal-time API responses from Discord/Twilio.
  • AnalyticsConversion funnel tracking.