All articles

When a payment fails, know which checkout was actually running

The latest code is not evidence of what handled an earlier purchase. Connect the failed attempt to its deployed version, timing and actual point of interruption.

In this article

The developer opens checkout and the payment fields work. The customer’s screenshot shows that they did not work earlier. Meanwhile, the team has deployed a fix, restarted a worker and changed a setting. Which arrangement actually handled that customer’s purchase?

This is a hypothetical incident, but the commercial problem is familiar: the business is being asked to trust a repair before anyone has established what failed. A working page now cannot identify the version, connection or account configuration behind yesterday’s error.

Preserving that identity makes investigation less dependent on memory. It also helps a merchant resist the expensive suggestion to replace a gateway when the available evidence points somewhere else.

The repository is not the running checkout

A development branch describes code that may be released. A deployment record describes what was sent to an environment. Neither automatically proves which process handled a particular payment attempt. One worker can remain on an earlier version while the storefront has already changed.

Ask for a release identifier attached to the actual component handling the work. OpenTelemetry’s service conventions provide a version attribute for that purpose, without prescribing one version format. A build reference or similar identifier is useful when it can lead the maintainer back to the exact deployed software.

For a custom checkout, the relevant record may include the storefront release, server integration, installed SDK and worker version. Keep only the components involved in the affected operation. A list of every package in the company is less useful to an investigator than the precise combination that created the failed session.

Account configuration needs its own history. The software can remain unchanged while an authorized operator changes a gateway setting or a hosting configuration. Preserve nonsecret references to those changes and their owners. Do not place credentials in a release note to make the record appear complete.

Connect this information to the store, environment and original attempt. OWASP’s logging guidance favors sufficient event context and an interaction identifier. The goal is a traceable purchase, not an archive of unrelated technical messages.

Locate the interruption before assigning the repair

A report that says “gateway unavailable” may only contain the store’s interpretation. Visa Acceptance Solutions distinguishes name resolution, network connection, TLS negotiation, request transmission and waiting for a response. Evidence from one stage does not establish that the later stages happened.

Take a suspected DNS problem. Have the host check the documented destination hostname from the environment that made the request. A successful lookup on a developer’s laptop does not establish what the production sender could resolve at the incident time. A lookup succeeding now also cannot reconstruct an earlier intermittent failure.

Do not replace the documented hostname with a fixed IP address as a shortcut. Visa’s guidance warns against that arrangement. Ask for the specific failure and the supported correction, including the responsible hosting or network team. The gateway team cannot repair every condition on the merchant’s own connection.

Timing must tell the same story across those records. Retain time zones or offsets, then compare events on a common basis without rewriting the originals. Where clocks cannot be verified, record that uncertainty instead of presenting their apparent order as established fact.

OpenTelemetry distinguishes when an event occurred from when a collection system observed it. That matters when a record arrives late: its appearance in a log viewer is not necessarily the moment the customer encountered the problem. Use attempt references and known request relationships alongside timestamps.

The merchant should receive a narrow finding: which component stopped, what evidence supports that conclusion and which earlier outcomes remain unknown. An error before a request left the server and a missing reply after submission are different customer situations. Keep that distinction when deciding what support should say.

Reproduce the condition without borrowing the customer’s card

A useful reproduction preserves the suspected cause while replacing unnecessary personal information. The developer may need the same release, browser conditions, order shape or simulated interruption. That does not mean they need the customer’s card, security code, cookies or a complete production request copied into a ticket.

Keep the original incident record protected and share a deliberately limited investigation copy through the approved channel. OWASP identifies access tokens, passwords and payment data among material to exclude from ordinary logs. Review exported browser traces and screenshots too; their convenience does not make their contents safe to circulate.

Suspected compromise also changes how cleanup should proceed. Have the authorized response team arrange preservation of relevant host and provider records before routine retention removes them. Visa’s compromise guidance specifically addresses retaining logs and system evidence with outside providers. Coordinate containment with that preservation; do not leave an exposure running merely to collect more evidence. Staff should not wipe, rebuild or experiment on suspected systems on their own. Record who obtained the original material and any subsequent handling, protect access and let the qualified responders determine the appropriate forensic work.

For payment behavior, use the supported sandbox and its documented test data. Cybersource separates sandbox credentials and processing from production. If the test instead supplies a simulated response inside the application, label that boundary. A controlled simulation can demonstrate the store’s reaction without proving what the real gateway returned.

For Trolleys merchants, the integration support handoff provides the place to connect safe references with the observed problem. The web team should supply the deployed version and relevant evidence. The account team can then investigate the matching service records instead of guessing which purchase the screenshot describes.

Finish with two answers: what corrected the technical fault, and what happened to the affected purchases. A successful new payment answers neither question about an earlier unresolved attempt. Keeping the original evidence lets the business repair its checkout without losing the customer inside the investigation.