payments
PaymentFlow
AI-Powered Billing & Finance Platform

Billing that thinks.
Finances that flow.

PaymentFlow handles your complete billing lifecycle — from AI-powered monthly reports and quotes through to invoices, payments, expenses, and tax reporting. Enterprise-grade security. Multi-tenant. Self-hosted.

∞AI Reports
5Report Types
4RBAC Roles
AES-256Encryption
20+Security Features
v1.3.1Latest Version
edit_documentQuote Draft
arrow_forward_ios
sendSent
arrow_forward_ios
visibilityViewed
arrow_forward_ios
task_altAccepted
arrow_forward_ios
receipt_longInvoice
arrow_forward_ios
paymentsPayment
arrow_forward_ios
grid_viewEverything You Need

Built for the complete
billing lifecycle.

Every module designed to work together — from the first quote to the final report.

request_quote

Quotes & Invoicing

Full lifecycle management with customer-facing tokenised public links. One-click quote-to-invoice conversion.

  • check_circleAccept / Decline via secure link
  • check_circleAuto-numbered with configurable prefix
  • check_circlePDF generation via mPDF + print fallback
  • check_circleDuplicate any invoice or quote as draft
payments

Payment Tracking

Full and partial payments with automatic balance recalculation. Status transitions handled automatically.

  • check_circlePartial payment support with live balance
  • check_circleDeleting a payment reverses calculations
  • check_circleAuto status: partial → paid / overdue
  • check_circleFull payment history per invoice
receipt

Expense Management

Full expense lifecycle with VAT-compliant split amounts, receipt uploads, and billable linking.

  • check_circleNet / Tax / Gross split for VAT compliance
  • check_circleMonthly recurring expense auto-generation
  • check_circleReceipt uploads (PDF/JPG)
smart_toy

AI Financial Reports

Five report types with date presets, shared KPI strips, and CSV/PDF export. AI-powered insights analyse your financial data and surface actionable recommendations.

  • check_circleSales, Customers, Products, Tax/VAT, Expenses
  • check_circleDate presets from Today to Last Year
  • check_circleCSV and PDF export per report
dashboard

Live Dashboard

Real-time financial overview with revenue, outstanding, expense breakdowns, and overdue alerts. Role-scoped — each user sees only their data.

  • check_circleRevenue, expenses, profit at a glance
  • check_circleOverdue invoice alerts
  • check_circleRecent activity timeline
business

Multi-Tenant Architecture

Complete data isolation per company. Every table carries company_id. Every query filters by it. Cross-company data leakage is structurally impossible.

  • check_circlePer-company branding & settings
  • check_circleStructural isolation — not just UI-level
  • check_circle4-tier RBAC per company
verified_userEnterprise-Grade

Security built in,
not bolted on.

Every layer of the stack is hardened — from database queries to session management to encrypted credentials. 20+ security features, not one is optional.

Argon2IDPassword Hashing
AES-256GCM Encryption
25CSP Nonces
0msSQL Injection Risk
password

Argon2ID Password Hashing

Industry-leading memory-hard algorithm — stronger than bcrypt. No MD5, no SHA-1.

lock

AES-256-GCM Encryption

SMTP password, AI API key, and Cloudflare token all encrypted at rest via encrypt_value() using your APP_KEY.

verified_user

CSRF Protection

Synchroniser token on every state-changing form, verified before any database write.

database

SQL Injection Prevention

PDO prepared statements throughout. Zero string concatenation in queries — ever.

code_off

XSS Protection

All user-rendered data passes through e() escaping. Nonce-based CSP as the second layer — 25 nonces across all modules.

timer

Inactivity Session Timeout

DB-configurable per company (2 min–1 hr). 1-minute warning modal with countdown. No persistent sessions.

block

Login Rate Limiting

5 login attempts per 15 min per IP. 5 password reset requests per 15 min. 30-second OTP resend cooldown.

upload_file

Secure File Uploads

MIME type verified via finfo, strict extension allowlist, random UUID prefix on stored filenames.

token

Tokenised Public Pages

64-character cryptographically random hex tokens on all public invoice and quote links. No session, no guessable IDs.

smart_toy

AI Prompt Injection Guard

Hardcoded system prompt prevents data values from overriding AI instructions. Output sanitised with tag allowlist.

http

Full Security Header Suite

X-Frame-Options: DENY, nosniff, HSTS, Referrer-Policy, Permissions-Policy (camera, mic, geo, payment all denied).

manage_search

Scanner & Bot Blocking

Known vulnerability scanners blocked in .htaccess — nikto, sqlmap, nmap, masscan, nuclei, acunetix, dirbuster.

gpp_goodThreat Matrix

What stops what.

Brute-force loginarrow_forwardRate limiting (PHP) + Cloudflare rate limit rules
Credential stuffingarrow_forward2FA + rate limiting + Cloudflare bot fight mode
Session hijackingarrow_forwardHTTPOnly cookies + HTTPS + inactivity timeout
CSRFarrow_forwardSynchroniser tokens on all forms
XSSarrow_forwarde() escaping + CSP nonces (25 across all modules)
SQL injectionarrow_forwardPDO prepared statements + Cloudflare WAF
Path traversalarrow_forwardsecurity.php check + .htaccess block
Cross-tenant leakarrow_forwardcompany_id on every query + RBAC enforcement
AI prompt injectionarrow_forwardHardcoded system prompt + data sanitisation
DDoSarrow_forwardCloudflare absorbs at edge before reaching origin
cloudCloudflare Integration

An edge security layer
in front of everything.

PaymentFlow integrates directly with Cloudflare from Settings — encrypted token, automatic cache purging on every save, and a WAF that stops attacks before they reach your origin.

settingsBuilt into the App

  • check_circle
    Scoped API token — Cache Purge + Zone Read only. AES-256-GCM encrypted, never logged, never sent to the browser.
  • check_circle
    Test Connection — validates Zone ID and token; returns domain, plan, and live status.
  • check_circle
    Auto-purge on save — whenever settings or the company logo change, all cached files purge automatically.
  • check_circle
    Manual purge — Purge Cache Now button available at any time from the Settings panel.
  • check_circle
    Audit logged — every cache purge recorded with actor and timestamp.

httpsSSL / TLS Configuration

ModeFull (Strict)
Minimum TLSTLS 1.2
Automatic HTTPSON
HSTSmax-age=31536000
Bot Fight ModeEnabled

Recommended Firewall Rules

Rule 1Block
High-Threat IPs
cf.threat_score gt 30

Cloudflare's threat intelligence scores IPs based on known malicious behaviour.

Rule 2Rate Limit
Login Endpoint
uri.path eq "/login" AND method eq "POST"

10 POST requests per minute per IP. Complements PHP-level rate limiting.

Rule 3JS Challenge
Geo-Restrict Login
uri.path eq "/login" AND NOT ip.geoip.country in {"ZA"}

Non-ZA login attempts served a silent JS challenge. Ideal for ZA deployments.

Rule 4Block
Malicious User-Agents
http.user_agent contains "sqlmap" OR "nikto"

Block known scanner user-agents at the edge before they consume any bandwidth.

phonelink_lockTwo-Factor Auth

Email OTP on
every sign-in.

When 2FA is enabled, a cryptographically random 6-digit code is emailed to every user on sign-in — before any session is established. One toggle in Settings.

1
Credentials verifiedEmail + password checked. No session established yet.
2
OTP generated & hashed6-digit code via CSPRNG. Stored as Argon2ID hash — plain code never persisted.
3
Code delivered by emailExpires in 10 minutes. Max 5 wrong attempts before lockout.
4
Session establishedOTP consumed immediately on verify. Single-use, cleared from database.
phonelink_lock

Verify your identity

Enter the 6-digit code sent to your email address

8
3
1
verifiedVerify Code
Code expires in 08:42 · Resend
manage_accountsAccess Control

Role-based permissions
for your whole team.

Four roles from full administrative control to read-only access — managed per user, enforced server-side on every route.

shield_personSuper Admin
Full Unrestricted
  • check_circleAll modules
  • check_circleSettings + users
  • check_circleAI reports
  • check_circleAudit + email logs
admin_panel_settingsAdmin
Full + Management
  • check_circleAll modules
  • check_circleSettings
  • check_circleReports
  • cancelNo user management
personUser
Standard Ops
  • check_circleQuotes & invoices
  • check_circleExpenses
  • check_circleOwn reports
  • cancelNo settings
visibilityViewer
Read-Only
  • check_circleView invoices
  • check_circleView reports
  • cancelNo create / edit
  • cancelNo settings
paymentsPaymentFlow

Billing that thinks.
Finances that flow.

Self-hosted, multi-tenant, AI-powered. Own your billing data — no SaaS lock-in, no per-transaction fees, no third-party access to your financial records.

open_in_newLaunch App verified_userSecurity Details support_agentGet Support