Background
When our system detects an Expensify Card transaction as suspicious, the domain(s) and cardholder are notified via email, and a task is added to their Inbox asking if they recognize the change.
What the button looks like in Classic:
Currently, this isn't available in NewDot.
Solution
Move this notification to NewDot for NewDot users. Let's replace the email and notification with the following actionable system message in the policy expense chat:
I identified suspicious Expensify Card activity for your Expensify Card ending in $cardLastFour. Do you recognize these charges?
[Transaction details]
[Yes] [No]
If "Yes" is clicked, then we can send this to the chat, with the actor being whoever clicked "Yes":
cleared the earlier suspicious activity. The card is reactivated. You're all set to keep on expensin'!
If "No" is clicked, then we can send something like this to the chat:
the card has been deactivated. [Please reorder a new one?]
Technical details
- In
UpdateExpensifyCardFraudInfo.cpp, when we create the notification EXPENSIFY_CARD_INDIVIDUAL_FRAUD_ALERT, if the user is using NewDot, then create a system message. We need to make it actionable with the Yes/No buttons.
- We will need to queue an offline email for this using
ReportUtils::createNotifyOfflineUsersAboutActivityJob($reportID, (int) $actionableForAccountID, false, false, true); where $reportID is the policy expense chat, perhaps around here, or in Notification_ExpensifyCardIndividualFraudAlert.
Background
When our system detects an Expensify Card transaction as suspicious, the domain(s) and cardholder are notified via email, and a task is added to their Inbox asking if they recognize the change.
What the button looks like in Classic:
Currently, this isn't available in NewDot.
Solution
Move this notification to NewDot for NewDot users. Let's replace the email and notification with the following actionable system message in the policy expense chat:
If "Yes" is clicked, then we can send this to the chat, with the actor being whoever clicked "Yes":
If "No" is clicked, then we can send something like this to the chat:
Technical details
UpdateExpensifyCardFraudInfo.cpp, when we create the notificationEXPENSIFY_CARD_INDIVIDUAL_FRAUD_ALERT, if the user is using NewDot, then create a system message. We need to make it actionable with the Yes/No buttons.ReportUtils::createNotifyOfflineUsersAboutActivityJob($reportID, (int) $actionableForAccountID, false, false, true);where$reportIDis the policy expense chat, perhaps around here, or inNotification_ExpensifyCardIndividualFraudAlert.