5. Does this order look like fraud
A stolen card is usually used fast and for a lot, often on an account that has never ordered
before. In this chapter PlaceOrder asks whether an order looks like fraud before it reserves any
stock or charges anyone, and refuses the ones that do. The answer comes from a rule today, and the
train is written so that a model can give it tomorrow without the train changing.
By the end, every answer is recorded with the run that asked, and a stricter rule is asked beside the live one on every order, so we can see where the two would disagree before trusting the new one.
This chapter starts from the end of chapter 4.
In this chapter
- A question, not an if
- The question and what it is asked about
- The tracks
- Register Shopfront in one place
- Run it
- Read the decisions
- Test it
SDK Reference
Gate | Decide | AddDecisionRecording | Write a decider | Try a decider in shadow | Test a train's decisions