Universal payments
More and more of your customers will soon pay you through AI agents acting on their behalf, while many will continue to pay themselves. Building and maintaining two separate payment flows, one for people and one for agents, would double the work and split your records.
Universal payments remove that problem. You request payment once, and it can be completed either way. A person pays through a hosted checkout, while an AI agent pays the same request programmatically. Both arrive as the same payment, with the same amount, reference and status, so your records never need to distinguish between them.
Ways to request payment
Accepting a universal payment
Choose how to request payment
Use a payment link to collect a single amount, an invoice when the customer expects a formal bill, and a subscription plan when you charge for ongoing access. Each has its own page under Payments in the Mitu dashboard.
Create the request
Create the payment link, invoice or plan in the dashboard, or from your server when your product creates them as part of its own flow. Include your own reference, such as an order or customer number, so every payment can be matched to the record it belongs to. When creating requests through the API, send an Idempotency-Key header, so a request that times out can be retried without creating a duplicate. The payment link guide shows a complete example.
Let the payer complete it
A person opens the hosted checkout, reviews what they are paying for and pays with one of the methods available to them. An AI agent pays the same request on its customer’s behalf and continues with its task, while Mitu handles the agent payment for you, so your product never needs to support agent payment standards itself.
Confirm and fulfil
Every payment appears in Transactions as it progresses, and invoices and plans also show their status on their own pages. Before you fulfil an order or grant access, wait for the notification that the payment is complete, sent through events. A browser can be closed and an agent can report success before payment has settled, so never fulfil on the basis of what the payer’s side reports.
Plan for every outcome
Not every request ends in a single, full payment. A payment link can be partly paid, an invoice can become overdue and a subscription charge can fail. Payment states lists every state, so your systems can handle each one deliberately rather than discovering it in production.
You can now be paid by anyone, however they choose to pay. As more of your customers bring agents into their buying, the same links, invoices and plans keep working without any change on your side, and every payment arrives in your records in exactly the same way.