Project Snapshot

  • Client: Tanjay Thakur (Founder of Funnel hack)
  • Duration: 4 days
  • Goal: Auto-verify paying customers and grant them premium Discord access instantly
  • Team: 1 developer

Problem

Manual verification for Discord community access was slow, error-prone, and tied up the client’s time. The client needed a fully automated, reliable system that verifies only those who have completed their purchase and grants access with a verification badge—no manual checks.

What We Built

An end-to-end automation that:

  • Captures successful WooCommerce orders via webhook.
  • Stores verified buyers in a secure PostgreSQL database.
  • Issues a verification email with a Discord access link.
  • Uses a custom Discord bot to verify the buyer’s email and unlock premium channels automatically.

End-to-End Flow

  • Order Event → Data Ingestion: WooCommerce sends order.update webhook on payment lifecycle events: initializing, in-progress, and completed.
  • Automation receives all three events, then filters to only process the 'completed' status.
  • Validates whether the customer already exists in the database to prevent duplicates.
  • On first-time completion, stores customer record and triggers the next step.
  • Email Notification: Sends an email to the buyer with a secure link and clear steps to join the Discord premium community. Mail service uses the client’s SMTP for reliable delivery.
  • Discord Verification: Buyer joins the server and initially sees only the 'verification' channel. A Discord bot prompts for the registered email. Bot checks the database: If email matches a verified buyer, the bot grants premium roles and unlocks all relevant channels with a verification badge. If no record exists, access remains restricted.

Tech Stack

  • Automation: Make.com (filters, validations, routing)
  • Storefront: WordPress + WooCommerce
  • Bot: discord.js (Node.js)
  • Database: Neon (PostgreSQL)
  • Email: Hostinger SMTP
  • Hosting/Infra: Existing WordPress hosting + managed Neon DB

Challenges & How We Solved Them

  • Triple Webhook Trigger (Duplicate Entries): Issue: WooCommerce order.update fired 3 times (initializing, in-progress, completed), causing duplicate DB entries and wasted storage. Fix: Added layered filters to only process 'completed' payments, plus idempotency checks (existence/unique constraints) before insert.
  • Flow Stability During Validation: Issue: Early validation caused automation crashes. Fix: Introduced multiple guard conditions, explicit error handling, and reordered steps to validate before write, ensuring the flow only commits once.

Security and Reliability

  • Idempotent writes: Ensures each buyer is stored once.
  • Role-based Discord access: Granted only after database verification.
  • Email-based verification: Prevents unauthorized access via Discord-only joins.
  • Data isolation and clean audit trail for each verification event.

Outcome

  • Fully automated premium access within minutes of purchase.
  • Zero manual checks by the client’s team.
  • Clean, deduplicated customer records.
  • A streamlined buyer experience with instant community value.

Client Feedback

“DailyLance team is the best at what they does. They helped us build the entire Discord auto-verification system in just a few days. Before this, we used to manually verify people who had purchased the course. It has saved us a lot of time and effort. Highly recommended!”

Learnings

Every client is different—trust accelerates delivery. This client paid 50% upfront and backed the process, enabling quick decisions and fast execution. Always account for multi-stage webhooks and implement idempotency from day one to prevent duplicates and instability.

Why This Matters

Communities convert better when access is instant. By linking commerce with community through robust automation, this system increases perceived value, reduces churn, and frees the client’s team from repetitive operational work—delivering a premium experience end-to-end.