Message formats
The message provider creates the transaction approval message from a message template, values from the transaction approval parameter step, and the context data of the user.
- The graphic below shows where the message template comes from:
- For each message provider, a message translation key can be configured.
- The message translation key can also contain variables (of the form
${...}
) that are replaced by values from the transaction approval parameter step or the user's context data.
In the example graphic, the variable is ${type}
and is replaced by the value payment
from the parameter step. Therefore the message template is taken from the string resource file under the key mtan.payment.message
.
Message template example with limited message length:
Approve payment: ${amount} ${currency} to account number ${accountNumber,mid,3,2}.
Default transaction string resources can be customized and localized for specific or common use in the directory ./instances/common/transaction-approval-texts/
.
See also Customizing text elements in the Transaction Approval module.