Skip to content

Search documentation

Find a page of the Sovgate documentation and jump straight to it.

Write fraud rules

Write your own allow, block and review rules, test them on your last 180 days of payments, and run them in shadow before you enforce them.

Your own rules add to the built-in ones. Each rule has an action and conditions: when a payment meets the conditions, the action applies. Rules belong to one mode, so a rule written in test mode isn't in live mode.

Write a rule

Go to Fraud defense, Rules and choose New rule.

Start from a template, or from scratch

Start from a template fills in a common rule for you: what it does and when. Change any of it before you test it.

Choose the action

Block, Review or Allow: what the rule does to a payment it matches.

Add conditions

What a payment must be for the rule to act, from its Payment, Card, Customer, Email and Risk, or the Payments per customer and Payments per email before it. Match All of the conditions or Any of the conditions, and use Add group for a group of its own. A value a payment doesn't have never matches, unless the condition checks that it's missing.

Test it

Test rule runs it over this mode's payments of the last 180 days, as each was screened. Nothing is changed. Save the rule once its results show.

Choose how it runs

Enforced: it acts on the payments it matches, from the next one. Shadow: it only records what it would have done, and the payments it matches go ahead. Enforce it once you trust it.

Allow rules are powerful

A payment an allow rule matches goes ahead even at the highest risk level. Keep the riskiest payments out by adding the condition that the risk level isn't highest. Sovgate's own protections and the bank still apply.

Use a list in a rule

A rule reads a list through a condition that checks a value is in it, or isn't. For example, block payments whose email domain is on a list of throwaway inboxes. See Block and allow lists.

Follow a rule

A rule's page shows its Matches in 30 days, what it Acted on and its Volume in 30 days, with what it did: Blocked payments and Volume blocked, payments Sent to review, Approved and Refunded, and those Disputed after approval; for an allow rule, Allowed payments, Volume allowed and those Disputed since. A rule in shadow lists its matches as Would have.

StateWhat it means
EnforcedActing on the payments it matches.
ShadowRecording what it would have done.
OffScreening nothing until it's turned on again.
DeletedGone. The payments it screened keep what it decided.

Edit saves a new version of the rule: each payment keeps the version that screened it. Enforce, Put in shadow, Turn off and Turn on change how it runs. A mode can have up to 200 rules of your own.