Looking Up Payment History Mid-Conversation With Razorpay or Stripe
A customer writes in: "Was I charged twice this month?" The agent knows the answer lives in Stripe or Razorpay — not in the helpdesk. So they copy the email, open a new tab, log into the payment dashboard, search, squint at a list of transactions, mentally filter the test charges and the failed retries, then tab back to the ticket to type a reply. Ninety seconds, minimum. Multiply that by every billing question in the queue and you have a real tax on resolution time — and an answer the agent half-remembers by the time they're writing it.
The fix most teams reach for is a sidebar app that mirrors payment data next to the ticket. That helps. But it still asks the agent to read a panel, interpret it, and translate it into a sentence. This post is about a different shape: an AI agent that looks up the payment history itself, mid-conversation, when asked — and hands back a clean summary (or drafts the reply) without anyone leaving the ticket. Across Stripe and Razorpay, which matters more than it sounds, because the popular sidebar apps cover one and not the other.
Macha isn't a helpdesk. It's an AI agent layer that sits on top of the helpdesk you already run — Zendesk, Freshdesk, Gorgias, or Front — and connects to the tools where the real data lives. Payment history is the canonical example.
The job to be done: payment context, on demand, in the ticket
Strip away the tooling and the task is simple: given a customer, show me what they've paid, when, how, and whether anything went wrong — without making the agent (or the AI) go fishing.
Macha models this as a documented use case, Look up a customer's payment history. The agent (human or AI) asks in plain language; Macha resolves the customer in the payment provider, lists their recent payments, and summarizes. Here's the worked example straight from that flow:
Agent prompt: "Can you check what payments this customer has made? Their email is [email protected]." Macha: Found Stripe customer: Alex Johnson ([email protected]) · Retrieved 4 payments from the last 90 days. Payment history for Alex Johnson ([email protected]): - Mar 1 — $99.00 (Succeeded) — Visa ·4242 - Feb 1 — $99.00 (Succeeded) — Visa ·4242 - Jan 1 — $99.00 (Succeeded) — Visa ·4242 - Dec 1 — $99.00 (Succeeded) — Visa ·4242 Monthly subscription, all payments successful. Need me to look into anything specific?
Two tool calls did that — Get Customer, then List Payments — and the agent never left the conversation. The important nuance is the last line: Macha doesn't just dump a table, it reads the table ("monthly subscription, all successful") the way a senior agent would. That interpretation is the part a sidebar panel can't do for you.
Stripe and Razorpay: what Macha can actually pull
Both connectors are live and authenticate with a single API key. They expose read actions for exactly this job, plus write actions for when a lookup turns into a fix.
| Stripe | Razorpay | |
|---|---|---|
| Find the customer | Get Customer · Search Customers | Get Customer |
| Read payments | List Payments · Get Payment | List Payments · Get Payment · List Orders |
| Act on it | Create Refund · Create Charge · Create Customer | — |
| Auth | API Key | API Key |
For the lookup itself, the two map cleanly: resolve the customer, then list their payments filtered by status, amount, or date range, and pull a single payment's full detail when the customer is asking about one specific charge. Razorpay adds List Orders, which is handy when the question is order-shaped ("did my order go through?") rather than payment-shaped. Stripe goes further on the action side — Create Refund and Create Charge — so the same agent that looked up the history can process the refund when policy allows.
The Razorpay point deserves emphasis. Most Zendesk payment sidebar apps grew up around Western gateways: ChargeDesk, for instance, advertises 14+ gateways but does not list Razorpay among them. If you bill in India (or anywhere Razorpay is your processor), the off-the-shelf "Stripe in your sidebar" route simply doesn't cover you. Macha treats Razorpay as a first-class connector with the same lookup pattern, so the support experience is identical regardless of which processor sits underneath.
How you wire it up
There's no code. The setup is three steps, and the third is where the judgment goes.
1. Connect the payment provider. Add Stripe or Razorpay from the connectors gallery with an API key. If you run multiple businesses or environments, Macha now lets you connect multiple accounts of the same connector — e.g. three separate Stripe accounts — each with its own credentials and name, so the agent can target the right one.
2. Give the agent the right tools. On the agent that handles billing tickets, attach the specific payment actions it's allowed to use. For a pure lookup agent, that's Get Customer and List Payments — nothing that can move money. Scope matters: an agent that should only read never gets Create Refund in its toolset.
3. Write the instruction. Tell the agent when to do this and how to present it — e.g. "When a ticket asks about charges, payments, or billing, find the customer in Stripe by their email, list their payments from the last 90 days, and summarize amounts, dates, statuses, and the card used. Flag anything that failed or looks duplicated. Do not issue refunds — draft a note for the agent instead." That last sentence is your guardrail.
Two ways to deploy it: assist vs. resolve
The same lookup powers two different operating modes, and you'll likely want both.
Agent-assist (human in the loop). Macha runs the lookup and surfaces the summary for your agent, who reads it and replies. This is the safe default for anything touching money: the AI does the fetching and the reading, the human owns the send. Use it when the next step might be a refund, a credit, or a judgment call.
Resolve (autonomous). For low-risk, read-only questions — "what card is on file?", "when does my plan renew?", "did my last payment go through?" — the agent can answer the customer directly and close the loop. No money moves, so the blast radius of a mistake is small.
The line between them is exactly the read/write line in the tools table above. Keep refunds and charges behind a human until you've watched the read-only behavior in production for a while.
How this compares to a payment sidebar app
Sidebar apps (ChargeDesk, Stripe by Zenplates, eOne's connector) are a mature, reasonable answer to this problem, and for some teams they're the right one. It's worth being honest about the trade:
| Sidebar app | Macha agent | |
|---|---|---|
| What the agent sees | A panel they read and interpret themselves | A written summary, already interpreted |
| Trigger | Always-on panel on every ticket | On demand, when the question calls for it |
| Can answer the customer for you | No — surfaces data only | Yes (assist) or autonomously (resolve) |
| Stripe | Yes | Yes |
| Razorpay | Often no (e.g. not in ChargeDesk) | Yes |
| Beyond payments | Payments only | Chains payment + helpdesk + Shopify + docs in one flow |
| Typical cost basis | Per agent/month (Zenplates ≈ $4.95/agent/mo, per Pluno's 2026 guide) | Per AI action (credits) |
The honest summary: if all you want is a static panel of Stripe charges next to every Zendesk ticket and you bill on Stripe, a per-agent sidebar app is cheap and does the job. Macha earns its place when you want the lookup to be active (it answers, not just displays), when you bill on Razorpay, or when the payment lookup is one step in a longer chain — pull the order from Shopify, the payment from Stripe, the policy from your docs, then draft the reply.
(Competitor prices are from third-party sources as of June 2026 and may have changed — verify on the vendor's own pricing page.)
What it costs on Macha
Macha is credit-based, and credits are spent per AI action, not per ticket or per "resolution." A single payment-history lookup is a couple of tool calls plus the model's reasoning — credits scale with the model you choose, roughly 0.5–9 credits per action by model, with the default GPT-5.4 Mini at 1. Because the work is bounded (find customer, list payments, summarize), it's one of the cheaper things an agent does. There are no per-agent seat fees on the lookup itself. See the pricing page for current plans, and note that the Stripe and Razorpay connectors are included as standard integrations.
Watch-outs and when not to use this
This is genuinely useful, but it isn't magic. Set it up with these in mind:
- Identity resolution is the weak link. The lookup is only as good as the email match. If the customer writes from a different address than the one on their Stripe/Razorpay record, Get Customer can come back empty or — worse — match the wrong person. Instruct the agent to confirm the match (name + last-4) before trusting it, and to ask for the billing email when the ticket email doesn't resolve.
- Keep money-moving actions human-gated at first. Don't hand a new agent Create Refund or Create Charge on day one. Run read-only, watch it, then expand scope deliberately.
- PCI and PII discipline. Macha surfaces what the provider returns — masked card last-4, never full PANs (Stripe and Razorpay don't expose those by design). Still, payment summaries are sensitive; keep them in agent-facing notes, not in messages that might get forwarded, and respect your data-handling policy.
- Multiple accounts need clear naming. If you've connected three Stripe accounts, the agent has to target the right one — name them unambiguously so the lookup doesn't search the wrong business.
- A static panel may simply be enough. If your team only ever needs "show me the charges" on Stripe and never wants the AI to interpret or act, a sidebar app is a simpler, cheaper fit. Use the right tool.
FAQ
Does this replace my Stripe or Zendesk? No. Macha sits on top of both. Your payments still live in Stripe or Razorpay; your tickets still live in your helpdesk. Macha is the AI agent layer that reads across them and acts.
Which helpdesks does this work in? Zendesk, Freshdesk, Gorgias, and Front. The payment lookup behaves the same way regardless of which one you run.
Can the agent issue a refund after looking up the history? On Stripe, yes — Create Refund is available — but only if you attach that tool and (recommended) gate it behind human confirmation. Razorpay's connector is read-only today (Get Payment, List Payments, List Orders, Get Customer).
How far back does the history go? You control it in the instruction. List Payments filters by date range, status, and amount, so you can scope to "last 90 days," "failed only," or a single charge via Get Payment.
What about test charges and failed retries cluttering the result? Tell the agent to filter them — e.g. "exclude test-mode and only show succeeded or failed real payments." The model applies the filter as it summarizes, which is the advantage over a raw panel.
How much does a lookup cost? It's a per-action credit cost — a few credits depending on the model (default GPT-5.4 Mini = 1 credit per action), with no per-agent seat fee on the lookup. See pricing.
Try it
If billing questions are quietly eating your handle time, this is one of the fastest wins to stand up: connect Stripe or Razorpay, attach Get Customer and List Payments to your billing agent, and write one instruction. Start a 7-day free trial, no credit card required, or read the integration docs for the full walkthrough.
Written by Abbas (Customer Support & AI, Macha) · Reviewed by Ankeet Guha (Co-founder & CTO) · Published 2026-06-24 · Last updated 2026-06-24.
Resolve tickets automatically with AI agents
Macha's AI agents work on top of the help desk you already use — no code.
Shopify
Stripe
Slack
Notion
Google Workspace
Confluence

