Is it safe to give an AI agent your credit card?
No, not your real card number. Anything an AI agent can read can leak or be misused through prompt injection, and in the US, letting someone use your card can weaken your fraud protection. Safer options are a hosted checkout link you approve yourself, a capped virtual card, or a payment method built for agents.
The usual reassurance is "your bank covers fraud". That holds up less well when you handed over the card yourself, and that is the part most guides skip. Here is what can go wrong, what the US rules actually say, and what to do instead.
What can go wrong
| Risk | How it happens | What limits it |
|---|---|---|
| Prompt injection | A web page or document contains hidden instructions, and the agent follows them | The agent holds no credential it can spend |
| Card number leak | The number stays in chat history, logs or a tool call | Never type it into a chat |
| Honest mistake | Wrong item, wrong quantity, wrong country version | Approve before paying |
| Duplicate purchase | The agent retries after a timeout | Idempotent checkout, one approval per order |
| Fake store | The agent lands on a convincing scam site | Known merchants, a merchant-locked card |
| Weak dispute position | You gave the agent permission, so the charge may not count as fraud | Keep the approval step, prefer credit over debit |
The first risk is the one that makes agents different from a saved card in your browser. An agent mixes your instructions with content from the outside world, and it can't always tell them apart. Banking-technology company Zeta points out that the usual proofs behind a card payment, a logged-in session and a visible "Pay" action, disappear when an agent transacts on its own.
Will your bank cover it? The word that matters is "authorized"
US law gives strong protection against unauthorized card use. The catch is how the rules define that word. This section summarizes the regulation text and isn't legal advice.
Credit cards (Regulation Z)
Your liability for unauthorized use can't exceed the lesser of $50 or the amount obtained before you notify the issuer. But the same rule defines unauthorized use as use by someone who doesn't have "actual, implied, or apparent authority" and from which you receive no benefit. If you gave an agent your card and it bought the wrong thing, an issuer could argue that the agent had your authority.
Debit cards (Regulation E)
Debit is the weaker position. Liability can reach $50 or $500 depending on how quickly you report, and more if you miss the 60-day statement window. Regulation E also excludes transfers by a person you furnished the access device to, unless you've told the bank that person is no longer authorized. The money also leaves your bank account while you argue about it.
What nobody can tell you yet
Both rules were written with human card users in mind. We didn't find a regulator ruling or court decision on how they apply to an AI agent that was tricked into a purchase. A charge caused by an attacker's injected prompt may well count as fraud, while an agent's honest mistake is more likely to be treated as your purchase. Until that's settled, don't plan on a chargeback as your safety net.
If you've already shared a card and something looks wrong, contact the issuer immediately and tell them the agent is no longer authorized. For debit, that notice is what the Regulation E exclusion turns on. Then replace the card, because the old number may still be in a transcript.
Five safer ways to let AI buy things
Listed from the least exposure to the most.
- Let the agent shop, then buy it yourself. It finds the product and sends you the merchant's page. Nothing payment-related touches the agent.
- Use a hosted checkout link. The agent prepares the order and hands you a payment page. You check the item and total and pay there. This is how cartapi works.
- Use a built-in wallet flow. Some assistants hand off to a payment sheet where you confirm the purchase. Check that it asks every time, and read what it stores.
- Use a capped virtual card. If it must pay alone, give it a card with a low limit, locked to one merchant or category where your provider allows it. Issuers like Stripe Issuing support these controls for businesses.
- Use a network agent credential. Visa Intelligent Commerce describes tokenized credentials and consumer-approved purchase instructions. Visa says the product is still being deployed, so availability will vary.
Our virtual card vs checkout link comparison goes deeper on options 2 and 4 if you're building an agent.
A checklist before any agent pays
- Your real card number has never been typed into the chat.
- You see the merchant, item and final total before money moves.
- There's a hard limit enforced by the payment provider. A limit written in a prompt isn't one.
- The payment method is credit or a capped virtual card, not your main debit card.
- Purchase alerts are switched on for the card.
- You know how to revoke the agent's access, and you've tried it.
- For gift cards and other instant digital goods, you've double-checked first. They're hard to reverse once delivered.
For choosing the numbers, see how to set a spending limit for an AI agent. If your question is about one assistant, see can Claude buy things for you.
How cartapi handles it
cartapi sells digital goods to AI agents: eSIMs, mobile top-ups and gift cards. Its MCP tools search the catalog, create a Stripe-hosted checkout and read order status. None of them accepts a card number, so there's nothing for your assistant to hold or leak. The agent gives you a link, you pay on Stripe's page, and cartapi never receives or stores your card details.
That costs you one click per purchase, and it means cartapi isn't the right tool for an agent that has to buy while you're asleep. We think that's the right trade-off for most personal purchases.
FAQ
Is it safe to give ChatGPT or Claude my credit card number?
Don't paste it into a chat. The number can persist in your conversation history, and an agent with tools may be exposed to malicious instructions. Use the assistant's official payment flow or a checkout page instead.
Am I liable if an AI agent makes a purchase I didn't want?
It depends. US rules limit liability for unauthorized use, but they exclude use by someone with your authority. If you gave the agent your card, your issuer may treat the charge as authorized. How the rules apply to AI agents isn't settled.
Is credit or debit safer for AI agent purchases?
Credit. Regulation Z caps unauthorized-use liability at $50, while Regulation E debit liability can be higher if you report late, and debit takes money directly from your account.
What is the safest way to let an AI buy something?
Have the agent prepare the order and hand you a hosted checkout page. You check the total and pay there, so the agent never holds a payment credential.
Can a virtual card protect me?
It limits the damage. A virtual card with a low cap and a merchant lock can only lose what its rules allow. It doesn't stop the agent making a bad purchase within those rules.
What should I do if an agent made a charge I didn't approve?
Contact your card issuer right away, say the agent is no longer authorized, dispute the charge and replace the card. Then remove the agent's access and check your chat history for the card number.
Try it
Want an assistant that can shop without touching your card? Add cartapi from the install page. Building your own agent? Start with the docs.