Fraud Screening
Every card payment is screened before any gateway sees it. Orchestrapay gives the payment a risk score, runs your rules against it, and then allows it, blocks it, asks for 3D Secure, or lets it through and holds it for your review. Screening covers every card charge: card form, Apple Pay and Google Pay, saved cards, and merchant-initiated charges such as subscription renewals.
Every tenant is screened and scored from the start. The two rules that act on the score, blocking the highest risk and reviewing elevated risk, start switched off, so the score does not decline or hold any payment until you turn them on. You manage all of it in the dashboard under Fraud. Sandbox and production tenants have their own rules, lists and history.
Before you let the score block payments
The score is computed for every payment whether or not a rule uses it. Use that to check it against your own payments first:
- Open Fraud > Overview and read Is the risk score right for your payments?. For each risk level it shows how many payments went through, how many the bank declined, and how many were disputed. A score that fits your business shows clearly more declines and disputes at
elevatedandhighestthan atnormal. - Open Fraud > Rules > New rule, type
Block if :risk_level: = 'highest'and use Test rule. It shows exactly which of your recent payments the rule would have blocked. - When the numbers look right, switch on Review if
:risk_level:= 'elevated' first, then Block if:risk_level:= 'highest'. You can move the thresholds, or switch either rule off again, at any time.
Risk score and risk level
The risk score is a number from 0 to 99. It is computed from signals about the payment, such as:
- where the card was issued, where the customer is paying from, and where the billing address is;
- the card's funding type, for example a prepaid card;
- whether the email address comes from a disposable email provider;
- whether this card has paid you before, and how many disputes it has had;
- disputes and fraud reports on the same card at other merchants on Orchestrapay;
- velocity, for example how many cards were tried from one IP address in the last hour.
The score maps to a risk level:
| Risk level | Score (default) |
|---|---|
normal | 0 to 64 |
elevated | 65 to 74 |
highest | 75 to 99 |
You can move both thresholds per tenant in Fraud > Rules. Each screened payment shows its score, its level and the factors that raised or lowered it on the payment's page in the dashboard.
Rules
A rule is an action and a condition:
Block if :risk_level: = 'highest'
Review if :card_country: != :ip_country: and :amount_in_usd: > 250
Request 3D Secure if :card_funding: = 'prepaid'
Allow if :email: in @email_allowlist
The actions are Allow, Block, Review and Request 3D Secure. Rules run in this order:
- Request 3D Secure rules can ask for authentication. They never decide the payment on their own.
- Allow rules. A payment that matches one skips every block and review rule.
- Block rules. A payment that matches one is declined before it reaches a gateway.
- Review rules. A payment that matches one goes through, and opens a review once it succeeds.
Within one action, the first rule in the list that matches is the one recorded on the payment.
Request 3D Secure applies when the customer is present. A merchant-initiated charge, or a wallet payment that already carries authentication, is never asked for it.
Writing a condition
- Attributes are written between colons, for example
:card_country:. The rule editor lists every attribute with its description. - Values are text in single quotes (
'US'), numbers (250),trueorfalse, or a list in parentheses (('NG', 'GH')). - Value lists are written with
@, for example@email_blocklist. - Payment metadata is written between double colons, for example
::order_type::.
| Operator | Meaning |
|---|---|
=, != | Equal, not equal. Text is compared without regard to case. |
<, >, <=, >= | Number comparisons. |
in, not in | Is, or is not, one of a list of values, or a value list. |
includes | The text contains the value. |
like | The text matches a pattern, where % is any run of characters and _ is one character. |
and, or, not, ( ) | Combine conditions. and binds tighter than or. |
is_missing(:attribute:) | The payment has no value for the attribute. |
A true/false attribute can stand on its own: Block if :is_disposable_email:.
A comparison with a missing attribute is false. For example, :ip_country: != :card_country: does not match a payment with no IP country. To match missing values, use is_missing().
In the dashboard you can write the condition as text, or build it from dropdowns. Both write the same rule. Before you save a rule, Test rule runs it over the last 30 days of your screened payments. It shows how many it would have matched, how many of those were disputed, and examples.
Attributes
| Group | Attributes |
|---|---|
| Payment | amount_in_usd, amount_in_eur, amount_in_gbp, currency, is_off_session, digital_wallet, is_3d_secure, risk_score, risk_level |
| Card | card_bin, card_brand, card_country, card_funding, card_fingerprint, card_issuer, is_commercial_card |
| Customer | email, email_domain, is_disposable_email, customer, cardholder_name |
| Location | ip_address, ip_country, billing_address_country, billing_address_postal_code, billing_address_city |
| History | has_card_succeeded_before, dispute_count_on_card_number_yearly |
| Velocity | <metric>_charges_per_<dimension>_<window> and <counted>_count_for_<dimension>_<window> |
card_brand is one of visa, mc, amex, dscvr, diners, jcb, cup or interac. card_funding is one of credit, debit, prepaid or unknown. customer is the customer's id (cus_...).
Velocity counts look back over a window: hourly (60 minutes), daily (24 hours) or weekly (7 days).
<metric>_charges_per_<dimension>_<window>counts earlier payments, not the one being screened. The metric istotal,authorized,declinedorblocked. The dimension iscard_number,email,ip_addressorcustomer. For example,:declined_charges_per_card_number_daily: >= 3.<counted>_count_for_<dimension>_<window>counts different values seen together, including this payment. The pairs arecard_count_for_ip_address,card_count_for_email,card_count_for_customer,email_count_for_card,ip_address_count_for_cardandname_count_for_card. For example,:card_count_for_ip_address_hourly: > 3catches card testing from one IP address.
Default rules
Every tenant has these rules. You can switch each one on or off, but not edit or delete it. A list rule starts on, and does nothing until you put something on its list. The two risk level rules start off.
| Rule | Starts |
|---|---|
Allow if :card_fingerprint: in @card_fingerprint_allowlist | On |
Allow if :email: in @email_allowlist | On |
Allow if :ip_address: in @ip_address_allowlist | On |
Allow if :customer: in @customer_id_allowlist | On |
Block if :risk_level: = 'highest' | Off |
Block if :card_fingerprint: in @card_fingerprint_blocklist | On |
Block if :card_bin: in @card_bin_blocklist | On |
Block if :email: in @email_blocklist | On |
Block if :ip_address: in @ip_address_blocklist | On |
Block if :ip_country: in @client_ip_country_blocklist | On |
Block if :customer: in @customer_id_blocklist | On |
Review if :risk_level: = 'elevated' | Off |
Value lists
A value list holds values of one type: card fingerprints, card BINs (the first six digits), emails, IP addresses, countries, customers, text, or case-sensitive text. A rule refers to a list by its alias, for example @vip_customers. The default lists named in the default rules always exist. You can create your own in Fraud > Lists.
From a payment's page you can add its card, email, IP address or customer to the matching block list in one click.
Reviews
A payment that matches a review rule is not delayed: it goes through as usual. Once it succeeds, it opens a review in Fraud > Reviews, and you decide:
- Approve: you are satisfied the payment is genuine.
- Refund: refund what is left of the payment.
- Refund as fraud: refund it, and add the card and the email to your default block lists, so the same card or email is blocked next time.
You can also open a review on any successful payment from its page. A review closes on its own when the payment is disputed.
Reviews send the review.opened and review.closed webhooks. See Review Webhook.
Blocked payments
A blocked payment never reaches a gateway, so it does not count against your account at any processor. The charge answers with the blocked_by_fraud_rule response code, the payment intent sends payment.attempt_failed, and the customer can try another card. The customer is shown a generic decline message that does not say a rule blocked the payment.
Testing in sandbox
On a sandbox tenant, these card numbers get a fixed risk score, so you can see each outcome. Switch on the two risk level rules in Fraud > Rules first; with them off, all three cards are scored and go through.
| Card number | Risk score | With the risk level rules on |
|---|---|---|
4100 0000 0000 0019 | 99 | Blocked |
4000 0000 0000 4954 | 85 | Blocked |
4000 0000 0000 9235 | 70 | Allowed, then reviewed |
Use any future expiry date and any CVC. On a production tenant these numbers are scored like any other card.