Design

Designing the payment step in an AI agent app

Designing the payment step in an AI agent app

Designing the payment step in an AI agent app

What an agent's approval screen should show, when to ask again, how to handle failures and receipts, and how to set limits users trust.

Design: Designing the Payment Step in an AI Agent App

In its Agentic Commerce Benchmark, Visa tested 22 AI models on 15 shopping tasks. The models failed 42.8% of the runs, and in more than half of those failures they still bought something. For an app's users, that means paying for the wrong item.

The approval screen is the one place where a user can catch an agent's mistake before paying for it, which makes it one of the most important screens in any agent that handles payments. This post covers what it should show, when to ask for approval, how to handle failures and what to send afterwards. For who carries the cost when something goes wrong, see Who is liable when an agent buys the wrong thing.

What the approval screen should show

Show

Example

The store, by its own name

Trailhead Supply, not "your shopping assistant"

Each item, with the details that matter

Running shoes, size 9, blue, qty 1

Every cost on its own line

$120.00 item, $11.00 shipping, $10.40 tax

The total, in the user's currency

$141.40

The card

Visa ending 4242

Where it's going and when

Home address, arrives Thursday

One clear action

Approve with Face ID

If any of these is missing, careful users will hesitate, and they're right to.

When to ask

  • After the price is final, not while the agent is still browsing. Approving an estimate trains people to approve anything.

  • Again, if the total changes. Show the old and new totals side by side.

  • Once, for repeat purchases. Let the user set limits instead of approving every refill: which store, how much, how often and until when.

Make limits visible

For standing approvals, show the limits every time they apply: "Coffee from your usual cafe, up to $30 a month, until June." Put pause and cancel one tap away. Users are more willing to give an agent standing permission when they know they can stop it.

Handling failures

What happened

What to tell the user

The card was declined

The reason in plain words, and a button to pick another card

The price went up

Old total, new total, approve or skip

The item sold out

What's similar, and nothing was charged

The store's checkout failed

That nothing was charged, and what happens next

Approval timed out

That the order wasn't placed, and how to restart it

Sending a receipt

After payment, send a receipt in the conversation: store, items, total, order number, card, and how to get help with a return. A refund goes back to the same card, through the store.

Keep the user in your app

Every redirect to another site or app is a chance to lose the user. Embed the card form and the approval in your own app where you can, with your logo and colors, and keep a hosted page as the fallback. The docs cover both in integration modes.

Building the approval step with Prava

Prava gives you every piece of this screen out of the box: an embedded or hosted card form with your branding, passkey approvals for a single purchase or for standing limits, a cart review before paying, clear failure reasons, and webhooks for every payment and limit change. Quotes hold for about 15 minutes, and each payment token only works for the approved store and amount, so the total on the screen is the total that gets charged. Payments run on Visa Intelligent Commerce and Mastercard Agent Pay. See how the pieces fit together.

Summary

  • The approval screen is where users can catch an agent's mistakes before paying for them.

  • Show the exact store, items and total, and ask only once the price is final.

  • Plan for failures such as price changes, declined cards and checkout errors as carefully as for successful purchases.

To try it, create sandbox keys in the dashboard and follow the quickstart.

FAQ

Should the agent ever buy without asking? Only inside limits the user set explicitly, like a monthly cap at one store. Everything else should be approved.

Is a passkey better than a one-time code? For repeat approvals, yes. It's one tap with Face ID or Touch ID, and it can't be read out over the phone. Banks may still send a code the first time a card is used on a new device.

What if the user wants to change the cart? Let them edit from the approval screen, then re-quote before asking again.

Sources

Prava team

Copyright © 2026 Prava Payments Inc. All rights reserved

Copyright © 2026 Prava Payments Inc. All rights reserved