Rules

Rules


Structure of a rule

A rule consists of an if/then statement between a condition and an action. If the condition is met, then the action is performed.

Rule structure:

If [Condition] Then [Action]

Condition

A condition consists of one or more expressions. Multiple expressions can be combined with AND or OR operators.

Example condition:

[Expression A] AND [Expression B] OR [Expression C]

Action

There are 3 possible actions to choose from:

Action Description
Warn A warning is given for the transaction
Refuse The transaction is refused, or will be automatically refunded in the case of an After-The-Fact refusal
Exempt The transaction is exempted from Shield rules and lists

Expressions

An expression is a combination of datapoints/functions and relational operators.

Expresssion example 1:

  • [Datapoint A] [relational operator] [Datapoint B]
  • Card number country equals Client Ip Country

Expression example 2:

  • [Datapoint A] [relational operator] [value]
  • Amount greater than 300

Expression example 3:

  • [Function] [relational operator] [value]
  • Card number attempts within 5 minutes greater than 3

The following datapoints and functions are available to use in an expression.

Datapoints

All datapoints (including custom datapoints) are available to include in an expression.

Functions

There are 8 different functions available to include in an expression

Function Description
Card numbers attempted from client IP Count of unique debit- or credit card numbers used per Client IP per time interval, within the merchant domain.
Gift card attempts from client IP Count of unique giftcard numbers used per Client IP per time interval, within the merchant domain.
Payment attempts Count of payment attempts per Client IP per time interval, within the merchant domain.
Card numbers attempted from client IP (global) Count of unique debit- or credit card numbers used per Client IP per time interval, across all Buckaroo merchants.
Gift card attempts from client IP (global) Count of unique giftcard numbers used per Client IP per time interval, across all Buckaroo merchants.
Card number originates from unknown country Card number country could not be identified
Client IP originates from unknown country Client IP country could not be identified

Relational operators

Relational operators are used to combine datapoints, functions and values with eachother.

Operator Example
Contains text Card number contains text 5561
Equals Card number type equals ChargeCard
Greater than Amount greater than 500.00
Greater than or equal Amount greater than or equal 500.00
Less than Amount less than 1.00
Less than or equal Amount less or equal 1.00
Not equals Card number brand not equals Mastercard
Occurs in Card number brand occurs in UnionPay,Rupay,Belkart

Was this article helpful?

What's Next