Accept Crypto in Discord Bots & Paid Communities

Automate Discord VIP role assignments, paid alpha/research servers, SaaS seat unlocks, and gaming guild passes with XPayr Dual Checkout — keeping 99.5% vs 10%–30% membership platform cuts.

Integration Details

Version 1.0.0
Last Updated 2026-11-11
Compatibility Discord.js v14 · Pycord · Next.js OAuth2
Open-Source Repo v1.0.0 Release
Install @xpayr/node-sdk

How to automate Discord VIP roles with XPayr

  1. Install @xpayr/node-sdk in your Discord.js bot or Next.js OAuth2 portal
  2. Create a slash command (/subscribe) passing discord_user_id and guild_id in metadata
  3. Reply ephemerally with an XPayr Dual Checkout link (Web3 Wallet + Exchange QR)
  4. Grant the Discord role automatically on verified payment.completed HMAC webhook

5-Step Discord Slash-Command & Role Setup

  1. Register a Discord Bot with Manage Roles permission and create your XPayr API Key.
  2. When a member runs /upgrade, call POST /api/v1/payments with metadata: { discord_user_id, role_id }.
  3. Send an ephemeral button linking to session.checkout_url so only that member sees their invoice.
  4. Verify X-XPayr-Signature in your webhook listener and call guild.members.addRole(discord_user_id, role_id).
  5. Schedule renewal DMs via /recurring-billing or bind lifetime passes to ES256 wallets (/license-kit).

Why Discord community owners switch from Whop/Patreon to XPayr

0.5% vs 10%+ platform cuts

Keep $99.50 of every $100 membership instead of losing $8–$15 to custodial membership marketplaces.

Zero chargeback role fraud

Prevent scammers from joining private channels, scraping content, and filing card chargebacks.

Global USDT, USDC & SOL

Accept TRON USDT, Solana USDC, Base, TON, and ETH from members in 180+ countries.

Instant ephemeral UX

Sub-10-second role assignment upon blockchain confirmation with zero manual ticket checks.

High-Margin Crypto Monetization for Discord Communities & SaaS

Developer communities, AI tool servers, educational academies, gaming guilds, and market research groups rely on Discord for distribution — yet lose massive margins and face sudden account freezes on custodial membership platforms. XPayr pairs Discord OAuth2 / slash commands with 0.5% non-custodial Dual Checkout so every membership dollar settles straight to your wallet.

FAQ

Discord Crypto Membership Bot FAQ

On Solana, Base, Arbitrum, Polygon, and TRON, confirmation plus signed webhook delivery typically completes in 2–8 seconds.

Yes. XPayr Dual Checkout supports both 1-click browser/mobile wallets and Direct Exchange QR codes with 1% ($0.50 max) withdrawal fee tolerance.

Yes — unify both channels on one XPayr merchant account (see /plugins/telegram and /plugins/n8n).

Yes. Use sk_test_ API keys and /tools/webhook-tester to verify role assignment in a staging Discord server.

Automate Discord VIP roles at a flat 0.5% fee.

Keep 99.5% of your community revenue in your own self-custodial wallet.