MOD-04
Smart Rules
Program your payment flow without a deploy.
Write rules for fraud, routing, fees and approvals in plain logic. They run in under a millisecond on every transaction, and shadow mode lets you prove them on real traffic before they ever block a payment.
- Evaluation time
- <1ms
- Signals
- 120+
- Deploys needed
- 0
rule / high_value_3ds
Shadow modeWhen all match
- amount_usd>500
- ip_country!=card_country
- device.new==true
Then
Require 3DS challenge
Shadow results · last 24h
- Payments scored
- 48,210
- Would challenge
- 2.1%
- Fraud it would stop
- $18,240
MOD-04 / Capabilities
Logic you can ship before lunch.
- 01
Visual or code
Build rules in the editor or ship them as JSON through the API. Both views always stay in sync.
- 02
Shadow mode
Run a new rule against live traffic without acting on it and see exactly what it would have done.
- 03
120+ signals
Amount, country, BIN, device, velocity, customer history and any metadata you attach to a payment.
- 04
Instant rollout
Publish in seconds and roll back in one click. No deploys, no release trains, no waiting.
- 05
Powerful actions
Approve, review, block, require 3DS, route to a processor, tag the payment or notify your team.
- 06
Full audit trail
Every change is versioned with its author, timestamp and a diff your compliance team will love.
How it works
Three steps to live.
- 01
Describe the condition
Combine signals with AND and OR, and compare them against thresholds or other fields.
- 02
Test in shadow mode
Watch the rule score real payments for a day without touching a single one.
- 03
Publish
Promote it to live with one click. Every change is versioned and reversible.
const rule = await nyori.rules.create({ name: 'High value 3DS', when: { all: [ { field: 'amount', op: 'gt', value: 50000 }, { field: 'ip_country', op: 'neq', ref: 'card_country' } ] }, then: { action: 'require_3ds' }, mode: 'shadow'})// Promote it once shadow results look rightawait nyori.rules.publish(rule.id)Jack in
Plug in Smart Rules.
Sandbox keys are free and ready in minutes. Build against the real API today and go live whenever you are ready.