Payments
Digital Paylinks & Hosted Checkout Pages
Generate standalone, mobile-responsive payment links with cryptographic token protection to collect payments via WhatsApp, SMS, email, or invoice.
What are Digital Paylinks?
A Digital Paylink (`https://[site].businessplus.co.ke/pay/:token`) is a secure, standalone hosted payment webpage generated for any order or booking. Customers click the link on their mobile device or computer to complete payment without logging in.
Paylink Visual Anatomy
Each hosted paylink displays:
- Verified Business Header: Verified store logo, business name, and official order reference number.
- Itemized Summary: List of purchased items, quantities, applied discounts, and total amount due.
- Payment Gateway Selector: Tabs to select between "M-Pesa STK Push" (phone prompt) or "Card Payment" (Visa/Mastercard).
- Real-Time Polling Engine: Automatically polls the backend every 2 seconds to detect payment clearance and redirects to the official PDF receipt immediately.
Cryptographic Token Security
Paylinks use a 32-character randomized hexadecimal token (`paylink_url_token`). The database function `public_pay_resolve(token)` returns only the data strictly belonging to that order, preventing unauthorized access to other tenant financial records.
Sharing Paylinks with Customers
Staff can copy paylinks directly from the Order Detail sheet, or click "Send Payment Link" to dispatch pre-formatted WhatsApp or email messages with one click.