Wow!Full-featured sandbox for developers — free forever!Register Now
WhatsApp API Integration Guide

Build a Paid WhatsApp Group with Stripe and Whapi.Cloud: Complete 2026 Guide

Updated on May 14, 2026

For Node.js developers: how to build a paid WhatsApp group that manages itself. Stripe Checkout captures the subscriber's phone, a webhook adds them via Whapi.Cloud's Groups API within seconds, and customer.subscription.deleted removes them silently on cancellation. Covers raw-body webhook setup, phone-to-JID conversion, rate limiting, 403 fallback with invite-link rotation, two database tiers (Google Sheets and SQLite), and a no-code n8n path. Scales to 1,024 members.

Paid WhatsApp group Stripe Whapi.Cloud integration system architecture showing webhook flow from payment to group membership
About the Author
Jason Mitchell
Jason Mitchell
Product Owner at Whapi.Cloud
Building WhatsApp integrations since 2019. Always happy to connect — whether you want to discuss an API use case, share feedback, or just talk shop. Find me on LinkedIn.
Common Questions

Paid WhatsApp Group Integration FAQ

You can use any WhatsApp number, personal or business. Connect it to Whapi.Cloud by scanning a QR code in the dashboard; the process takes about two minutes and does not require Meta verification or a business account. If the number already has WhatsApp installed on a phone, the phone and the API can run simultaneously (Whapi.Cloud supports this). Dedicate a number to the integration if you plan to run multiple paid groups or want to separate API traffic from personal messages.
Export your existing subscriber list (phone, Stripe subscription ID) and run a migration script that calls <code>addGroupMember()</code> for each one. Use a batch size of 10 members per run with a 3-second pause between batches, and increase the sleep between individual adds to 500ms to stay below the IQErrorRateOverlimit threshold. Run the script during off-peak hours. After migration, insert each subscriber into your <code>members</code> table so the expiry-removal webhook can find them by subscription ID.
Use the Stripe CLI to forward webhook events to your local server: <code>stripe listen --forward-to localhost:3000/webhook</code>. This prints a temporary webhook signing secret that you use as <code>STRIPE_WEBHOOK_SECRET</code> in your <code>.env</code> file during local testing. The CLI replay command lets you retrigger any past event: <code>stripe events resend evt_XXXX</code>. Test <code>checkout.session.completed</code> first to verify member addition, then <code>customer.subscription.deleted</code> to verify removal. Confirm both the Whapi.Cloud API call succeeds and the database record is created or deleted as expected.
Without idempotency, a duplicate <code>checkout.session.completed</code> adds the member twice (sending two welcome messages and creating two database records for the same subscription). A duplicate <code>customer.subscription.deleted</code> removes an active member before their billing period ends. The <code>processed_events</code> table in the SQLite schema solves this: before processing any event, check whether its <code>event.id</code> is already recorded. Stripe guarantees that the same event ID is used on every retry attempt, so this check is deterministic.
WhatsApp groups are capped at 1,024 members per group. When a group approaches that ceiling, the standard approach is to create overflow groups (Group 2, Group 3) and route new subscribers to the group with available capacity. Add a <code>group_capacity</code> check to your <code>handleCheckoutCompleted</code> function: call <code>GET /groups/{id}</code> to retrieve the current participant count, and if it exceeds your threshold (e.g., 900), redirect the next subscriber to a designated overflow group ID. All groups deliver the same content; the difference is administrative. The Whapi.Cloud Groups API supports this routing pattern without additional configuration.
A 403 response from <code>POST /groups/{id}/participants</code> means the subscriber has set their WhatsApp privacy to restrict group additions to contacts only or to nobody. The number is valid and active on WhatsApp -- the privacy setting is blocking the server-push addition. The only reliable fallback is the invite link rotation flow: revoke the current group invite code, generate a fresh one, and send it to the subscriber via direct WhatsApp message using <code>POST /messages/text</code>. The subscriber joins voluntarily by clicking the link. Rotate the code again after they join (or after 24 hours) to close the leak window.

See What Our Clients Built
with Whapi.Cloud

"Cart reminders with a 5% follow-up coupon lifted our recovery rate from 4% to 11%. Customers reply directly in WhatsApp — our team closes the sale right there."

Abandoned Cart Recovery

Hans M., Germany
"Managing 40+ segment groups became trivial — auto welcome messages, pinned updates, inactive member cleanup. Lead gen from WhatsApp groups grew 3x in two months."

Automated Group Management at Scale

Carlos S., Brazil
"Guests receive door codes, WiFi credentials, and a local guide automatically on arrival. Checkout is confirmed via a photo on WhatsApp. Front desk load dropped 40% in the first month."

Contactless Hotel Operations

Ana M., Romania
"Our deals channel has 12,000 subscribers. Whapi.Cloud scrapes competitors, filters duplicates, and auto-posts the top 5 daily. Channel growth tripled after switching to automated posting."

Automated Deal Channel Publishing

Katrin S., Germany
"We verified 93,000 active WhatsApp numbers from 180,000 contacts in 48 hours. Campaign open rates improved significantly by stopping spend on inactive numbers."

Large-Scale Audience Filtering

Sergio N., Spain
"Patients book appointments and check lab results on WhatsApp. The bot handles 200+ daily queries without staff. Appointment no-shows dropped 30% after automated 24h reminders."

Healthcare Bot — Scheduling & Results

Dr. Fernanda O., Brazil
"Post-purchase WhatsApp messages with a tailored discount at day 14. Birthday coupons see 45% redemption — far above our email rate. Repeat purchases via WhatsApp: 18% of total revenue."

WhatsApp Retention Campaigns

Lukas W., Germany
"Customers get a WhatsApp tracking link the moment their parcel ships. Support tickets dropped 35% in 3 months — mostly 'where is my order?' queries simply disappeared."

Automated Shipping Notifications

Matei P., Romania
Inhouse Developed & Managed

What is Whapi.Cloud?

Whapi.Cloud is an intuitive API that connects your business with WhatsApp -- directly and without complexity. Build support bots, schedule appointments, send notifications, manage groups and channels, automate order confirmations, and track everything with webhooks. Focus on growing your business while the API handles the messaging layer.

Our service provides full control and management of WhatsApp groups, communities and channels.

Add dynamics and new features: media, buttons, reactions, stories, orders and products. All of these are available to you for customer interaction.

Our care team will respond quickly and help you with any questions you may have!
Account screenshot
Account screenshot