Customer payment verification
A payment verification solution for online businesses can be used to demonstrate a simple use case of Decision Server Insights.
Validating an online transaction is a known need of many businesses. A customer visits a website and initiates a purchase, which in turn activates a process or an application to assess the transaction validity. As a minimum security check, businesses must determine whether the card holder is eligible to make the transaction.
There is a certain amount of logic the application must process, such as checking whether the customer's account is active, whether the customer has sufficient credit, and checks on the cardholder's credentials by using the expiration date and card ID. Decision Server Insights is designed to make this kind of decision, which can then be used to deny or approve the transaction. A solution might provide feedback to the customer and enroll the customer for upcoming promotions, and it might also add real-time fraud detection with business analytics.
The following figure shows the agents that are involved in the solution, and what situation each agent detects. The only event that comes from the outside world is a purchase event (shown in red). Other events are emitted to notify other agents of a situation (shown in black). Events are sent to the outside world to inform someone or something of a decision (shown in blue).

The solution has five agents. A single agent detects a purchase event and determines whether the purchase can be approved or denied. The other agents detect events that are emitted internally, by other agents.
- Approve Purchase Agent
- Processes incoming purchase events. Verifies that a consumer has sufficient funds or credit and is not otherwise blocked from making the purchase. It then sends a Purchase Approved or Purchase Denied event. The agent is defined in basic policy statements by using business rules.
Other agents are called as a result of the approved or rejected decision:
- Post Cardholder Transaction Agent
- Updates the cardholder account entity to include the details of the approved transaction.
- Post Merchant Transaction Agent
- Updates the merchant account entity to include the details of the approved purchase, and emit a Fraud Transaction Detected event if something untoward is detected.
- Merchant Fraud Enablement
- Listens for Fraud Transaction Detected events, and sends an alert to the Merchant Fraud Dept.
- Customer Promotions Agent
- Implement promotions as part of an “active customer” program. The Customer Promotions Agent is implemented with rules and does not look fundamentally different from the Approve Purchase Agent. However, Customer Promotions Agent rules require the system to maintain the state of the cardholder account.