Ecommerce Fraud Prevention With AI: Rules Scores and the Checkout Decision
Your store sees fraud as a slow squeeze rather than a single event. Approval rates slip, good customers get declined, and the chargebacks from the orders you did accept arrive weeks later. Ecommerce fraud prevention with AI is meant to break that squeeze, but the model only helps when it sits inside a decision your team can explain. This piece covers where the model sits in an ecommerce checkout, how it works next to plain rules, and what to watch once it starts deciding.
The Merchant Risk Council 2025 Global eCommerce Payments and Fraud Report surveyed more than 1,000 ecommerce merchants across more than 35 countries. Among them, 47 percent named refund abuse as the top fraud attack overall, 45 percent named real-time payment fraud as the next biggest attack, and 57 percent reported increasing refund and policy abuse rates. Source: Merchant Risk Council, 2025 Global eCommerce Payments and Fraud Report
What AI fraud prevention does at the checkout
An AI fraud prevention check runs at the moment the shopper submits payment. It takes the transaction the shop already has, the card and address details, the email and phone, the IP the order came from, and the recent behavior around that customer, and it returns a risk score plus a suggested action. The score is a ranking, not a verdict. The action tells your policy what to do next, and your policy is what actually decides.
Greip's payment endpoint returns this shape: a score from 0 to 100, a risk level of low, medium or high, and a recommendation of accept, review or reject. The same response carries the rules that fired, so the order can be reviewed against reasons instead of a bare number. That combination is the core of any fraud detection software you buy. If a provider cannot tell you which signals raised the score on a given order, the score is hard to defend in a dispute and hard to improve when it goes wrong.
Machine learning fraud detection matters here because the inputs change every week. A rule says the same thing until someone edits it. A model reweighs its inputs as new orders arrive, so the check keeps alerting on patterns nobody wrote a rule for yet. The other side of that coin is drift, and it gets its own section below.
Rules still do the first pass
Not every decision needs a model. Some checks are a simple yes or no with no judgement in them. Card verification results, expired card dates, mismatched CVV, a card that the network says is closed, an IP on a blocklist your team maintains. A checkout form can run those in milliseconds without calling a model at all.
Velocity is the same kind of check. Counting how many attempts came from one card, one email or one IP in the last hour catches card testing bursts that a single transaction never shows. That counter work is covered in our piece on velocity checks, and it pairs well with a model because the counter output becomes one of the model's inputs.
Rules earn their keep in three places. They are cheap, they are instant, and when one fires you know exactly why. Their weakness is that they only catch what someone already thought of, and fraudsters test for the gaps. The model covers the middle of the gray zone where no rule fires and the transaction still looks wrong in ways that are hard to write down.
The three outcomes and what each one costs
Every checkout check ends in one of a small set of outcomes. The labels differ by provider, but the shape is stable: approve, send the order to a human, or stop it. A fourth outcome appears in many stores too, which is to ask the shopper for extra proof before deciding.
| Outcome | What happens | What it costs you when it is wrong |
|---|---|---|
| As approve | The order is captured and fulfilled | A chargeback and the goods, if the order was fraud |
| Review | The order waits for a person to decide | Delay and review labor, plus an abandoned cart if the shopper does not wait |
| Block | The payment is refused at the form | A good customer lost for good, if the order was genuine |
| Challenge | The shopper is asked for extra proof or a second factor | Friction and abandonment on genuine orders, and real protection on stolen cards |
The cost of a wrong block is the one merchants feel least and should weight most. A stolen card order that slips through shows up as a loss you can count. A genuine order you refused shows up as nothing at all, and the customer usually does not come back to tell you why. That invisible loss is where fraud detection software earns or fails its keep, and it is why the review band matters as much as the score.
A challenge step softens the trade. When the model is unsure, asking for a second factor or triggering 3D Secure keeps the good shopper and stops the stolen card. How to set that trigger from a fraud score is covered in our piece on using fraud scores to decide when to trigger 3DS.
Where the model gets its signals
A model cannot score what it is not given, and the ecommerce checkout already produces most of the inputs. The card side gives the issuing country, the card type and the BIN behind the number. The order side gives the amount, the currency, the shipping and billing addresses and the device. The account side gives the email age, the phone, and how often this customer has ordered before.
Network signals add the context the order never shows. The IP address of the checkout session, whether that network is a hosting range or a proxy, and whether the IP country matches the card country all change how a transaction reads. Greip's VPN and proxy detection service covers that network side for signup, login and payment flows. Our post on how machine learning uses risk signals goes through each of these fields in detail, so this article stays on the decision the signals feed into.
Two signals deserve a warning. First, an IP address in another country is normal for travelers, VPN users and staff working remotely. The model should see it as one input among many, not as a verdict. Second, shipping more data is not always better. A field you pass but never use adds latency and a privacy question without improving the score. Send what changes decisions and drop the rest.
Why ecommerce is a hard case for a model
Fraud is a small share of all orders at most stores, and that imbalance shapes everything a model learns. When fraud is rare, the model spends most of its training time looking at genuine orders. Its default answer leans toward approve, and the cases that matter most are the ones it has seen least.
A survey of credit card fraud detection by Lucas and Jurgovsky sets out the same problem for the field: the detection task starts with an unbalanced dataset, and the choice of metric decides what the system is actually good at. A model that is 99 percent accurate can still pass most fraud if fraud is 1 percent of traffic and the model learned to say approve. Accuracy on a benchmark is not accuracy on your checkout.
This is also why vendor demos mislead. A demo set is usually balanced for show. Your traffic is not. The question to ask any provider is what the model does at the threshold your team will actually use, how many good orders it would block for every fraud order it stops, and whether that trade fits your margins.
Attackers change faster than the model
Fraudsters adapt. A sequence that worked last month stops working when the store patches it, and a new sequence takes its place. Lucas and Jurgovsky call this dataset shift, and it is the reason a model that tested well in spring can drift by autumn. Buying habits shift with the season, and fraud strategies shift on purpose.
Payment fraud prevention therefore needs a maintenance plan, not a one time install. Watch the inputs that feed the score, not only the final fraud rate. A sudden change in where orders come from, in the devices used, or in the countries on your cards usually means the traffic changed before the labels did. Chargebacks trail the real damage by weeks, so the fraud rate is always a late signal.
A practical cadence works for most stores. Review a sample of decisions every week, retrain or reweigh when the sample shows misses the model used to catch, and keep a named owner for the check. Retraining is not the only fix. Sometimes the right move is to move a threshold, add a rule for one new pattern, or send one more band of orders to review until the model catches up.
The cost of false positives in ecommerce
Every declined genuine order has a price nobody invoices you for. The customer leaves, the basket is gone, and the lifetime value of that account goes with it. Stores that measure only chargeback losses systematically undercount the damage of a strict model, because the loss they cannot see never enters the report.
That undercount also biases the way teams tune the system. If the only number on screen is fraud stopped, the argument always ends at making the check stricter. Put the other side on the same screen. Track the approval rate, the review queue wait time, and the share of declined orders that never come back. A model that stops more fraud while quietly declining more good shoppers has moved the loss, not removed it.
AI fraud prevention helps most in the middle band, where the transaction is neither clean nor clearly bad. A traveler buying from a hotel, a first time buyer with a new email address, a gift order shipped to another city. Rules have nothing to say about these cases. A score can rank them, and a review queue can give them a human decision instead of a silent decline.
Putting rules and the model together
The working setup for most ecommerce stores is a layer cake. Hard rules run first and stop the clear cases. Velocity counters run next and catch testing bursts. The model scores what is left. Custom rules then let your team carve out exceptions the model should not overrule, such as your own staff testing the checkout or a launch promo that looks like abuse.
Greip's payment fraud analysis service supports that shape directly. Each response carries the rules that fired, the count of rules checked and detected, and a velocity block with 24 hour and 7 day counts per IP, email and phone. Custom rules you define can be applied to the same call. The full request and response shape is in the payment fraud detection endpoint docs.
{
"data": {
"action": "purchase",
"transaction_amount": 120,
"transaction_currency": "USD",
"customer_ip": "203.0.113.10",
"customer_country": "US",
"customer_email": "buyer@example.com",
"customer_phone": "+15555550100",
"billing_country": "US",
"shipping_country": "US",
"payment_type": "cards",
"card_number": "424242",
"mode": "test"
}
}Send the card as the first digits the gateway already sees rather than the full number when your gateway allows it. The point of the call is the risk assessment, and the gateway handles the sensitive parts of the payment.
Shadow mode before the model decides
No store should let a new model decide on day one. Run it in shadow mode first: score every live order, keep the current rules deciding, and log where the two disagree. After four to six weeks you have a real disagreement set to review, with outcomes attached.
Shadow mode answers the questions that matter. How many orders would the model have blocked that the current system approved? Do those orders later charge back? How many genuine orders would it have sent to review, and could the queue have handled them? Those answers are worth more than any accuracy figure in a sales deck.
Greip's endpoint has a test mode for exactly this stage, so the shadow call uses the same request as production. For the full method, including how to score your own closed orders and set exit criteria, see our piece on testing a model on your own traffic.
What to log on every decision
A decision you cannot replay is a decision you cannot defend. Log the score, the risk level and the recommendation on every order. Log the rule ids that fired and the velocity counts behind them. Log which outcome your policy chose and which human approved it when review was involved.
Those logs serve three jobs. They give you the evidence for a chargeback fraud dispute, where the reason codes from the score explain why the order looked risky. They give you the data to review weekly and spot drift before the chargebacks arrive. And they give you the data to retrain or reweigh, because a model can only learn from decisions that were recorded with their outcomes.
Keep the log tied to the order, not to a spreadsheet. When a dispute or an audit asks about one transaction, the answer should be one lookup away.
Questions to ask before you buy fraud detection software
A provider demo shows the model at its best. The questions below ask about your traffic instead. Ask them before you sign, and ask for the answers in writing where the contract allows it.
- Which signals does the score use, and which of my checkout fields do you expect me to send?
- How does the score behave on my traffic, and will you score my past orders so I can check?
- What happens in the review band, and how does your system hand orders to my team?
- How do custom rules interact with the model score, and can my team edit them without your help?
- What drift monitoring do you offer, and what do you tell me when the traffic changes?
- How are blocks and reviews reported, so I can see false positives next to fraud stopped?
- What fields from a blocked order can I use as evidence in a chargeback dispute?
If the answers are vague about your traffic, the demo was the product. A provider that will score your last six months of orders and show the disagreement set is selling you a decision step, not a number.
What is the difference between rules and AI in ecommerce fraud prevention?
Rules are fixed checks that fire the same way every time, such as a failed CVV or a velocity counter over its limit. An AI check scores each transaction from the patterns in the data and returns a risk level with a suggested action. Stores work best with both. Rules stop the clear cases, and the model ranks the gray zone in between.
How does machine learning fraud detection handle new attack patterns?
It picks them up from fresh data instead of waiting for someone to write a rule for them. The cost is drift. Attackers change their patterns on purpose, so a model needs weekly review and retraining or reweighing when the reviewed sample shows misses. Chargebacks are a late signal, so the inputs to the score are the earlier warning.
What should an ecommerce store send to a payment fraud scoring endpoint?
Send what changes the decision. Greip's endpoint takes the action, the amount and currency, the customer IP and country, the email and phone, the billing and shipping countries, the payment type and the first card digits, plus device and user agent when you have them. The response gives a score, a risk level, a recommendation and the rules that fired, which is enough to log and to dispute.
Can AI fraud prevention reduce false declines?
It can, when the review band is used the way it should be. A model ranks the uncertain orders instead of forcing a yes or no, so a traveler or first time buyer gets a human decision or a challenge step rather than a silent decline. Track approval rate and review wait time next to fraud stopped, or the trade stays invisible.
How long should a store run a new model in shadow mode?
Four to six weeks is a practical minimum. That window gives you enough live orders to compare the model against the current system, and enough outcomes to see which disagreements mattered. Set the exit criteria before the run starts, including the review volume your team can handle, so the decision to go live is not argued from the results.
Why do vendor accuracy claims mislead ecommerce buyers?
Because demo sets are balanced and store traffic is not. Fraud is a small share of orders, so a model can score well on accuracy while passing most fraud. Ask what the model does at your threshold, how many good orders it would block for each fraud order stopped, and whether you can check those numbers on your own past orders.
Conclusion
AI fraud prevention for ecommerce works when the model ranks, the rules stop the clear cases, and a human decides the gray zone. Score every order in shadow mode first, log the score and the rules that fired on each one, and judge the system next to approval rate as well as fraud stopped. That setup gives the store a decision it can explain in a dispute and a number it can tune without guessing.
Get started
Start protecting your business today
Our service is trusted by thousands of businesses worldwide.
- 1,000 requests during trial
- Cancel anytime