Product & Engineering

When Your Product Lives in Someone Else's Checkout

An embedded product has to work inside another company's purchase flow. That changes how you think about latency, failures, customer confirmation, and engineering ownership.

Imagine a traveler booking a flight. Near the end of checkout, they select an optional add-on, complete the purchase, and receive their booking confirmation.

The flight is there. The add-on is not.

Was it purchased? Should the traveler try again? Which company should they contact?

It is possible for the underlying systems to have done much of their work correctly and still leave the customer with no clear answer. One service may have accepted a request. Another may have finished the booking. The confirmation page may have rendered exactly as its developers intended.

This is an illustrative scenario, not something I am describing from a live LayoverGuard integration. But it captures a question we keep coming back to as we design LayoverGuard for distribution through online travel checkouts: what does it mean to build a product when another company owns the experience in which it is sold?

Engineers working on payments, identity, marketplaces, or logistics will recognize a version of this problem. A request crossing the network is only one part of an experience that has to make sense on both sides.

ILLUSTRATIVE SYSTEM VIEW
Conceptual view of one traveler checkout and two independent company systems, with the embedded product's outcome crossing the company boundary into booking confirmation and then reaching the traveler.

The checkout is already somebody else's product

For LayoverGuard, the intended experience is straightforward: a traveler booking a connecting itinerary may be offered an optional fixed-payout product within the booking flow. They should not have to leave that flow to understand what is being offered.

From our side, it is tempting to think of this as adding a product to a checkout. From the travel company's side, it is an existing experience that already has to present flights, collect traveler details, handle payment, explain the final price, and get the customer to a reliable confirmation.

Our add-on is only one part of that journey. We cannot assume there is room for an extra screen or an additional step just because it would simplify our implementation. The checkout has its own design, accessibility requirements, localization, and constraints.

We are not designing the ideal flow in isolation. We are designing a capability another product can use without becoming unnecessarily harder to use.

There are two customers, and they need different things

The traveler needs to know what they are buying, what it costs, and what happens afterward. They should be able to make a decision without understanding the integration behind it.

The travel company needs a different kind of clarity. How does the offer fit into the booking flow? What should be displayed? When is the result final? What information will be available later if a traveler contacts support?

An API can return technically correct data and still leave too much interpretation to the integrating team. Defining the internal product rules is one problem, which I wrote about in Before You Automate, Define the Promise. Helping another team present the result correctly is a different problem.

For example, consider an offer that requires several sentences of conditional explanation to be understood. That might be acceptable on a dedicated product page. In a checkout, those sentences compete with the fare, baggage options, traveler details, and payment information. If the partner has to redesign the page around our product, we have created integration work that is not visible in the endpoint documentation.

This is not an argument for hiding important terms. It is a reason to make the product understandable in the context where people will actually encounter it.

It also means that integration quality is partly a product-design problem. A partner should not need to reverse-engineer our intent from field names or write its own interpretation of the offer.

Your endpoint is only part of the latency budget

Engineers are used to measuring response times. We improve database queries, remove unnecessary work, and watch service latency. Those metrics matter, but a checkout has a different perspective.

The customer is waiting for the page to become usable, not for our endpoint to achieve an impressive number in isolation.

A request may travel through the checkout backend, cross a network boundary, reach our service, and return through additional application logic before the offer appears. A slow dependency anywhere on that path affects the experience. A response can be fast on average and still create a poor checkout if the slowest requests happen at the wrong moment.

The interesting question is not simply, "How quickly can we return a quote?"

It is how much of the customer's wait we are allowed to consume.

A partner might be able to load an offer while other parts of the page render. In another flow, the checkout might have to wait before showing the next step. Those are materially different integration designs, even if they call the same endpoint.

A good latency target therefore has to be understood end to end. A service-level metric cannot tell us by itself whether we are slowing down the purchase experience. And the fallback behavior matters just as much as the fast path: a checkout should not be left waiting indefinitely because an optional product did not respond.

Not having an offer is different from not having an answer

This distinction seems small until another company has to decide what to render.

Suppose a checkout asks an embedded product for an offer. Broadly speaking, it might receive an offer it can present, a valid response indicating there is nothing to present, or no reliable response at all.

Those situations should not automatically produce the same behavior.

If there is no offer, the checkout may simply continue without one. If the request timed out, the checkout does not necessarily know whether there was no offer or whether the service could not answer. Retrying might be appropriate in some contexts and disruptive in others.

These are generic examples, not LayoverGuard's actual response contract. The point is that the partner needs to understand the difference without having to guess what a missing value means.

Engineers often discuss these cases as error handling. In an embedded product, they are also presentation decisions. What does the customer see? Can the booking continue? Is there any action they need to take?

When an optional service has trouble, the failure should not spread farther into the host experience than necessary. Designing for that takes agreement on behavior, not just agreement on HTTP status codes.

The confirmation page is part of your product, even when you do not build it

Return to the traveler from the beginning of the article. They selected an add-on and finished checkout, but their confirmation does not clearly show whether they bought it.

From the software side, there are several possible explanations. The selection might not have been included in the final order. The product purchase might have been recorded while the confirmation view missed it. Or one system might be waiting for an update from the other.

The important detail is that the customer sees one purchase, while the software may treat the flight booking and the add-on as separate operations. Different acknowledgements may reach different systems at different times.

Usually there is no single database transaction spanning two independent companies. Each side has its own records and its own definition of completed work. Even when they eventually agree, the traveler needs an answer at the moment they are looking at the confirmation page.

That creates a responsibility that is easy to underestimate when you are focused on building an API: someone has to define what counts as a confirmed purchase from the customer's perspective, and how that confirmation reaches the screen or message they will actually see.

An internal success response is not the same thing as a customer knowing what they purchased.

You will not have the other company's logs

When something goes wrong inside your own service, you can usually follow a request through your application, database, metrics, and logs. When it crosses into another company, your view stops at the boundary.

The support ticket might say, "The traveler paid, but the add-on is missing." Your system can tell you whether it received a request and what it returned. It cannot tell you what was displayed in the checkout or which message the customer actually saw.

The partner has the opposite problem. Its engineers can see the booking flow, but they may not know what happened after the request entered your system.

This is why shared identifiers and agreed diagnostic information matter. Not because every company should expose all of its internals, but because the two teams need a practical way to establish whether they are discussing the same attempt, order, and outcome.

There is a privacy tradeoff here too. Copying the full booking into every log would make some investigations easier, but it would also spread information that may not be necessary for debugging. Good observability across a company boundary is about preserving the right context, not collecting everything available.

I think this is a useful test of an integration design: could two engineers at different companies investigate a confusing customer experience without spending their first meeting figuring out which transaction they are talking about?

The simplest API is not always the easiest integration

As engineers, we tend to like small interfaces. A small number of endpoints, consistent request shapes, clear documentation. All good goals.

But an API can be minimal while transferring a surprising amount of work to the partner.

If the partner has to interpret undocumented outcomes, invent customer-facing messages, build custom reconciliation tools, or contact us whenever an unusual situation happens, then we have not removed complexity. We have moved it across the boundary.

Sometimes adding a clearly defined response, a useful reference, or a way to retrieve an existing result can make the integration easier to operate, even if it makes the interface slightly larger.

The right measure is not how few endpoints we expose. It is how little unnecessary work the partner has to do to use the product correctly.

That includes things that are easy to postpone while building the first version: realistic test scenarios, clear documentation for non-success outcomes, predictable changes between versions, and enough context for customer support to resolve ordinary questions.

None of those features looks particularly exciting in a demo. They become very important when another engineering team has to maintain the integration after the initial launch.

The product does not end at checkout

The traveler should not have to think about the company boundaries behind an embedded product. But those boundaries still exist after payment.

A customer may later look for a purchase confirmation, ask a question, or need to understand the status of the add-on. At that point, which company has the information? Which company should explain it? How does the support team find the right record?

These questions are operational, but they should influence the software from the beginning. Otherwise, the system may be easy to sell through and unnecessarily difficult to support afterward.

These are questions we are working through as we design LayoverGuard for partner distribution, before the handoffs become someone else's daily operational problems. Actual integrations will undoubtedly surface others.

What has changed in my thinking is the definition of a finished integration.

It is not just a partner successfully calling our API. It is a traveler being able to understand the offer, complete the purchase, recognize the result, and get an answer later without knowing which company owns which system.

When your product lives inside someone else's checkout, the boundary between systems should be clear to the engineers and almost invisible to the customer.