Skip to content
CZ App Studio
All guides

All guidesSaaS

SaaS hosting setup

Sell subscriptions to separate company workspaces with the optional SaaS module.

Use this page with AI Open in Claude Open in ChatGPT View as Markdown

The optional SaaS module lets you sell subscriptions to separate company workspaces. Each customer has its own users, HR records, settings and files within one shared database. One workspace has one subscription. Without this module, Open Core HR remains a standalone installation.

Prepare the service

  1. Enable SaaS through module management and apply the supplied migrations. Payment providers are part of SaaS; set up the ones you use under Settings → Payment providers (see Online payments).
  2. Keep the queue worker and scheduler running as described in Services. Sign in as the installation super administrator and configure outgoing email under Settings → Email, and mobile push notifications under Settings → Push notifications. These two sections serve every workspace and appear only in the platform console. Customers must receive and open their signup verification email.
  3. Sign in as the installation super administrator. In Settings → Branding, set your product name, logos, colors and support links. Every customer workspace shows this brand until its own administrator changes something, and later changes you make reach every value a workspace has not changed. In Settings → Company details, enter your company name, address and email: invoices name them as the seller. In Settings → Billing and signups, choose the billing currency and enter your tax number. Choose the currency before creating plans or orders. Creating the first plan or order locks the currency. For offline payments, configure Settings → Bank transfer.
  4. Set the payment grace period. Add your terms and privacy links under Settings → Branding → Links. Once either link is set, visitors must accept the linked terms to sign up; Settings → Billing and signups shows which links signup currently uses. Pages you publish on the landing page do not count until their addresses are added there. The acceptance and links are recorded in the customer's billing audit when they verify their email. To protect signup from automated submissions, enable Workspace signup under Settings → Sign-in protection (see Google reCAPTCHA). Keep public signup disabled until you have checked the complete signup and payment flow.
  5. Create and publish plans. Set monthly and/or yearly pricing, trial days, user and storage limits, and included modules. To offer AI features, connect the AI provider under Settings → AI in the console, include the AI add-ons in the plan, and optionally set AI requests a month; every workspace uses your provider and cannot see its key. Only installed, enabled modules can be offered; include their dependencies too.

Changing a plan's price, modules, limits, tax rate, name or description makes a new version of it; changing its order on the pricing page or whether it is published does not. Existing customers keep the terms they accepted, and old invoices never change. Plans shows how many customers are on older terms; Apply to existing customers moves them to the current version at each customer's next renewal. Customers who pay automatically are asked to approve the new price then, because their provider would otherwise keep charging the old one. Archive a plan when it should no longer be offered to new customers.

A plan that is not published stays off the pricing page but can still be given to a customer you add yourself, for example for a custom agreement.

Visitors can compare published offers at /plans and choose a billing interval before signing up. The signup form asks for the company's country, and the new workspace starts with that country's usual currency, timezone, date format and dialling code, which its administrator can change under Settings → Localisation. Landing Page is the optional public website for the service; it requires SaaS. With it enabled, Pricing appears in the public navigation, and visitors can return to the published landing sections from pricing or signup. The starter page already points Start free trial to /signup and See plans to /plans; visitors who open signup without choosing a plan are taken to pricing first. The operator edits the landing page, its pages, enquiries and subscribers from Landing page in the console menu, and its site settings under Settings → Landing page.

Explore the demo

On a local or testing installation with SaaS enabled and migrations applied, populate sample workspaces from backend/:

php artisan db:seed --class='Modules\SaaS\Database\Seeders\Demo\SaaSDemoSeeder'

Set APP_DEMO=true for the demo installation to show Platform admin demo, Customer admin demo and Employee demo on the sign-in page. The buttons select the appropriate workspace and use normal authentication, including CAPTCHA when configured. Keep demo mode off on a real customer deployment.

The sample companies cover active monthly and annual subscriptions, a trial, an overdue subscription and a suspension. Review the sample bank transfer, inspect order and refund history, or open Northstar's HR workspace and billing page. These are fictional records; no payment provider is charged. The full demo, php artisan demo:seed, also fills in the public site when Landing Page is enabled: figures, testimonials, published and draft pages, recent enquiries and newsletter subscribers. Re-running the seeder preserves existing demo records and your changes.

Bank transfers

Orders, including a bank transfer waiting for review.
Orders, including a bank transfer waiting for review.

In Settings → Bank transfer, enter your payment instructions, turn on Accept bank transfers, and save. Customers can then create an order, make the transfer outside Open Core HR, and submit a reference and optional proof.

To pause new bank transfer orders, turn off Accept bank transfers and save. The instructions are kept for when you enable it again. Customers can still submit proof for existing, unexpired orders, and you can review those transfers.

When a customer submits a transfer, every platform super administrator receives an email asking them to review it. Review the actual bank receipt before approving a submission in Orders; each order shows the service period it covers. Approval activates its paid period. Reject incorrect submissions with a reason: the customer is emailed the reason so they can correct them. A bank refund must first be completed outside the application; Record refund records the amount and reference in the order history.

Online payments

Payment provider configuration is available only to the installation super administrator, under Settings → Payment providers. The list shows every supported provider, whether customers are offered it, and whether it renews automatically. Choose Set up next to a provider, store its credentials, select the test or live environment where the provider has one, and add the payment notification URL shown there to the provider dashboard. Switch on Offer this payment method, save, then use Test saved connection. A provider is offered to customers only when it is switched on, completely set up and accepts your billing currency; the list warns you when it does not. Preserve the application encryption key in your backup process.

Every provider uses its own secure hosted payment page. An approval or return page alone never activates a subscription: the server confirms each payment with the provider, and accepts it only for the order's exact amount and currency. Test the checkout and notification delivery with the provider's test account before accepting live customers. A successful credentials test confirms authentication, not the full payment flow.

Automatic renewal and one payment at a time

Where the provider supports it, subscriptions renew automatically: the customer authorizes the provider once and the provider charges each renewal until the subscription is cancelled. Providers that support this have Renew automatically switched on by default; turn it off to collect one period at a time instead. Automatic renewal starts when a period is due. A customer who pays the next period early, or whose first period is discounted by a coupon the provider cannot apply, pays that period once and can set up automatic renewal at the next due date. Bank transfer can always be prepaid for the next period.

Without automatic renewal, customers are reminded before each renewal and pay again from billing. They can pay the next period ahead, and it starts when the current period ends. A late payment starts a full period from the day it is confirmed. While a checkout is open, the scheduler checks it with the provider every ten minutes, so a payment is still recorded if the customer closes the provider page or a notification does not arrive. If a provider's payment page expires sooner than the order, the customer gets a new page the next time they continue.

You cannot change a provider's account or remove its secret while customers have unpaid checkouts or automatic payments with it. Replacing a secret key is accepted only when the provider confirms the new key belongs to the same account, so you can still rotate keys. Turning a provider off stops new checkouts only; existing automatic payments and notifications keep working.

Supported providers

Renews automatically shows whether the provider can charge renewals itself; elsewhere customers pay one period at a time. Refunds reported shows whether refunds made in the provider dashboard reach Open Core HR by themselves.

Provider Renews automatically Refunds reported Currencies Notes
aamarPay No No BDT, USD Customers need a name, email and phone.
Authorize.Net Yes Yes USD, CAD, GBP, DKK, NOK, PLN, SEK, EUR, AUD, NZD The account must use your billing currency. Renewal starts when the customer saves their card on the payment page.
Benefit No Yes BHD Processed through your Checkout.com account.
Cashfree Yes Yes INR; others when Cashfree enables them Automatic renewal needs Cashfree Subscriptions and UPI AutoPay, activated by Cashfree. Customers need an email and phone.
CinetPay No No XOF, XAF, GNF, CDF Whole amounts only. Customers need an email and a first and last name.
CoinGate No No 43 currencies, paid in cryptocurrency
Easebuzz No Yes INR Customers need an email and phone.
FedaPay No No XOF Customers need an email.
Flutterwave No No The currencies your account accepts Customers need an email.
iyzico Yes No TRY, USD, EUR (one-time also CHF, GBP, NOK) Automatic renewal needs iyzico's Subscription add-on and a Turkish mobile number. Enter the buyer city and country used for every payment.
Khalti No No NPR
Mercado Pago Yes No ARS, BRL, CLP, COP, MXN, PEN, UYU For automatic renewal, the customer's billing email must be their Mercado Pago account.
Midtrans No Yes IDR Whole rupiah amounts only.
Mollie Yes Yes 29 currencies, including EUR, GBP and USD
Ozow No No ZAR
Payfast Yes No ZAR A passphrase is required.
PayHere Yes No LKR, USD Customers need an email, phone and an address ending with city and country.
PayPal Yes Yes Most currencies A coupon can discount the first billing cycle.
Paystack Yes, in NGN, GHS, ZAR and USD Yes NGN, GHS, ZAR, KES, USD, XOF Customers need an email.
PayTabs No No 18 currencies, including AED, SAR, EGP and USD Choose your PayTabs region.
PayTR No No TRY, EUR, USD, GBP, RUB Customers need an email, phone and address.
Razorpay Yes Yes Most currencies Coupon orders use another payment method.
Stripe Yes Yes Most currencies
Tap Payments No No AED, BHD, EGP, EUR, GBP, JOD, KWD, OMR, QAR, SAR, USD Customers need an email.
toyyibPay No No MYR Needs a category code. Customers need a name, email and phone.
Xendit Yes Yes IDR, PHP, VND, THB, SGD, MYR, USD
YooKassa No Yes RUB YooKassa receipts must be turned off for the shop.

Expiry, failed renewals and coupons

An unpaid online order expires after three days, and its checkout is withdrawn at the provider. If the customer completes that checkout later anyway, the payment is still recorded and applied. If a customer pays twice for one order, for example on an old and a new payment page, the second payment is recorded on the order so you can refund it. A customer whose automatic renewal fails can pay another way from billing, which cancels the failed mandate. If a provider stops retrying a failed automatic renewal, Open Core HR cancels that mandate. The owner can then pay again from billing during the grace period. Overdue reminders wait three days after the period ends while an automatic renewal can still be collected.

Coupons discount the first paid period. Most providers with automatic renewal that cannot charge a lower first period collect a discounted first period once instead. Razorpay does not accept a coupon order; customers with a coupon choose another payment method.

Refunds

Online refunds are made in the provider dashboard. Where the table shows refunds as reported, Open Core HR records them from the provider's verified notifications and checks recent payments with the provider once a day, so a missed notification is still recorded. You can also open the order and use Record refund with the provider's refund ID; for providers that report refunds, the amount is checked with the provider. When an order has more than one payment, choose which one was refunded.

Each paid order becomes an invoice with its own number from one gap-free series, separate from order numbers. The invoice shows its issue date, the tax rate, and any refunds.

The scheduler reconciles subscriptions, open checkouts and expiry. Each workspace's reminders and daily work run at their times in that workspace's own timezone. For troubleshooting, run php artisan saas:reconcile from backend/ and investigate reported failures.

Customers and limits

The platform dashboard: recurring revenue, collections and subscription status.
The platform dashboard: recurring revenue, collections and subscription status.
Customers, each with its workspace, owner and subscription.
Customers, each with its workspace, owner and subscription.

Use Dashboard to compare monthly collections and refunds. The chart covers the current calendar month and the preceding five; a refund appears in the month it was recorded. Net collections (all time) subtracts refunds from successful payments in the billing currency. Monthly recurring revenue uses the plan price for active and past-due subscriptions, divides annual prices by twelve, and excludes trials. It is an estimate of recurring billings, not a payment balance.

Use Add customer to open a workspace yourself. Leave the password blank to email the owner a link to choose their own; otherwise the owner receives a welcome email with the workspace name. You receive an email whenever a visitor completes signup.

The customer owner manages employees and ordinary workspace permissions. Only the owner can change the owner's email, password or roles; other administrators cannot edit the owner's account, and the owner role cannot be edited. Platform administration remains restricted to the installation super administrator. Customers sign in with their workspace identifier; the installation administrator leaves this field blank. Customers who forget it can use Forgot your workspace? on the sign-in page.

Signups that are not verified within a day are deleted and never reserve a workspace name: the first verified signup creates the workspace.

User limits count non-system accounts that have not been deleted, including inactive accounts. Storage limits count managed files. Deleting chat messages or chats, tasks, form responses or expense receipts frees the space their files used once nothing else shows them. Permanently deleting an employee also frees the files of the records removed with them, and a daily check frees any file whose record no longer exists. Reaching a limit blocks additional users or uploads; existing records are retained. AI requests count completed requests in the workspace's current month; at the plan's limit, AI features stop until the next month and everything else keeps working. A workspace administrator can set a lower limit of their own. Each customer's AI use this month is shown with their other usage. Billing stays available after access expires so the customer can renew.

Expired means a trial or paid period ended without payment; Suspended means you paused the workspace. Filter customers by either status. Use Suspend customer to block ordinary workspace access. Suspending also cancels the customer's automatic payments at the provider, so it stops charging them. Reactivate customer restores access with the subscription's current trial or paid period; when that has ended, the owner renews from billing. Editing a customer changes only its name and owner details. In a suspended or expired workspace, owners who sign in go to billing, other users see a page asking them to contact their administrator, and the mobile app stops working until access returns. Work that was already queued, such as an import, waits up to three days for access to return and then stops (an import is marked failed with the reason); notifications for the workspace are not sent meanwhile, but password-recovery and billing emails are. A trial extension requires a reason and is recorded. A refund does not automatically cancel a subscription; handle the access decision separately.

Every subscription email — verification, welcome and invitation, workspace reminders, receipts, transfer outcomes, cancellations, billing reminders and your own alerts — can be reworded under Settings → Email templates.

Switching a module off on the Modules page checks every workspace: it is refused while any workspace still needs it, and the message names that workspace. Do not disable SaaS while subscriptions exist. Cancel or migrate the affected subscriptions first. Back up the entire shared database and managed file storage together; see Backups & updates.

Inside Open Core HR

Swipe across to explore the screen.

Inside Open Core HR