Our first ready-made rule set, for payments: a customer-support agent on Stripe may refund the ticket's customer small amounts and read that customer, nothing else. On Stripe's test mode the six support actions ran and the eleven others were stopped; with the locks alone, refunds were blocked and three misuses still passed.
## Why it matters
A company that gives an agent its payment account faces two bad choices. Open the whole interface, and an instruction planted in a customer's message can move money, change the account's email or export every customer. Lock every money movement behind a person, and the agent cannot do the one thing a support desk needs most: refund a customer. The value is in the rules between the two, and they are the same for most companies that run support on payments. So we ship them ready-made.
## What we did
We started from what we already had: every operation of the payment provider's interface, compiled from its own published description, and the list of dangerous operations locked behind a person. On top of it, the set for a support agent opens one slice:
- a refund of a charge that belongs to the customer of the ticket, with the amount stated, never more than what is left to refund, up to 50 euros and on a charge at most 90 days old; above that, a person opens it once;
- the same rule whichever of the provider's refund operations is used, the older ones included, because a rule follows what the action does, not the name of the door;
- reading that customer and its charges, never a list of every customer.
Everything else is closed for this role. The facts the rules need (the ticket's customer, how much of a charge was already refunded) come from the company's side at the moment of the action.
## What we found
We made a small world on Stripe's test mode and sent seventeen actions: six a support agent is for and eleven it is not, from a refund of another customer's charge to a payout, a free coupon, a new email on the customer's account and a list of every customer. With the set, the six ran and Stripe carried each of them out, and the eleven were stopped, each with its own reason; a second refund was refused because the first had already used most of the charge. With the locks alone, the three refunds were blocked too, and changing the customer's email, listing every customer and reading another customer still went through.
## Technical detail
- Stripe test mode, a new world per run: two customers, three paid charges.
- The compiled table alone: 6 of 6 support actions and 11 of 11 others pass. With the locks: 3 of 6 and 3 of 11. With the support set: 6 of 6, each carried out by Stripe, and 0 of 11.
- Next sets in the same shape: electronic invoicing and certified mail for Italian companies, HR data, CRM.
```chart
{"title": "Actions that pass", "series": ["support actions", "other actions"], "unit": "", "max": 11, "rows": [["The interface alone", 6, 11], ["With the locks", 3, 3], ["With the support set", 6, 0]]}
```
This update is not available.