Payment Gateways (Stripe & PayPal)
FeedbackPulse SaaS supports Stripe and PayPal for subscription billing. You can enable one or both.
💰 How Биллинг Works
- You create тарифные планы in
Admin → Plans(e.g., Starter $9.99/mo, Pro $29.99/mo) - Each plan has a Stripe Price ID and/or PayPal Plan ID
- When a tenant subscribes, they're redirected to Stripe Checkout or PayPal
- After payment, FeedbackPulse activates their subscription
- Вебхуки keep everything in sync (renewals, cancellations, failures)
💳 Stripe Setup
Step 1: Create a Stripe Account
- Зарегистрируйтесь at stripe.com
- Complete identity verification
- Get your Ключи API from Developers → API Keys
Step 2: Get Your API Keys
| Key | Where to Find | .env Variable |
|---|---|---|
| Publishable Key | Панель управления → Developers → API Keys | STRIPE_PUBLISHABLE_KEY |
| Secret Key | Панель управления → Developers → API Keys | STRIPE_SECRET_KEY |
STRIPE_PUBLISHABLE_KEY=pk_live_xxxxxxxxxxxxxxxx
STRIPE_SECRET_KEY=sk_live_xxxxxxxxxxxxxxxx
🧪 Testing: Use
pk_test_andsk_test_keys for sandbox mode.
Step 3: Create Продукты & Prices in Stripe
For each subscription plan, create a recurring price in Stripe:
- Перейдите в Продукты → Add Product
- Name: "FeedbackPulse Starter" (or your plan name)
- Add a recurring price: $9.99 / month
- Optionally add an annual price: $99.99 / year
- Copy the Price ID (starts with
price_)
Step 4: Link Prices to Plans
In FeedbackPulse, go to Admin → Plans → Edit:
| Plan Field | Stripe Value |
|---|---|
| Stripe Monthly Price ID | price_xxxxxxxxx (monthly price ID) |
| Stripe Annual Price ID | price_xxxxxxxxx (annual price ID) |
Step 5: Set Up Stripe Вебхуки
This is critical — webhooks keep subscriptions in sync.
- Перейдите в Stripe Панель управления → Developers → Вебхуки
- Click Add endpoint
- Endpoint URL:
https://yourdomain.com/webhooks/stripe - Events to listen for:
checkout.session.completedcustomer.subscription.createdcustomer.subscription.updatedcustomer.subscription.deletedinvoice.payment_failed
- Copy the Signing Secret (starts with
whsec_)
STRIPE_WEBHOOK_SECRET=whsec_xxxxxxxxxxxxxxxx
Step 6: Enable in Admin Panel
Перейдите в Admin → Настройки → Payments:
- Toggle Stripe to enabled
- Paste your publishable and secret keys
- Save