Blog

How AI travel agents should take payment for ancillaries: checkout links, Stripe MPP, and x402

By Loris Mazloum

AI travel agents are getting good at quoting extras. The harder product problem is settlement: moving money for an eSIM, a lounge pass, or a policy without dropping the traveller into a random storefront—or charging a wallet the traveller never approved.

Public travel MCP servers already expose four payment patterns. This guide is for builders of AI travel agents and OTAs. It is not a ranking of protocols or merchants. It describes the flows those servers and the payment docs actually publish, and the checks that should sit in front of any paid tool.

The gap after the quote

A travel MCP server for ancillaries can search plans, lounges, or cover in the same session as the trip. eSIM APIs and insurance quote tools still have to get paid. Flight MCPs often stop one step earlier: Etraveli’s Flight MCP can collect fares, passenger details, seats, and bags in the chat, then sends payment to a hosted page.

That split is now common on the ancillary side as well. Some tools only return a product or cart URL. Some create a Stripe Checkout (or another hosted payment page) after the traveller says yes. A smaller set accept machine payment over HTTP 402—Stripe’s Machine Payments Protocol (MPP), the open x402 standard, or both.

The agent has to know which pattern it is in before it speaks. “Here is a link to pay” and “I can settle this from a wallet” are different products.

Four payment patterns you will actually meet

Pattern What the agent does Who completes payment Where you will see it
Product, buy, or cart link Returns a URL for a plan or cart The traveller, on the merchant’s site Many read-only eSIM servers in the 2026 map; some insurance quote servers hand purchase to their own site
Hosted checkout the agent creates After an explicit yes, creates a checkout and hands over a checkout_url The traveller, on Stripe Checkout or another hosted page MonoEsim (Stripe Checkout; “an agent can never pay alone”)
HTTP 402 with MPP The tool returns a payment link; the agent POSTs, receives a 402 challenge, pays, and retries An agent wallet (for example a Stripe Shared Payment Token), often with a browser checkout as fallback Inbox eSIM; Stripe’s guide to monetizing an MCP server; co:sim also documents an MPP path
HTTP 402 with x402 Same 402 handshake, with x402 payment requirements and a signed retry An agent wallet, typically a stablecoin payment as specified by the merchant co:sim documents POST /ai/checkout/{token}/x402 (USDC on Base)

Hotel and flight servers use some of the same handshakes. They are useful evidence, but they are not the ancillary shelf: see After Duffel for how air extras and non-ticket extras come apart.

This is the most common public pattern in the current eSIM cluster: the tool is read-only, and purchase happens on a page. The agent can compare plans and pass a preselected link. It cannot mark the order as paid.

Insurance quote servers in the same map often do the same handoff. Travel Protection Insurance, for example, will quote in the assistant and then start a checkout on its own site so the traveller can review missing details and pay there.

Use this pattern when the merchant has not given you a checkout session or a 402 endpoint—or when the product (cover, in particular) should be reviewed on the merchant’s own form. Do not describe the link as a completed purchase.

Hosted checkout the agent creates

Here the agent is allowed to open a payment session, but still cannot settle it. MonoEsim’s agent docs and llms.txt publish this sequence:

prepare_order(plan_id)
# show the plan, price, and terms; collect the customer's explicit yes and email
create_checkout(quote_id, email, customer_confirmed=true, terms_accepted=true, idempotency_key)
# hand over checkout_url — the customer pays on Stripe Checkout
get_order

The same docs offer a simpler handoff: give the traveller the plan’s url (the destination page with ?plan=<plan_id>). Live status is the checkout.enabled field on GET /api/agent/v1. Public catalog calls need no API key; a registry listing, they say, does not grant permission to purchase or spend funds.

This is the pattern to use when you want the traveller to stay in a familiar card / Apple Pay / Google Pay checkout, and you want the agent to create that session only after a yes. It also matches how some flight MCPs already work: the conversation prepares the order, payment stays on a hosted page.

Stripe MPP: HTTP 402 on Stripe rails

MPP is an open protocol, co-authored by Stripe and Tempo, for agents to pay an API without a checkout UI. Stripe’s MCP monetization guide (the guide itself is marked experimental) describes a split that travel tools can copy: the MCP tool validates the request and returns a payment link; a separate HTTP endpoint runs the 402 handshake.

From that guide, the agent flow is:

Agent        -> MCP tool:          call the paid tool
MCP tool     -> Agent:             paymentLink
Agent        -> Endpoint:          POST without a credential
Endpoint     -> Agent:             HTTP 402 payment challenge
Agent wallet -> Agent:             Shared Payment Token (SPT)
Agent        -> Endpoint:          retry with the SPT
Endpoint     -> Agent:             confirmation and an MPP receipt

The same URL can serve a human. If a browser requests it with Accept: text/html, Stripe’s guide has the endpoint redirect to a checkout page the seller controls. Payments can settle through an existing Stripe or Connect account, including cards via Shared Payment Tokens and stablecoin payments.

Inbox eSIM’s llms.txt applies that pattern to a travel eSIM. After find_esim_plans (and, when needed, check_esim_device), the paid tool is:

buy_esim(plan_id, customer_email, customer_agreed_to_terms)
# returns a payment link
# POST the link -> HTTP 402 MPP challenge (method stripe, USD)
# pay with the customer's agent wallet (a Stripe shared payment token,
# for example Link's `mpp pay <link>`), then retry
# response includes order_id and order_url

The same file requires the customer to accept the merchant’s terms before buy_esim, and notes that the 14-day right to withdraw ends once the eSIM is installed. A never-installed, unused eSIM can be refunded from the order page within 30 days, less the payment fee (in full, without the card fee, within 14 days in the EU and UK, per their text). There is also make_esim_cart for several plan IDs in one human-paid cart, and get_order_status for the order after payment.

Use MPP when the merchant offers it and you need the agent to settle without opening a browser, while still keeping card rails and a human fallback on the same link.

x402: the open HTTP 402 standard

x402 is an open payment standard built around HTTP 402 Payment Required. A buyer requests a resource; if payment is required, the server returns 402 with payment instructions; the buyer retries with a payment payload; the server verifies and settles, itself or through a facilitator, then returns the resource.

In x402 V2 that handshake uses three headers (each a Base64-encoded JSON object):

Header Direction Role
PAYMENT-REQUIRED Server → client, with the 402 Accepted schemes, price, network, destination
PAYMENT-SIGNATURE Client → server, on the retry Signed payment payload
PAYMENT-RESPONSE Server → client, after settlement is attempted Settlement outcome, success or failure

co:sim’s agent docs put that handshake on a travel eSIM order. Create the order first (MCP create_checkout or the REST call below); the response includes a human checkoutUrl and machine-payment endpoints. Then request the x402 or MPP URL, settle the 402, and poll status. Their documented example:

# 1. Create an order (returns checkoutUrl + machinePayment endpoints)
curl -X POST https://cosim.io/api/v1/ai/checkout \
  -H 'Content-Type: application/json' \
  -d '{"packageId": "JP-3gb-30days", "email": "[email protected]"}'

# 2. Request the x402 endpoint -> HTTP 402 + payment requirements (Base USDC)
curl -i -X POST https://cosim.io/api/v1/ai/checkout/<token>/x402

They also document POST /ai/checkout/{token}/mpp for MPP on Tempo USDC, or for card / Stripe Link through Shared Payment Tokens. Machine payments are described as optional and consent-gated: agents are instructed to relay the total and the refund policy first. The human checkout link always stays available, and unused checkout links expire after 30 minutes.

Use x402 when the merchant offers it and the agent has a wallet that can satisfy the advertised scheme and network. Do not assume every 402 is x402, or that every x402 offer is on the same chain or asset—read the challenge.

When to use which

There is no single right rail. Choose from what the merchant actually exposes, and from who should see the payment:

A multi-ancillary shelf should set this policy once, rather than inherit a different checkout story from each vendor tool.

Confirm before any charge

Every paid path above assumes a human decision. The details are merchant-specific; the checklist is not:

  1. The live offer — plan or product id, destination, dates or validity, and the price and currency returned by the API or tool, not a remembered figure. MonoEsim’s rules say never to quote a price the API did not return.
  2. The traveller’s yes — explicit confirmation of the offer, the total, and the email that will receive the eSIM, voucher, or policy. MonoEsim: never confirm or pay on the customer’s behalf. Inbox eSIM: accept the published terms before calling buy_esim.
  3. The terms that change after fulfilment — for example, Inbox eSIM states that the 14-day withdrawal right ends once the eSIM is installed.
  4. Who will pay — a checkout link the traveller opens, or a wallet the traveller has authorised. Those sentences should not be interchangeable in the prompt.
  5. Insurance and other regulated extras — quote, disclosure, and bind or checkout are separate steps. A ChatGPT plugin that quotes travel insurance and then sends the buyer to the insurer’s site is not the same as in-session binding. If the merchant’s model is “the agent recommends, the human approves,” keep it that way.

Retries, idempotency, and test keys

A lost HTTP response is not proof that payment failed. x402’s client/server guidance is explicit: after you send PAYMENT-SIGNATURE, treat the outcome as unknown; do not automatically authorize a second payment. A success: false with errorReason: "settlement_pending" is non-terminal, not permission to pay again. Reconcile with PAYMENT-RESPONSE and the merchant’s order-status tool before you create a new checkout or a new 402.

The same rule applies to MPP and to hosted checkout. Inbox eSIM and co:sim both publish a status tool (get_order_status, check_order_status). MonoEsim’s create_checkout takes an idempotency_key and a later get_order. Prefer those over a second create_checkout or a second buy_esim when the first call timed out.

Test what you will run in production, and keep test and live credentials apart. Stripe’s MPP docs describe sandbox and live validation (including mppx validate and Link CLI payments against a test endpoint). MonoEsim’s llms.txt states that its wallet and saved-card payment tools are an offline sandbox, not live payments, and that payment_capabilities shows what is enabled. Do not demo a sandbox wallet and then reuse the same path against a live traveller.

If a checkout link can expire—co:sim documents 30 minutes—tell the traveller, and create a new session only after you have confirmed the previous one was not paid.

One payment policy for the shelf

Builders who already have an air API still need a fulfilment layer for the extras around the ticket (build the agent so it can fulfill, not only plan). Payments are part of that layer:

The ancillary stack checklist already asks for a ledger, idempotency, and human confirmation on paid issuance. Payment protocol support is that checklist, applied to HTTP 402 and hosted checkout instead of only to supplier API keys.

Sources

Not payment, insurance, or legal advice. Tool names, payment rails, refund windows, and checkout behaviour are merchant-specific and change; verify against the live MCP tools and the docs linked above. Code sketches are copied from those sources, not from a live payment.

Questions

What is the difference between Stripe MPP and x402?
Both use HTTP 402 so an agent can pay a resource without a checkout form. MPP, co-authored by Stripe and Tempo, is designed to settle through your Stripe account, including cards via Shared Payment Tokens and stablecoin payments, and the same payment link can fall back to a browser checkout. x402 is an open HTTP payment standard: the server returns payment requirements, the client retries with a signed payment payload, and settlement is typically wallet-based. They are not mutually exclusive; some merchants document both, plus a human checkout link.
Does listing a travel MCP in a registry let an agent spend money?
No. Permission to call a tool is not permission to pay. Several public servers say so explicitly: the agent must get the traveller's yes, must not invent prices, and must not confirm consent on the traveller's behalf. Read-only catalog tools and tools that start a checkout or a 402 payment are different jobs.
Do we have to pick one payment protocol for the whole shelf?
No. A practical policy is enough: when to hand the traveller a page, when to create a hosted checkout after an explicit yes, and when a machine-payment handshake is allowed. Some ancillary merchants already expose more than one path on the same order and keep the human checkout link available.
Is this payment, insurance, or legal advice?
No. This article describes integration patterns published by payment protocols and public travel MCP servers. Fees, refunds, eligibility, and who is charged are defined by each merchant's terms and the payment rail you actually call. Verify against the live tools and docs before you ship.