← All lab updates

A payment API's rules, read from its own published description and checked against the API itself

Payment services are where an agent's mistake costs money, and they were the one system our gate had not yet checked against a judge that is not ours. Stripe publishes a full machine-readable description of its API. A program turns it into the gate's table of rules, with no rule written by hand. We then sent about 17,000 requests to Stripe in test mode and to the gate. Of the requests Stripe accepted, the gate let through 1,616 of 1,641. Of those Stripe refused because they were badly formed, the gate refused 8,227 of 8,500. Every remaining case has a named cause, all of them, on the refusing side, rules Stripe applies that its own description does not write down.