Stripe Radar attributes: the rule language on one page
Stripe documents hundreds of Radar attributes. This page organizes the ones operators actually use, explains the naming patterns behind the rest, and covers the syntax rules that trip people up — with example rules for subscription businesses.
Before you write a rule: custom rules require Radar Plus or Pro. Attribute names below are from Stripe's supported attributes and rules reference pages; Stripe adds attributes often, so treat those pages as the final word.
Rule syntax in 60 seconds
A Radar rule is {action} if {condition}, where a condition is attribute operator value. Attributes are wrapped in colons:
| Operator | Meaning | Works on |
|---|---|---|
= / != | Equal / not equal | Strings, countries, states, numbers, metadata |
< > <= >= | Numeric comparison | Numbers and numeric metadata only |
IN | Value is in a group | Everything |
INCLUDES | String contains | Strings, not numbers |
LIKE | Pattern match, % as wildcard | Strings, not numbers |
- Booleans take no operator:
Review if :is_anonymous_ip:. Writing:is_anonymous_ip: = 'true'is invalid. - Combine with
AND,OR,NOT(or&&,||,!) and parentheses. Precedence is standard:X OR NOT Y AND ZmeansX OR ((NOT Y) AND Z)— use parentheses. - Strings are single-quoted. Countries are two-letter codes (
'US', not'United States'). States are ISO subdivision codes without the country prefix ('CA'). - Lists are referenced with
@:Block if :card_country: in @card_countries_to_block. - Metadata uses double colons:
Review if ::Customer Age:: < 30. Customer and destination metadata:Allow if ::customer:Trusted:: = 'true'. Metadata strings are case-sensitive. - Amounts are in whole currency units —
:amount_in_usd: > 50means $50, not 50 cents — and are converted, so a €45 payment can match a USD threshold.
Missing values: the silent rule-killer
If an attribute is missing for a payment, any comparison against it is false — including !=, and NOT of a missing comparison is also false. So Block if :ip_country: != 'US' does nothing on payments with no IP (common for wallet and server-side payments). Booleans are the exception: a missing boolean is simply false. Test explicitly with is_missing():
Evaluation order
Request 3D Secure rules run first and don't stop evaluation. Then allow, block and review rules run in that order, and the first allow, block or review match ends evaluation. A broad allow rule therefore switches off your block rules for everything it matches. More in how Stripe Radar works.
Risk score attributes
Stripe now marks three specific scores as recommended over the general risk_score. They let you write rules against the outcome you actually care about — fraud, fraud disputes, or early fraud warnings — rather than one blended number.
| Attribute | Type | What it returns |
|---|---|---|
:fraudulent_payment_score: | Number 0–99 | Likelihood the payment is fraudulent, including unreported fraud. Cards. Recommended by Stripe. |
:fraudulent_dispute_score: | Number 0–99 | Likelihood of a fraudulent dispute. Cards, ACH and SEPA Direct Debit. Recommended. |
:early_fraud_warning_score: | Number 0–99 | Likelihood the cardholder reports fraud as an early fraud warning. Cards. Recommended. |
:risk_score: | Number | The general Radar risk score. Defaults: 65+ elevated, 75+ highest. Still supported. |
:risk_level: | String | normal, elevated, highest or not_assessed. |
Card attributes
| Attribute | Type | What it returns |
|---|---|---|
:card_country: | Country | Two-letter country of the card issuer. |
:card_bin: | String | First six digits of the card number. |
:card_brand: | String | amex, visa, mc, dscvr, diners, interac, jcb, cup. |
:card_funding: | String | credit, debit, prepaid or unknown. |
:card_fingerprint: | String (case-sensitive) | Stable identifier for the card number. |
:is_new_card_on_customer: | Boolean | The card hasn't been used by this Customer on your account before. |
:digital_wallet: | String | e.g. apple_pay, android_pay, samsung_pay, none. |
:is_3d_secure_authenticated: | Boolean | Payment was authenticated by a completed 3D Secure flow. |
:has_liability_shift: | Boolean | Approximation of whether liability shifted (Stripe notes it can be inaccurate). |
:cvc_check / address_zip_check: | String | Issuer result: pass, fail, unavailable, unchecked, not_provided. Post-authorization. |
:cvc_check:, :address_zip_check: and :address_line1_check: are post-authorization: they're evaluated after the issuer responds, after rules that don't use them. Stripe also warns that requiring a strict 'pass' is overly restrictive, because wallet payments often carry no CVC.
Email, IP, address and customer attributes
| Attribute | Type | What it returns |
|---|---|---|
:email_domain: | String | Domain of the email supplied with the payment. |
:is_disposable_email: | Boolean | The email is from a known throwaway provider. |
:ip_country: | Country | Country from IP geolocation. |
:is_anonymous_ip: | Boolean | IP is a known proxy or Tor exit node. |
:distance_between_ip_and_billing_address: | Number (km) | Distance between the IP location and the billing address. |
:billing_address_country: | Country | Country of the billing address. |
:hours_since_customer_was_created: | Number | Age of the Customer object (also in minutes/seconds). |
:customer: | String (case-sensitive) | The Customer ID on the payment. |
Payment attributes
| Attribute | Type | What it returns |
|---|---|---|
:amount_in_usd: | Number | Amount converted to USD, in dollars (33 other currencies: amount_in_eur, amount_in_gbp…). |
:is_recurring: | Boolean | Recurring payment, such as a subscription renewal. |
:is_off_session: | Boolean | Billing payment not triggered by the customer, or confirmed with off_session. |
:is_free_trial_transaction: | Boolean | Stripe determined this is a free-trial transaction (Checkout or Billing). |
:is_checkout: | Boolean | Processed through Stripe Checkout. |
:payment_method_type: | String | card, sepa_debit or us_bank_account. |
Velocity and count attributes
Most of Stripe's attribute list is counters, and they follow predictable naming patterns once you see them:
| Pattern | Counts | Example |
|---|---|---|
{outcome}_charges_per_{dimension}_{window} | Card charges by outcome — total, authorized, declined, blocked — per billing address, card number, customer, email, shipping address or IP | :total_charges_per_card_number_hourly: |
{outcome}_transactions_per_{dimension}_{window} | Same, across all supported payment methods and setup attempts (no all_time) | :declined_transactions_per_customer_daily: |
card_count_for_{dimension}_{window} | Distinct cards seen per IP, email, customer, billing or shipping address | :card_count_for_ip_address_hourly: |
email_count_for_{dimension}_{window} | Distinct emails per card, IP, billing or shipping address | :email_count_for_ip_daily: |
dispute_count_on_{card_number|ip}_{window} | Fraudulent disputes linked to the card or IP | :dispute_count_on_card_number_yearly: |
efw_count_on_{card|ip}_{window} | Early fraud warnings linked to the card or IP | :efw_count_on_card_all_time: |
{hours|minutes|seconds}_since_{event} | Time since a card, email or customer was first seen | :hours_since_card_first_seen: |
Windows (from the rules reference): hourly ≈ the last 65 minutes in 5-minute buckets; daily ≈ 25 hours; weekly ≈ 7 days; yearly ≈ 366 days; all_time = up to five years. Two gotchas: counters exclude the payment being evaluated (the first charge of the hour sees 0), and many are bounded at 25, so > 30 can never match.
Radar Pro attributes
These need Radar Pro. Two of them target subscription businesses directly.
| Attribute | Type | What it returns |
|---|---|---|
:bot_score: | Number 0–99 | Likelihood the payment was made by a bot. Cards. |
:free_trial_abuse_risk_level: | String | normal or highest. Cards. |
:refund_abuse_risk_level: | String | normal, elevated or highest. Cards. |
:name_verification: | String | pass, fail, partial_match, unavailable, not_provided. |
Example rules for subscription businesses
Starting points built only from documented attributes. Thresholds are illustrative — backtest every rule against your own last six months before switching it from Review to Block. The subscription Radar rules guide explains how to size them.
| Goal | Rule |
|---|---|
| Card testing from one device | Block if :card_count_for_ip_address_hourly: > 3 |
| Rapid retries on one card | Block if :total_charges_per_card_number_hourly: > 4 |
| Throwaway signups on trials | Review if :is_free_trial_transaction: AND :is_disposable_email: |
| Geography mismatch with a second signal | Review if :card_country: != :ip_country: AND :fraudulent_payment_score: > 50 |
| Prepaid cards on first charge | Review if :card_funding: = 'prepaid' AND NOT :is_recurring: |
| Cards with fraud history | Block if :dispute_count_on_card_number_yearly: > 0 |
| Trusted customers (use sparingly) | Allow if ::customer:Trusted:: = 'true' |
Want to learn the vocabulary by doing? Try the Radar attribute drill, or generate copy-paste rules from 20 patterns in the Radar rule generator.
I rebuilt the Radar rule set on a 200K-user subscription app — chargebacks went from 13% to under 1%, and out of Mastercard ECM.
The 90-day Chargeback Rescue program rebuilds your Radar rules around your real fraud patterns, adds dynamic 3D Secure and dispute interception, and tunes precision so legitimate customers convert while fraud stays out.
Book a Free Consultation →Sources: Stripe documentation and pricing pages as published on 27 November 2026 — linked inline. Stripe changes Radar regularly; check the linked page before relying on a specific number.
Frequently asked questions
- What are Stripe Radar attributes?
- Named signals you can use in Radar rules, written between colons —
:card_country:,:ip_country:,:amount_in_usd:,:fraudulent_payment_score:. A rule compares one to a value, e.g.Block if :card_country: != :ip_country:. Custom rules need Radar Plus or Pro. - Should I use risk_score or fraudulent_payment_score?
- Stripe now marks
fraudulent_payment_score,fraudulent_dispute_scoreandearly_fraud_warning_scoreas recommended overrisk_score(still supported). Pick the one that matches the outcome you want to prevent. - Why is my Stripe Radar rule not matching?
- Usually one of: a missing attribute (comparisons against missing values are false, even
!=); an allow rule matching first; a threshold above a counter's cap of 25; forgetting counters exclude the current payment; or writing= 'true'on a boolean. - What time windows do Radar velocity attributes use?
- Hourly ≈ last 65 minutes (5-minute buckets), daily ≈ 25 hours, weekly ≈ 7 days, yearly ≈ 366 days, all_time up to five years. Cross-payment-method
_transactions_counters offer hourly, daily and weekly only. - Which Radar attributes are only on Radar Pro?
bot_score,free_trial_abuse_risk_level,refund_abuse_risk_levelandname_verification, all for card payments.
Georges Rayess is a Product Manager & AI/Fraud Consultant. Product Manager since 2020 at a privacy-focused subscription mobile app with 200,000+ active users — drove the chargeback rate from 13% to below 1% and exited Mastercard ECM with compliance documents accepted by the processor.