At a glance
Takes payments through every channel and applies them to customer accounts.
Key data
Receives from
- eCare / web portal
- Banks & gateways
- Retail channels
Sends to
- Billing
- Collection
- Finance
Payment Flow — End-to-End
From Collection module request through financial institution processing to result propagation
Payment Channels
Three payment methods supported — each routes to a different financial institution via the Payment Gateway
Credit Card
- Subscriber registers card during onboarding
- Card credentials stored as token — never raw
- Tokenisation service resolves token to card details
- Payment authorisation sent to Card Authorisation Network
- Authorisation response received and processed
- Supports card renewal via tokenisation service
Direct Debit
- Subscriber registers bank account during onboarding
- Payment request sent to financial institution bank debit network service
- Financial institution debits subscriber bank account on due date
- Debit result (success / failure) returned to Payment Gateway
- On failure, account referred to Collection for dunning
- Supports re-debit attempt on failure recovery
Walk-in Payment
- Payment slip generated by Collection & Dunning module
- Subscriber pays at a participating walk-in location using the payment slip
- Walk-in location transmits payment data to financial institution
- Financial institution in-store payment network service notifies the platform of payment
- Payment Gateway processes the confirmation
- Supports slip cancellation and reissue
Card Security — Tokenisation
How payment credentials are secured — no raw card data is ever stored in the platform
Credential Tokenisation
Registration
Subscriber submits card or bank account during onboarding. Credentials sent to tokenisation service. A token is returned and stored in the data store against the subscriber profile.
Payment Request
When payment is needed, the Payment Gateway retrieves the stored token. It passes the token to the tokenisation service, which resolves it to the real credential for the financial institution call.
Renewal & Update
The tokenisation service handles credential renewal autonomously — requesting updated card details from card issuers when cards expire. Platform receives an updated token with no manual intervention required.
Component Responsibilities
Detailed function of each service in the Payment module
Payment Gateway
- Receives payment requests from Collection module via event bus
- Determines payment channel (card, direct debit, walk-in payment channel) from payment method
- Sends payment request to appropriate financial institution
- Receives authorisation or debit response
- Updates payment status in data store (success / failure)
- Publishes payment result to event bus for Collection and Accounting
- Maintains payment data and full payment history per billing account
- Supports multiple billing bucket access (consumer, enterprise, partner lines)
Tokenisation Service
- External service responsible for card credential tokenisation
- Converts raw payment credentials to opaque tokens during registration
- Resolves tokens back to credentials for financial institution calls
- Handles card renewal processing with card issuer autonomously
- No raw credentials ever persist in platform data stores
- Platform stores only the token — detokenisation performed by this service at payment time
Storage & Persistence
How and where the Payment module stores its data
Document Data Store
- Payment data per billing account (current cycle)
- Payment history (previous cycles — archived)
- Payment method token per subscriber
- Invoice-to-payment linkage
Async Event Bus
- Payment request input channel (from Collection)
- Payment success notification channel
- Payment failure notification channel
- Accounting update channel
Tokenisation Store
- Managed entirely by Tokenisation Service
- No raw credentials in platform data stores
- Token-to-credential mapping held externally
- Supports multi-issuer credential renewal
Design Principles
Key architectural decisions behind the Payment module
Single Payment Interface
Collection & Dunning sends a unified payment request regardless of the subscriber's payment method. The Payment Gateway encapsulates all channel-specific logic — card, direct debit and walk-in payment channel flows are invisible to the caller, enabling new channels to be added without changing Collection.
Zero Raw Credential Storage
The the platform never stores raw card numbers, security codes or bank account details. All credentials are tokenised at the point of entry and stored only as opaque tokens. Detokenisation occurs at payment time within the secure tokenisation service boundary.
Async Result Propagation
Payment results — success or failure — are published to the async event bus rather than returned synchronously. Bill Collection and Accounting subscribe independently to the result channels, allowing each to react at its own pace without coupling to the payment processing latency.
Score transactions and top-ups for fraud risk in real time.
Pick the best time and method to retry failed card or direct-debit payments.
More in 30 AI & ML use cases and AIOps for BSS.