Billing Settings
Go to Super Admin โ Billing โ Payment & Lifecycle.
This page controls which payment gateways tenants can use to subscribe, and the full lifecycle of trial and subscription periods.
Cron required. Trial reminders, expiry emails, and auto-suspension only fire when the cron job is running. Add this to your hosting panel:
* * * * * cd /path/to/leadhub && php artisan schedule:run >> /dev/null 2>&1
Trial & Lifecycleโ
| Field | Description |
|---|---|
| Default trial length (days) | How many days new workspaces get free access. Each plan can override this. |
| Trial reminder cadence | Days before trial ends to send reminder emails. Enter as a comma-separated list (e.g. 7, 3, 1). |
| Post-expiry drip cadence | Days after expiry to send recovery emails to lapsed tenants (e.g. 3, 7, 14). Leave empty to disable. |
| Auto-suspend after (days) | Days after expiry before the workspace is automatically suspended. 0 = never auto-suspend. |
Enabled Gatewaysโ
Check every gateway you want to offer tenants on the pricing page. A gateway is only displayed when it is both checked here and has its credentials filled in.
| Gateway | Description |
|---|---|
| Stripe | Card payments. Includes test-mode toggle. |
| PayPal | PayPal checkout. Includes sandbox toggle. |
| Razorpay | Popular in India and South-East Asia. |
| Paystack | Popular in Africa. |
| Manual Bank Transfer | Displays bank details to the tenant for offline payment. |
Gateway Credentialsโ
Each gateway has its own tab. Fill in the credentials for every gateway you want to enable.
Stripeโ
| Field | Where to Find It |
|---|---|
| Publishable Key | Stripe Dashboard โ Developers โ API Keys |
| Secret Key | Stripe Dashboard โ Developers โ API Keys |
| Webhook Signing Secret | Stripe Dashboard โ Developers โ Webhooks โ your endpoint โ Signing secret |
| Webhook URL | Point Stripe to: https://yourdomain.com/billing/webhook/stripe |
| Test Mode | Toggle on to use Stripe's test environment |
PayPalโ
| Field | Where to Find It |
|---|---|
| Client ID | PayPal Developer Dashboard โ My Apps โ your app |
| Client Secret | Same location |
| Webhook ID | PayPal Developer Dashboard โ Webhooks โ your endpoint ID |
| Webhook URL | https://yourdomain.com/billing/webhook/paypal |
| Sandbox | Toggle on to use PayPal Sandbox |
Razorpayโ
| Field | Where to Find It |
|---|---|
| Key ID | Razorpay Dashboard โ Settings โ API Keys |
| Key Secret | Same location |
| Webhook Secret | Razorpay Dashboard โ Settings โ Webhooks |
| Webhook URL | https://yourdomain.com/billing/webhook/razorpay |
Paystackโ
| Field | Where to Find It |
|---|---|
| Public Key | Paystack Dashboard โ Settings โ API Keys |
| Secret Key | Same location |
Manual Bank Transferโ
Fill in your bank name, account name, account number, IBAN, SWIFT/BIC, and any extra instructions. These details are shown to tenants after they select bank transfer at checkout.
Relatedโ
- Plans โ set per-plan trial overrides and pricing
- Coupons โ create discount codes for subscriptions
- Tenant Management โ view per-tenant subscription status