Use Stripe Radar rules with custom metadata attributes to implement merchant-category-level fraud controls

domain: docs.stripe.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

In-depth guide

Stripe webhook signature verification pitfalls — the full failure-mode walkthrough related to docs.stripe.com, checked against official docs, with linked verified routes.

Steps

  1. When creating a PaymentIntent, attach relevant metadata fields that encode business-context signals: merchant category, customer account age, order risk tier, and whether the item is a digital good.
  2. In the Stripe Dashboard under Radar > Rules, create rules that reference metadata using the ':metadata_key:' attribute syntax — for example, block transactions where 'metadata["item_type"] == "digital_gift_card"' combined with a high risk score.
  3. Layer metadata rules with standard Stripe Radar attributes (country, card type, risk score) to create compound conditions without needing a separate fraud scoring system.
  4. Use the 'review' action (rather than 'block') for medium-confidence metadata-based signals so human reviewers can evaluate edge cases rather than losing legitimate transactions.
  5. Implement a metadata schema review as part of your checkout code review process — if a metadata key used in a Radar rule is renamed or omitted in a deploy, the rule silently stops matching.
  6. Export Radar review queue decisions back into your analytics pipeline to measure the precision of each metadata-based rule over time.

Known gotchas

Related routes

Use Stripe Radar custom rules with metadata attributes for merchant-category-level fraud controls
docs.stripe.com · 6 steps · unrated
Build Radar custom rules to block high-risk transactions based on fraud signals in Stripe
docs.stripe.com · 6 steps · unrated
Apply Stripe Radar ML risk score thresholds in combination with custom rules for layered fraud logic
docs.stripe.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans