MPay_Transaction¶
Introduction¶
Define rules related Majority Pay Transactions
Features used in the decision point¶
| Features | Display format in Hydra | Feature Type | Discription |
|---|---|---|---|
| senderId/MajorityPaymentUpdatedEvent/last1d/amount/tx/count/int | Sender.1day.Sent.Count | Record Feature | Number of successful attempts that the sender sent money within a day |
| senderId/MajorityPaymentUpdatedEvent/last1d/amount/sum/double | Sender.1day.Sent.Total | Record Feature | Total amount that the sender sent in a day |
| senderId/MajorityPaymentUpdatedEvent/last30d/amount/sum/double | Sender.30day.Sent.Total | Record Feature | Total amount that the sender sent in a 30 day |
| receiverId/MajorityPaymentUpdatedEvent/last1d/amount/tx/count/int | Receiver.1day.Received.Count | Record Feature | Number of successful attempts that the recipient received money within one day |
| receiverId/MajorityPaymentUpdatedEvent/last1d/amount/sum/double | Receiver.1day.Received.Total | Record Feature | Total amount that the recipient got within a day |
| receiverId/MajorityPaymentUpdatedEvent/last30d/amount/sum/double | Receiver.30day.Received.Total | Record Feature | Total amount that the recipient gets in 30 days |
| input/MPay_Transaction/amount/double | MPay.Input.Amount | Local Feature | Input amount |
Rules¶
Staging Environment
https://stage-hydra.majority.com/risk/decision-points/MPay_Transaction
Error messages that were introduced to Mpay¶
| Error Message Title | Error Body |
|---|---|
| Something went wrong | You are temporarily unable to make a payment. Please try again later. |
| Unable to pay | You cannot pay this MAJORITY member at this time. Try again tomorrow. |
| Unable to pay | You cannot pay this MAJORITY member at this time. Try again later. |
Sample Risk Response¶
{
"Actions": [],
"actionId": null,
"allRuleDecision": "Deny",
"decision": "Deny",
"decisionDate": "2023-05-12T13:02:55.217135Z",
"decisionId": "b7f87333-9bb8-4fb2-ad26-563cf8c29950",
"decisionPoint": "MPay_Transaction",
"inputData": {
"input/MPay_Transaction/amount/double": "1.0",
"receiverId": "8d20ed6c-9c34-44d6-967f-90e0fa2f6014",
"senderId": "dba5592c-e16b-4d94-a736-1d00cb420c94"
},
"liveRuleDecision": "Allow",
"parameterMatches": [],
"rules": [
{
"actions": [],
"isTriggered": false,
"order": 1,
"result": "Allow",
"ruleId": "625a76df-a727-4754-b35c-04c70868c297",
"ruleName": "MPay Sender Daily Amount Limit",
"ruleState": "Shadow",
"userMessage": null,
"version": 7
},
{
"actions": [],
"isTriggered": false,
"order": 2,
"result": "Allow",
"ruleId": "963825f5-e8a2-47fc-8bf4-42f6aae07c3e",
"ruleName": "MPay Recipient Daily Amount Limit",
"ruleState": "Shadow",
"userMessage": null,
"version": 11
},
{
"actions": [],
"isTriggered": false,
"order": 3,
"result": "Allow",
"ruleId": "c9a49183-1c26-432c-9e36-f790050f0ae7",
"ruleName": "MPay Sender Monthly Amount Limit",
"ruleState": "Shadow",
"userMessage": null,
"version": 10
},
{
"actions": [],
"isTriggered": false,
"order": 4,
"result": "Allow",
"ruleId": "d3016924-14cd-4c2d-a1d7-6d752adffbfa",
"ruleName": "Mpay Sender Transaction Amount Limit",
"ruleState": "Shadow",
"userMessage": null,
"version": 7
},
{
"actions": [],
"isTriggered": true,
"order": 5,
"result": "Deny",
"ruleId": "a68f0bdd-d681-46b4-8f76-f46f30eafed6",
"ruleName": "MPay Recipient Monthly Amount Limit",
"ruleState": "Shadow",
"userMessage": {
"body": "You cannot pay this MAJORITY member at this time. Try again later.",
"buttonText": "Ok",
"title": "Unable to pay"
},
"version": 6
}
],
"userId": null,
"variables": {
"input/MPay_Transaction/amount/double": 1,
"receiverId/MajorityPaymentUpdatedEvent/last1d/amount/sum/double": 26,
"receiverId/MajorityPaymentUpdatedEvent/last30d/amount/sum/double": 258.8,
"senderId/MajorityPaymentUpdatedEvent/last1d/amount/sum/double": 3,
"senderId/MajorityPaymentUpdatedEvent/last30d/amount/sum/double": 4
}
}