Data Report · RedactSure Research
Chris Sowa · Founder, RedactSure
Published
Last updated
Can an AI Agent Process a Refund in Stripe Without Seeing the Card Number?
The refund does not need the card number: Stripe sends it back to the original payment method and returns only the card type, the last four digits and the expiry date. Check what the rest of the dashboard shows the model, because the API keys page, the identity results and the dispute evidence hold the sensitive values.

A refund is the rare payment task that starts without a card number. The money moves back along the path it came in: an operator opens the payment in Stripe, chooses Refund payment, leaves the amount at the full charge or types a partial one, picks a reason and submits. The number was collected at checkout, inside a frame served by Stripe, and what the account keeps is a card type, four digits and an expiry date. That sequence answers the title in the narrow sense and leaves the wider question open, because the dashboard session that issues a refund also opens the customer record, the API keys page, the payout balance and a dispute form. A finance team that connects an agent to that session is deciding what every one of those screens shows a model, and a refund that looks harmless because it needs no card number can still leave the keys page, the balance and the identity results one click away in the same run. Two questions get separated in that shift: who may act on a payment, which Stripe answers with roles and keys, and what the acting model is shown, which its pages leave to the screen. The record type here is a refund by payment ID, worked through the screens Stripe documents.
Key findings
- For a refund agent to be governed rather than trusted, the values on the rendered payment and refund screens would have to be replaced with consistent tokens before any model reads them, so the run works from PAY_8841, CUST_014 and CARD_4417 (What Is Render-Layer Tokenization?).
- It would also require a named person approving each refund above a set amount, and a record that shows what the model read on the screen beside the name of the person who released the money (What Is Supervised Delegation?).
- Stripe's refund, role and key pages do not state what a model reading the dashboard receives; they document the flow a person follows and the permissions the account grants (Stripe, Roles, 2026).
- Stripe's refund page states that "By default, you'll issue a full refund", that "For a partial refund, enter a different refund amount", and that a refund "can only be sent back to the original payment method used in a charge" (Stripe, Refund, 2026).
- Stripe's integration guide states that it returns "the card type, the last four digits of the card, and the expiration date", and that "This information isn't subject to PCI compliance" (Stripe, Integration, 2026).
- Stripe's key documentation states that a live key is displayed "one time" and that restricted keys tagged for an autonomous agent "are automatically subject to approval rules" for payouts, refunds and configuration changes (Stripe, API keys, 2026).
What does an agent read on a Stripe refund screen?
Stripe's Dashboard route starts on the Payments page, where the operator finds the payment, opens the overflow menu and selects "Refund payment" (Stripe, Refund, 2026). The form that follows works from that payment: it offers a full refund by default, a partial amount the operator types, a reason from a list, and a note that becomes mandatory when the reason is "Other" (Stripe, Refund, 2026).
The record type for this question is a refund by payment ID. An agent is asked to refund $48.00 against PAY_8841 for a customer who was charged twice. It opens the payment, checks that the amount and the payment match the ticket, leaves 48.00 in the field, selects a reason and submits. Every value it needed was on that page, and the identifier that ties the work to the money is the payment ID, not any card detail.
What the model receives is the payment and its refund form: the amount, the card type and the last four digits, the reason and the note. That is a thin record, and it is still a record: an agent that reads the page to confirm it has the right charge holds those fields for the rest of the run, and a summary or a note it writes can repeat them. The card number is absent. What the same session reaches next is not thin.
Stripe also splits the paths in a way an agent has to know. Bulk refunding takes full refunds only, since "You can only issue full refunds in this way; partial refunds must be issued individually" (Stripe, Refund, 2026). An agent asked to refund part of a batch is working against the page unless it issues each refund on its own. Is It Safe to Let an AI Agent Issue Refunds? covers the wider refund question, and the screen it describes is the one an agent reads here.
Where does the card number sit if the agent never reads it?
The number is collected before the merchant's page sees it. Stripe's Card Element quickstart says the library keeps card details from reaching the server, asking merchants to use it "to stay PCI compliant by ensuring that card details go directly to Stripe and never reach your server", and that "Stripe embeds an iframe to securely collect card details" (Stripe, Card Element, 2026). The digits travel from the buyer's browser to Stripe inside that frame. What the account receives is a payment object and three card fields: "the card type, the last four digits of the card, and the expiration date" (Stripe, Integration, 2026).
A refund uses none of them. The destination is fixed by the original charge, the amount is bounded by it, and the agent supplies an identifier, a number and a reason: "you can't refund a total greater than the original charge amount" (Stripe, Refund, 2026). No field on the refund form takes a card number, because the processor already knows where the money came from. The number belongs to the checkout integration and to a payment method change, and both are different screens with different controls.
That removes one value and leaves the record. A refund screen still draws the payment, and the session that drew it can open the screens beside it. The card number is the value a PCI assessment asks about; the identity results and the dispute evidence are the values a privacy review asks about, and they sit in the same dashboard. What Is Least Exposure? sets out the distinction that matters here: an agent can satisfy least privilege in full and still hold every record a page showed it.
What do the vendors themselves say?
The pages reviewed describe a refund flow built for a person at a keyboard, and they describe the account's controls in terms of roles and keys. None of them states what a model reading the screen receives.
Stripe's refund page covers the Dashboard route, the default full refund, the partial amount, the reason list with its mandatory note, the bulk path that takes full refunds only, and the fixed destination (Stripe, Refund, 2026). Its role page sets who may act: an Administrator "can see and manage almost everything", and roles stack, because "If you assign a user multiple roles, they're assigned all the permissions of each individual role" (Stripe, Roles, 2026).
Its key page carries the one approval rule that names refunds: restricted keys tagged for an autonomous agent "are automatically subject to approval rules" requiring a designated reviewer for payouts, refunds and configuration changes (Stripe, API keys, 2026). That is a control on the calls a key makes. It does not attach to a Dashboard session, and it says nothing about what the page draws.
| Dimension | Stripe, per its documentation | What a buyer should verify |
|---|---|---|
| How a refund starts | Payments page, overflow menu, "Refund payment" (Stripe, Refund, 2026) | Which role the agent's login carries |
| The amount | Full by default; a partial refund is typed; capped at the original charge (Stripe, Refund, 2026) | Whether a cap exists outside the page |
| The destination | The original payment method used in the charge (Stripe, Refund, 2026) | Whether any screen offers another destination |
| The card fields held | Card type, last four digits, expiry date (Stripe, Integration, 2026) | Whether those fields are tokens before the model reads them |
| Who may act | A role, and roles stack (Stripe, Roles, 2026) | Whether the agent has a role of its own |
| What the model receives | Not stated on the page | What the model reads, field by field |
Read together, the pages describe a screen that is safe for the card number and silent on the model. The approval Stripe documents attaches to a key; the page an operator uses carries no such rule.
What else does the dashboard show the agent?
The refund is one screen in a session that can open others. Stripe's key page states that a live key is displayed "one time", so the creation screen is where an agent's model receives a credential it can repeat, and an agent given an existing login can reach every screen that login can open (Stripe, API keys, 2026).
Two more screens carry personal data. Stripe's Identity page puts sensitive verification results behind restricted keys, which cover "verifications processed in the last 48 hours" (Stripe, Verification, 2026). A disputed refund moves the work to a form that allows a single attempt, since "You've only one opportunity to submit your response" (Stripe, Disputes, 2026), and the evidence a submission carries includes customer_name, customer_email_address and shipping_address (Stripe, Dispute object, 2026).
The split is between the screen that moves money and the screens that hold identity. A refund needs the payment ID, so an agent can be scoped to the refund flow and still be a risk, because the same account reaches the keys page and the balance. What Can an AI Agent See in Your Payment Processor Dashboard? maps that surface, Can an AI Agent Manage My Stripe Keys Safely? follows the key creation screen, and Can an AI Agent Dispute a Chargeback Without Seeing the Cardholder's Data? takes the evidence form.
What should a team ask for in writing before an agent refunds?
Start with the screen. Ask what the model receives from a rendered refund screen, field by field: the amount, the card type and the last four digits, the reason and the note. Then ask the same question of the keys page, the identity results and the dispute form. A vendor that answers only for the API has answered a different question, because the Dashboard path is the one a support agent uses.
Ask which screens the session can open, and what stops the run from reaching the keys page or the balance. Stripe's role page is the place to start, since an Administrator "can see and manage almost everything" and roles stack (Stripe, Roles, 2026). A role narrower than the team's is the minimum, and it is still not a control on what a page draws.
Ask who approves a refund above an amount, and what the record shows. Stripe's approval rule for an agent-tagged key covers payouts, refunds and configuration changes, and it governs calls made with that key (Stripe, API keys, 2026). A refund made through the Dashboard sits outside it.
The research record explains why the questions matter. OWASP states that "Indirect prompt injections occur when an LLM accepts input from external sources, such as websites or files" (OWASP, 2025), and a customer's note or a free-text reason is that input here. A design-patterns paper proposes "principled design patterns for building AI agents with provable resistance to prompt injection" (Beurer-Kellner et al., 2025), the standard a refund agent reading customer text would have to meet.
What does a governed environment change?
A governed environment acts where a page is rendered, before any model reads it. Values a policy names are replaced with consistent tokens for the whole run, so the agent works the refund from PAY_8841, CUST_014 and CARD_4417, and a card token stays the same on every screen the run opens. Real values resolve only at an approved destination, at the moment of an approved action. A named person approves each refund above a set amount, and every screen, action and approval is written to a record that exports to the organization's own monitoring (What Is an AI Control Record?).
For this question it changes the half Stripe's pages leave open. The card number is already out of reach on the refund path; the environment extends that to the record around it, so the payment renders as PAY_8841, the card fields as CARD_4417, and the keys page as KEY_014 instead of a live credential. The half it does not change is the amount, which stays a number the model chooses, so a cap and an approval sit beside the render-layer control.
Its scope is the rendered page. An agent that calls Stripe's refunds endpoint with a restricted key is outside a browser control and inside that key's own approval rules, and an agent that reads payment IDs from a file in the local filesystem is outside both.
What the record shows
What reaches the model is settled on the rendered page, before any model reads it, and on a Stripe refund that answer is narrower than the title suggests. The card number is not on the screen: Stripe collected it in a frame at checkout, returns the card type, the last four digits and the expiry date, and sends the money back to the original payment method. What the refund screen does carry is the payment, the amount and the card's last four digits, and the same dashboard session reaches the keys page, the balance and a dispute form. Stripe documents the flow, the roles and one approval rule for keys, and it does not state what the model reads. A support lead can check this on one payment: open a test charge in a sandbox account, have the agent prepare a refund, and compare the page the model received with the approval record and the processor's refund.
Methodology and limitations
This page rests on Stripe's refund, dispute, role, key, identity and integration security documentation, read in full, plus OWASP's prompt injection entry and one research preprint. Vendor and standards pages were read as of October 22, 2026, and each Sources line carries the date for its page. Public documentation read in full gives a sound view of where each product applies its control, and the refund pages are the record of the flow an agent follows.
None of the products described here was tested for this page. "Not described in the pages reviewed" means that the recorded pages for a product do not carry the statement, not that the product cannot do it. Vendor features change, and the page carries its date. RedactSure is deploying now with enterprise and government customers. The example describes a record type, a refund by payment ID, not an organization. Determinations about whether a refund flow meets a card-scheme, consumer-protection or records requirement belong to counsel, assessors and the organization's own security and compliance officers, and nothing here replaces a pilot of one workflow on the organization's own screens.
Frequently asked questions
Can an AI agent process a refund in Stripe without seeing the card number?
Yes, when it works from the payment rather than the card. A Stripe refund is issued against a payment the operator finds on the Payments page, the amount is a full or partial figure bounded by the original charge, and the money returns to the original payment method. The card number was collected by Stripe at checkout inside a frame and the account holds only the card type, the last four digits and the expiry date. The agent needs the payment ID, an amount and a reason.
What does the model see on a Stripe refund screen?
The payment and a refund form. That means the charge amount, the card type and last four digits, a reason list and a note field. It does not include the card number, which is not on the page. Stripe's refund documentation covers the flow and does not describe what a model reading the page receives, so the field list has to be confirmed on the rendered page rather than inferred from the API.
What else does the same session let the agent read?
The screens beside the refund. Stripe's key page shows a live key once at creation, its Identity page puts sensitive verification results behind restricted keys, and a dispute carries customer_name, customer_email_address and shipping_address in its evidence fields. None of those pages replaces the refund, and an agent scoped to refunds can still reach them when the login allows it. Scope the login to the screens the task needs.
Who should approve an agent's refund?
A named person with authority over the money, above an amount the team sets. Stripe's approval rule for restricted keys tagged for an autonomous agent requires a designated reviewer for payouts, refunds and configuration changes, and that rule attaches to calls made with the key rather than to a Dashboard session. A refund prepared through the Dashboard needs an approval the page does not provide, with the approver's name attached to the specific payment.
What record should a Stripe refund leave?
One that pairs the processor's refund with the page the model read. Stripe's record shows the refund, its amount, its reason and the payment it belongs to, which proves the money moved and says nothing about what the model saw before it chose. A support team needs the rendered screen, the amount the agent proposed, the approver's name and the refund identifier together, so a dispute a month later starts from a written record rather than a reconstruction.
Is the card number ever in scope for a refund?
Not on the refund path. Stripe collects card details in a frame from its own domain, keeps them, and returns the card type, the last four digits and the expiration date to the account. A refund then returns the money to the payment method that was charged, which needs no number from the agent. The number is in scope for the checkout integration and for a payment method change, and both are different screens with different controls.
How RedactSure Keeps the Card Number Off the Refund Screen
A refund needs no card number, and the dashboard session that issues one can still open the keys page and the identity results. Stripe's restricted keys carry an approval rule for refunds, a control on calls made with the key rather than on what the page shows the model (Stripe, API keys, 2026).
The environment that enforces this is built by RedactSure, an AI agent controls, governance and data protection company.
Before: the agent reads the payment, the last four digits and the reason list, then submits a $48.00 refund. Inside: the page renders CUST_014 and CARD_4417, the refund runs on PAY_8841, and the real payment method receives the money when a named reviewer approves.
RedactSure is deploying now with enterprise and government customers.
Everyone else controls where data can go. RedactSure controls what the AI can see.
See it on your own workflow
A refund screen decides what the model carries through the rest of the payment run. Bring one refund task and see, with test values, what the model reads and who approves the release. Book a demo