3. Every order is recorded
Trax has recorded every run of PlaceOrder since chapter 1, but in memory, so the record went
with the process. In this chapter we move it to Postgres and then give it something worth
reading: payments that fail. By the end, a declined card or a provider that does not answer stops
the order, gives its stock back, and leaves a row that says which junction failed, why, and whether
trying again could help. The receipt link the provider hands back is kept out of every copy Trax
writes.
This chapter starts from the end of chapter 2.
In this chapter
SDK Reference
UsePostgres | SaveTrainParameters | AddJunctionLogger | TraxSensitive | IFailureClassifier | Metadata
Next: 3.1 Start Postgres