An acceptance rule is a logic condition. It enables to:
- authorise
- restrict
- and/or prohibit transactions
A rule is composed of 4 aspects:
- actions
- attributes
- operators
- values
The syntax of a rule is as follows:
“Action" "if" "Attribute” "Relational operators" "Comparison value"
Example:
REFUSE if card_country != 'FRA'
The previous example refuses payments if the country of the card is not France.
The syntax of the grammar selected by the platform for its acceptance engine is very similar to SQL syntax (used to converse with databasess).