PayProof

Catch bad AI refund decisions before they cost real money.

By Aniket Prasad

PayProof project artwork

A refund agent can sound confident about a decision and still get the amount wrong. PayProof compares what the agent approved with merchant policy and reads back the payment records to check what actually happened.

Testing the same cases against different decisions

The project runs a planted cumulative-limit bug, a blanket refusal, and a corrected reference against the same inputs. The defective version exposes excess refunds. The blanket refusal catches the opposite problem, where the agent avoids a bad refund by also rejecting legitimate ones.

Each run keeps the policy, case inputs, approvals, and evidence together so a developer can review the result after changing a prompt, model, or implementation.

Checking what settled

The local simulator makes cases repeatable. The PayPal Sandbox adapter adds an independent readback from the payment provider. In a recorded Sandbox run, the seeded defect refunded $5 above the policy limit, while the corrected controls passed the tested cases.