1. Overview & Business Purpose
The Invoice Payment Processing & Gateway Integration Module in ITSTHS Workspace acts as the primary revenue transaction ledger. It manages the receipt of client funds across manual offline payment methods (e.g. Bank Wire, Direct Deposit, Check, Cash) and automated online payment gateways (e.g. Stripe Credit Card, PayPal, Stripe ACH Direct Debit).
Logging invoice payments updates real-time financial income ledgers, calculates client account balances, adjusts project margin analytics, and updates invoice state statuses from Unpaid → Partially Paid → Paid.
2. What This Feature Does
- Manual Offline Payment Logging: Log bank transfers, checks, and manual credit card payments with payment dates, transaction reference numbers, and custom notes.
- Automated Online Gateway Processing: Support for Stripe and PayPal online payments via the secure Client Portal with automatic payment receipt emails and real-time status sync.
- Partial Payment & Balance Tracking: Automatically track incremental payments against invoice balances, updating the status to
Partially Paiduntil fully settled. - Credit Notes & Refunds Ledger: Issue credit notes to adjust invoice totals, apply account credits, or process client refunds with audit trail logging.
- Payment Receipt Generation: Automatically generate downloadable PDF payment receipts for clients upon transaction completion.
3. Business Use Cases
- Recording Direct Bank Wires: Log manual bank wire transfers received for outstanding client invoices.
- Client Portal Online Card Payments: Clients pay issued invoices online using credit/debit cards via Stripe.
- Applying Partial Retainer Deposits: Log a 50% deposit payment on an upfront project milestone invoice.
- Issuing Credit Adjustments: Create a credit note to adjust an invoice total for disputed items or scope reductions.
4. Before You Begin (Prerequisites)
- Issued Client Invoice: At least one invoice in Unpaid or Partially Paid status must exist in
Workspace → Sales → Invoices. - Payment Methods Setup: Pre-configure payment options in
Workspace → Settings → Payment Methods(e.g., Bank Transfer, Stripe, PayPal).
5. Required Permissions
Access to log invoice payments and issue credit notes is managed via RBAC in Workspace → Settings → Roles:
- Admin Users: Full permissions to log payments, edit payment logs, delete payments, and issue credit notes across all invoices.
- Staff Members: Requires permission flag
invoiceset to All or Specific, with internal edit capabilitycan_edit_invoices().
6. Plan Availability
7. Where to Find It
To record a payment on a specific invoice:
Navigate to Workspace → Sales → Invoices → Click target invoice → Click Record Payment in the top toolbar.
To view all global payment logs: Workspace → Sales → Invoice Payments.
8. Field-by-Field Reference Dictionary Table
[SCREENSHOT: payment-modal.png]
| Field Name | Form Control | Required? | Description & Allowed Values | System & Business Effect |
|---|---|---|---|---|
invoice_id |
Hidden / Select | Required | Target invoice ID number. | Links payment transaction to the specific invoice. |
amount |
Numeric Input | Required | Payment amount received (e.g. 500.00). Must be > 0 and ≤ remaining balance due. |
Deducts from invoice balance due and updates status badge. |
payment_date |
Date Picker | Required | Date payment was received (YYYY-MM-DD). | Recorded in accounting ledger and income reporting charts. |
payment_method_id |
Dropdown | Required | Payment channel (e.g., Bank Transfer, Check, Stripe, Cash). | Categorizes payment source in financial summary reports. |
note |
Textarea | Optional | Transaction reference (e.g. Bank Wire Ref #WT-98210). | Printed on payment receipt PDF and internal audit trail. |
9. Step-by-Step Procedure: Logging Invoice Payments
Step 1 — Open Payment Modal
- Navigate to
Workspace → Sales → Invoices. - Click on the target unpaid or partially paid invoice to open details.
- Click the Record Payment button in the top action bar.
Step 2 — Input Transaction Details
- Enter the exact Payment Amount received.
- Select the Payment Date and Payment Method.
- Enter the bank reference or check number in the Note field.
- Click Save Payment.
10. Status & Lifecycle State Table
| Status Badge | Color Indicator | Trigger & Conditions | System Effect |
|---|---|---|---|
| Partially Paid | Blue | Logged Payments > $0.00 AND < Total Invoice Amount. | Remaining balance displayed. Incremental payments allowed. |
| Paid | Green | Total Logged Payments ≥ Final Invoice Total. | Invoice locked. Revenue recognized in financial ledgers. |
11. Validation Rules & Error Messages
The Amount field is required.— Occurs if the payment amount is missing or empty.The Payment Date field is required.— Occurs if the transaction date is omitted.Payment amount cannot exceed remaining invoice balance.— Occurs if the entered amount is greater than the outstanding invoice balance.
12. Edge Cases & Troubleshooting
- Deleting Logged Payments: If a payment is deleted or unlinked, the system automatically recalculates total payments and reverts the invoice status from Paid back to Partially Paid or Unpaid.
- Gateway Currency Conversion: When receiving payments via Stripe in a foreign currency, Stripe automatically converts funds at live exchange rates. The logged amount matches the invoice base currency.
13. Best Practices
- Always include the bank wire reference code in the Note field for smooth monthly bank reconciliation.
- Enable automated Stripe/PayPal payment gateway integrations to allow clients to pay instantly online.
14. Frequently Asked Questions (FAQs)
Q: How do I issue a Credit Note against an invoice?
A: Open the target invoice, click Actions → Create Credit Note. Enter the credit adjustment amount and save. The credit note reduces the invoice balance automatically.
Q: Can clients view payment receipts in the Client Portal?
A: Yes! Clients can view full payment histories and download PDF payment receipts directly from their portal account under Invoices → Payment Receipts.
15. Related Features & Documentation Manuals
- Creating & Sending Invoices Guide: Invoice creation, multi-level tax setup, and line item configurations.
- Recurring Subscriptions Manual: Automated recurring billing schedules.
- Configuring Workspace Settings Guide: Stripe & PayPal gateway API key setup.