Skip to main content

Stripe Integration (Only for Resellers to Setup Subscriptions for Their Customers)

Integrating Stripe with your WhautoChat Reseller SaaS deployment allows you to manage customer subscriptions and automate billing. This guide covers the steps to connect your Stripe account, configure webhooks, and update your environment variables.

Why Integrate Stripe?

  • Automate subscription billing for your customers
  • Manage recurring payments, upgrades, and cancellations
  • Receive real-time notifications of subscription events

How to Set Up Stripe Integration

  1. Create or log in to your Stripe account.
  2. Create a new webhook endpoint in your Stripe dashboard:
    • Go to Developers > Webhooks > "Add endpoint".
    • Set the endpoint URL to: https://your-backend-server-url/stripe/webhook
    • Under "Events to send", select:
      • customer.subscription.created
      • customer.subscription.paused
      • customer.subscription.resumed
      • customer.subscription.updated
      • customer.subscription.deleted
    • Save the webhook and copy the webhook secret.
  3. Obtain your Stripe Secret Key from the API keys section in your Stripe dashboard.
  4. Update your web-server.env file in your installation folder with the following configuration:
# Stripe Integration for Subscription Billing
STRIPE_SECRET_KEY='your_stripe_secret_key'
STRIPE_WEBHOOK_SECRET='your_stripe_webhook_secret'
  • Replace 'your_stripe_secret_key' with your actual Stripe Secret Key.
  • Replace 'your_stripe_webhook_secret' with the webhook secret from your Stripe dashboard.

Note: Stripe integration is only required for Reseller deployments that need to manage customer subscriptions and payments.

Additional Resources


Enabling Stripe integration allows you to automate and manage customer subscriptions directly from your WhautoChat Reseller SaaS platform. For further help, refer to Stripe support or the WhautoChat documentation.