Skip to main content
Establish whether an order went through, and tell the user exactly what is known before you report a charge or a failure. Adding these checks to an agent takes about 10 minutes. No single signal proves an order. Each check answers a different question:

Before you start

  • You submitted the order once. See Run a checkout end to end.
  • You know the submit selector you clicked, a selector that appears only on success, and one that appears only on failure.
  • Any 3DS or wallet popup is handled. See Handle challenges.

Confirm an order

1

Race the success and failure markers

outcome is success or failure (named in matched), timeout (neither yet, not a failed checkout), or cancelled (a handoff took the page). Use this instead of reading the confirmation page, which redaction blacks out.
2

Check corroborated is true

Pass confirmsCheckout: true only for a checkout, with the submitSelector you clicked. The confirmation is recorded only when:
  1. The submit control has left the screen.
  2. No tab this page opened is waiting for wait_for_popup.
  3. The page shows no error, rate limit, sign-in step, sent-code notice or challenge.
  4. The success selector is still there, and the failure selector is not.
Then the reply says corroborated: true. A false names the failed check: do not report an order on it.
3

Read the run report

Call get_run_report, or close_session, which returns the same report. It still answers after you navigate away.A timeout from the last step does not mean nothing was filled. If filledFieldKinds contains card, the card went in.
4

Settle anything unclear with the merchant

If a card went in and nothing was confirmed, check the order page, the account’s order list or the receipt email. The emailed receipt is the source of truth.
5

Tell the user

Say three things:
  1. What the run report says was filled, by kind.
  2. Whether a confirmation was corroborated.
  3. If a card was filled with no corroborated confirmation: a card number reached this merchant, whether it was charged cannot be established from here, and where they can check.
Your agent now reports only what it can prove.

What the account holder sees

Their Activity page normally shows each session: the kinds of token filled, any refusals, and whether a confirmation was recorded. Recording is best effort, so an event that fails to save is missing rather than retried, and a gap does not prove nothing happened.
Activity page with a session expanded to show a card fill, a security code fill and a confirmed checkout, with no receipt image.Activity page with a session expanded to show a card fill, a security code fill and a confirmed checkout, with no receipt image.

A confirmed session on the Activity page.

  • Most checkouts show no receipt image. One is stored only when the session filled no sensitive value, because a confirmation page can repeat filled details where redaction cannot cover them. See Redaction.
  • Spend counts when the card is filled, not when it is charged. An abandoned checkout still counts toward the agent card’s spend and is not reversed. Reconcile against the card statement.

Orders without the vault card

Some checkouts place an order with no card at all: cash on delivery, a saved payment method, an offsite wallet. On some Shopify stores in India, cash on delivery is a shipping method, and with it selected, “Pay now” places the order at once with no card and no redirect. The proxy watches for these itself. After a click or Enter, it looks for the merchant’s confirmation page: Shopify’s /checkouts/.../thank-you and order status pages, or a confirmation path or thank-you heading with an order number. It then checks the page as get_session_outcome does for errors, a sent code and a challenge. It does not rule out a sign-in form: the confirmation must already show order evidence (a confirmation route, or a thank-you heading with an order number), so a receipt that also offers an optional account form still counts. If no card number or security code was filled for that checkout, it records the order and:
  • sets confirmationDetected: true and paymentMethod: "no_vault_card" in the run report, whose status line leads with order=no_vault_card;
  • tells the account owner, by email and in the activity feed: “An order was placed at merchant without your Agent Vault card”. See Notifications.
It does not depend on your agent calling get_session_outcome, and it never blocks the order. The total comes only from the confirmation page itself, never from a figure the agent passes. A confirmation reached after a vault card fill stays with the normal card path, so the owner is not told twice. An outcome your agent records itself (get_session_outcome or recordOutcome()) is never marked this way: only the proxy’s own checked reading is, and it is still one order when both happen. A click or press on a control that places the order while cash on delivery or pay-later is selected also leads its reply with pay_later=selected and a warning. The click still goes through.

In the SDK

browser.outcome() returns the run report. Its confirmationDetected is set by your own page.recordOutcome() call, and by the proxy only for an order placed without a vault card (above). Your own call is not corroborated. recordOutcome() records a confirmation on the current page whenever you call it. It does not race success and failure markers or check that the submit control left the screen, as get_session_outcome does over MCP. So true with no paymentMethod: "no_vault_card" (and no ordersWithoutVaultCard) means your agent decided the order landed, nothing more. With either of those, the proxy saw and checked the confirmation itself. Make that call from your own check of the page (a success selector present, the failure selector absent), and settle any doubt with the merchant before you report a charge. false is inconclusive. Never call recordOutcome() for a login. Its optional order total accepts a money format only.

If something goes wrong

Next: Contribute a recipe to share a checkout that worked, with its receipt.