A timeout, then a retry
The first refund went through, the response was lost, and the agent sent it again. The customer is refunded twice.
Infrastructure for AI agents
Your AI agent decides a customer deserves a refund. Onceproof checks it against your policy, sends it to Stripe exactly once, confirms what Stripe actually did, and signs a receipt. When the answer is uncertain, it says so, and never retries blindly.
Onceproof is software for governing AI agents. It never processes, holds or moves money: refunds and credits run in your own Stripe account, under your own Stripe agreement.
The problem
A refund request that times out may or may not have happened. Logs record what the agent tried, not what Stripe did.
The first refund went through, the response was lost, and the agent sent it again. The customer is refunded twice.
Stripe accepted the refund, then it failed at the bank. The agent already told the customer it was done.
Finance, an auditor or the customer asks. There is no record anyone can check independently.
How it works
Your agent never holds the Stripe key. It calls Onceproof, which holds a restricted key and owns execution.
Two ways to start
No rewrite and no new SDK. Begin with nothing to integrate, then put the agent behind Onceproof when you are ready.
Every 15 minutes Onceproof reads your Stripe refunds and emails you when it finds one of these:
Finds problems after they happen. Takes about three minutes.
import stripe
stripe.api_key = "op_live_…" # was: sk_live_…
stripe.api_base = "https://onceproof.com" # was: api.stripe.com
stripe.Refund.create(charge=charge_id, amount=4900) # unchanged
The console
Operators see what is verified, what is uncertain and what needs a person. Finance gets receipts they can check. This is the real product, running on simulated Stripe data.
Unknown is not failed
When Stripe doesn't answer, the refund is marked Unknown. New refunds on that charge are blocked, and Onceproof looks the refund up in Stripe by its own id. It re-sends only if the refund is proven absent. Most unknowns resolve in seconds; the rest go to a person with the evidence.
This panel uses the same component operators see in the console.
We cannot yet confirm whether this refund exists in Stripe. It is not treated as failed, and it will not be retried until the external state is known.
Verification
After Stripe answers, Onceproof reads the refund back and compares it with what was asked. A mismatch goes to a person; nothing is called "verified" until Stripe shows it.
Signed receipts
Every verified refund gets a receipt signed with Onceproof's key: what was asked, who approved it, what Stripe shows. Change one character and the check fails. Give it to finance, an auditor or the customer.
Control
Limits and approval thresholds live outside the model. Above a threshold, a person approves the exact amount; the server re-checks state, policy and parameters when they click.
Already in production? Start in shadow mode: report the refunds your agent already makes, and Onceproof finds orphans, ghosts and duplicates without touching execution.
Developers
Point your agent's Stripe library at Onceproof, or call Onceproof's API directly for the full answer: what happened, and whether the agent may act again. The console walks you through it, with your key filled in.
import stripe
stripe.api_key = "op_live_…" # the agent's Onceproof key
stripe.api_base = "https://onceproof.com"
try:
stripe.Refund.create(charge="ch_3Q9xYz", amount=4900)
reply("Your refund is on its way.")
except stripe.error.InvalidRequestError as e:
if e.code == "onceproof_pending_approval": reply("A teammate is confirming it.")
elif e.code == "onceproof_blocked": reply("I can't refund that one.")
const stripe = new Stripe("op_live_…", { host: "onceproof.com" });
// unchanged: Onceproof checks, sends once, verifies
await stripe.refunds.create({ charge: "ch_3Q9xYz", amount: 4900 });
POST /v1/actions
Authorization: Bearer $AGENT_KEY
{ "action_type": "stripe.refund.create",
"target": { "charge_id": "ch_3Q9xYz" },
"params": { "amount": 4900, "currency": "usd" },
"business_key": "zendesk:48213:ch_3Q9xYz" }
→ { "id": "act_…", "state": "unknown", "retry_safe": false }
Why you can trust it
A restricted key stays inside Onceproof. Live keys are refused unless you opt in.
Stop any agent instantly; resuming needs an admin.
Viewers, approvers and admins. Approvals are recorded as the signed-in person.
Every state change is hash-linked; the console recomputes the chain.
Ed25519 receipts; HMAC-signed events to your systems, private addresses refused.
Stripe refunds and credits only. No single sign-on yet; we say so.
You connect Stripe with a restricted key that can only read charges, refund and credit. It is stored encrypted and never shown again; full secret keys are refused.
HttpOnly cookies with CSRF protection, email verification, lockout after failed attempts, session list and sign-out everywhere.
The public demo lets you lose a Stripe response on purpose and watch the recovery.
Authenticator apps with recovery codes for every account, and required for our own support staff.
Start in watch mode: Onceproof only reads your refunds and reports, and changes nothing until you connect an agent.
Our security policy and security.txt say how. Email hello@onceproof.com.
Pricing
Only refunds and credits verified in Stripe count. Blocked and failed actions are free, and a retry is never counted twice. After the included actions, 5¢ each.
For a first agent in production
$49/month
500 verified actions included
Start 14-day trialMost popular
For teams running several agents
$199/month
5,000 verified actions included
Start 14-day trialFor high volume and many teams
$599/month
25,000 verified actions included
Start 14-day trialQuestions
No. Refunds and credits run on your own Stripe account. Onceproof decides whether an action is allowed, sends it to Stripe once, and checks the result. It never holds funds.
The refund is marked Unknown and further refunds on that charge are blocked. Onceproof looks the refund up in Stripe by its own id and re-sends only if it is proven not to exist. If it cannot tell, a person decides, with the evidence.
Watch mode starts as soon as you connect Stripe with a restricted key, in about three minutes. To protect refunds, an agent that uses a Stripe library changes two settings (key and address); otherwise it makes one HTTP request. Not a developer? Send the setup to yours from the console.
Yes. Use the public demo, connect a Stripe test-mode account, or start in watch mode, where Onceproof only reads and reports on the refunds your agent already makes.
Only Stripe refunds and customer balance credits. No other payment providers or single sign-on yet. Two-factor sign-in is available for every account.
Start a 14-day trial with no card, connect Stripe in a few minutes, and let watch mode check your refunds today. Or open the demo and lose a Stripe response on purpose.