Skip to Content
Docs

Advanced fraud screening

Score card payments for fraud before authorization, map score ranges to allow, 3DS, or block, and try the mapping in learn mode first.

Advanced fraud screening gives each card payment a fraud score from 0 to 100 before Pay.com authorizes it. The score uses signals such as the customer's device and IP address, their email and phone, the billing and shipping addresses, and how often the same card, email, or device was used recently. Pay.com maps the score to an outcome, such as allow, require 3DS, or block, and applies it to the payment.

Advanced fraud screening is turned on per account. To turn it on, contact your account manager. Sending enabled: true doesn't turn it on for an account that doesn't have it.

Where screening runs

Screening runs on card payments, including saved cards, Apple Pay, Google Pay, and network tokens, in these requests:

It doesn't run on payouts or on POST /v1/payment_methods/{id}/verify. To score a payment without creating it, use the risk assessments API.

Payment rules that don't depend on screening run first. If one blocks the payment, screening doesn't run. Otherwise, Pay.com scores the payment and then evaluates any payment rules that use Risk Score or other screening signals. When a rule and the score both produce an outcome, the stricter one applies. For this comparison, allow ranks below all other outcomes, including three_ds_exemption and three_ds_not_required.

How the score becomes an outcome

Your account has a default mapping from score ranges to outcomes, set in Settings → Risk Score Thresholds in the Pay.com dashboard. If you haven't set one, scores from 0 to 86 allow the payment and scores from 87 to 100 block it.

A request can send its own thresholds. For each score, Pay.com uses your range's outcome only if it's at least as strict as the default mapping's outcome for that score, so a request can make screening stricter but not looser. For example, with the default mapping, a request can require 3DS for scores from 60 to 86, but it can't allow scores from 87 to 100.

In score ranges, the outcomes rank from least to most strict in this order:

OutcomeWhat Pay.com does
three_ds_exemptionRequests an SCA exemption.
three_ds_not_requiredSkips 3D Secure.
allowProcesses the payment as usual.
require_three_dsAuthenticates the customer with 3D Secure before authorization.
three_ds_challengeAuthenticates the customer with a 3D Secure challenge.
blockDeclines the payment with decline_code: blocked_by_risk_score, without sending it to the network.

Options

Pass advanced_fraud_screening in payment_method_options.card:

FieldTypeDescription
enabledbooleanRequired. false skips screening on this payment. true screens it if screening is on for your account.
learn_modebooleanScore the payment without applying the outcome. Defaults to false.
thresholdsarrayScore ranges and the outcome for each. Each range has start, end, and outcome, all required.

The thresholds ranges must follow these rules, or the request fails with 400:

  • Include an allow range.
  • Cover every score from 0 to 100, with no gaps and no overlaps. Both ends are inclusive, so if one range ends at 59, the next starts at 60.
  • Never get less strict as the score rises, in the order of the outcomes table.

Screen a payment

This charge requires 3DS for scores from 60 to 86, and blocks scores from 87 to 100 as the default mapping does. Amounts are in the currency's smallest unit, so 10000 is $100.00.

{
  "amount": 10000,
  "currency": "usd",
  "source": "pm_card_692434600374304768",
  "risk_session_id": "a4f82c91-3e17-4b09-91dc-b2c3dc25f604",
  "payment_method_options": {
    "card": {
      "advanced_fraud_screening": {
        "enabled": true,
        "learn_mode": false,
        "thresholds": [
          { "start": 0, "end": 59, "outcome": "allow" },
          { "start": 60, "end": 86, "outcome": "require_three_ds" },
          { "start": 87, "end": 100, "outcome": "block" }
        ]
      }
    }
  }
}

For server-to-server payments, pass the risk_session_id from device fingerprinting, so the score can use the customer's device signals.

Try a mapping in learn mode

In learn mode, Pay.com scores the payment and records the score and flags, but doesn't apply the outcome. Use it to see how a mapping affects your payments before it declines any.

learn_mode defaults to false whenever you include advanced_fraud_screening in a request. Even when your account runs screening in learn mode by default, omitting learn_mode applies the outcome on that request. Pass learn_mode: true to keep learn mode active.

Read the result

The result is in risk_assessment_details on the charge, hold, or payment method:

FieldDescription
outcomeThe outcome that applied. A missing outcome means allow.
outcome_sourcescore when the score set the outcome, rule when one rule set it, and rules when several did.
scoreThe fraud score from 0 to 100. Left out when there's no score.
flagsThe signals that affected the score. See Flags.
rule_id, rules_idThe rule or rules that set the outcome, when a rule did.
bypassedRules that were skipped for this payment.
simulatedRules in simulation mode whose conditions matched, without changing the outcome.

The request's payment_method_options.card.advanced_fraud_screening is echoed back only when you sent thresholds.

Flags

Each flag in flags names a signal that affected the score. A payment can have any number of them. This table lists every flag:

SignalFlags
Addressesbilling_address_corrected, shipping_address_corrected, address_unverifiable, billing_shipping_address_mismatch, billing_shipping_city_mismatch, billing_shipping_country_mismatch, billing_shipping_state_mismatch, billing_shipping_postal_mismatch, risky_shipping_billing_mismatch, nonsensical_billing_city, obscene_billing_city, and suspicious_billing_city
Cardcard_bin_country_mismatch, card_non_us, and high_risk_bin
Emailfree_email_provider, invalid_email, high_risk_email_domain, email_billing_country_mismatch, email_billing_country_unverifiable, ip_email_mismatch, multiple_email_addresses, and obscene_email
IP address and deviceip_outside_us, ip_billing_city_mismatch, ip_billing_country_mismatch, ip_billing_state_mismatch, anonymous_proxy, ip_address_risky_source, risky_proxy_ip, risky_true_ip, device_risky, risky_device, timezone_country_mismatch, and suspicious_location
Phoneinvalid_phone, invalid_phone_prefix, invalid_area_code, high_risk_area_code, incomplete_risky_phone, toll_free_number, and phone_billing_state_mismatch
Namesidentical_names, suspicious_name, suspicious_last_name, nonsensical_last_name, obscene_name, and obscene_last_name
Velocityvelocity_multiple_addresses, velocity_multiple_cards, velocity_multiple_names, velocity_card_short, velocity_card_medium, velocity_card_long, velocity_card_very_long, velocity_email_short, velocity_email_medium, velocity_email_long, velocity_email_very_long, velocity_device_short, velocity_device_medium, velocity_device_long, velocity_device_very_long, velocity_ip_short, velocity_ip_medium, velocity_ip_long, velocity_ip_very_long, velocity_shipping_short, velocity_shipping_medium, velocity_shipping_long, velocity_shipping_very_long, velocity_true_ip_short, velocity_true_ip_medium, and velocity_true_ip_long
Identities and historymultiple_identities_billing, multiple_identities_card, multiple_identities_email, multiple_identities_ip, multiple_identities_phone, multiple_identities_shipping, and negative_transaction_history
Correlation in your accountpositive_correlation, negative_correlation, high_positive_correlation, high_negative_correlation, and no_correlation_history
Correlation across all merchantspositive_global_correlation, negative_global_correlation, high_positive_global_correlation, high_negative_global_correlation, and no_global_correlation_history
Timingrisky_billing_time and risky_shipping_time
Form inputautocomplete_address, autocomplete_card, autocomplete_email, autocomplete_name, autocomplete_password, autocomplete_phone, autocomplete_username, autofill_address, autofill_card, autofill_email, autofill_name, autofill_password, autofill_phone, autofill_username, mouse_offpage_address, mouse_offpage_card, mouse_offpage_email, mouse_offpage_name, mouse_offpage_password, mouse_offpage_phone, mouse_offpage_username, pasted_address, pasted_card, pasted_email, pasted_name, pasted_password, pasted_phone, pasted_username, autocomplete_detected, autofill_detected, mouse_offpage_detected, paste_detected, and input_detection_disabled

Set your account defaults

In the Pay.com dashboard, go to Settings → Payment Methods Configuration, open your default configuration set, and set Card → Advanced Fraud Screening:

  • Enabled turns screening on or off.
  • Learn Mode scores payments without applying the outcome.
  • Risk Score Thresholds uses your account mapping (Default) or your own Risk Score Ranges (Custom).

If you don't see these settings, ask your account manager to turn them on. Configuration rules can apply other configuration sets, and Configuration Overrides rules can change the settings for one payment.

Next steps

Was this page helpful?