All articles

The webhook arrived. Did the order move?

A developer can receive a payment notification on a laptop while the order still goes nowhere. Local webhook testing should show what the business can safely do with the result.

Your developer turns the screen around. A payment notification has appeared in the local test log. The connection is working.

It is a useful moment. It is also the moment to ask to see the order.

A webhook carries an update from the gateway to the merchant’s application. It can help the store learn what happened even when a customer closes checkout. But a delivered message and a completed order update are separate achievements. A business can have a healthy connection and still leave a paid customer waiting.

For a merchant using Trolleys powered by Etail Depot, the useful demonstration follows the sale: the intended gateway account, the payment reference, the store’s order and the action your team expects next. You do not need to read the application code to ask whether those records agree.

First, ask what actually reached the laptop

“Localhost” means the developer’s own computer. A gateway cannot deliver to that machine by using its localhost address. Your developer needs a reachable test destination for actual delivery. A development tunnel can forward requests from a public address to a local receiver; a hosted test environment is another option.

Much of the testing can happen before either is exposed. A developer can send fabricated data to the receiver and deliberately introduce missing fields, unexpected states or repeated events. Those tests are valuable because they are repeatable. They should be described as simulations.

Three different kinds of webhook evidence
What was testedWhat it can establishWhat remains unproven
A simulated messageHow the application handles the supplied data and chosen failures.That the gateway sent it, the subscription works or a payment occurred.
An authentic sandbox deliveryThat the configured test subscription can reach the receiver and pass its security checks.That the order update, receipt or fulfillment action finished.
A matched test orderThat a supported sandbox payment result reached the intended order and produced the expected action.Live processing, settlement, bank receipt or recovery from every interruption.

The public address also has to meet the gateway’s requirements. Cybersource reviews webhook destinations when subscriptions are created or updated. A page that opens in a browser is not evidence that the subscription has been approved and activated. Check the destination and subscription status before blaming the application for an absent notification.

For Unified Checkout, the payment result notification uses the uc.orders.transactionresults event. Its payload requires message level encryption. The receiver also needs the configured signature verification and other required security controls. A generic tutorial that accepts unsigned JSON does not demonstrate this connection. Our webhook setup guidance keeps those requirements together.

Make the order test harder than the demonstration

Once an authentic test event reaches the application, follow it into the matching test order. Check the gateway account, amount, currency and operation. An authorization should not silently become a captured sale. A notification from one store must not release an order belonging to another.

Then repeat the same event. The developer should be able to show that the intended action still happens once. A second delivery is not a second purchase. An email, shipment request or access grant should not repeat merely because the receiver saw the message again.

Run the browser result and notification close together, too. They may describe the same payment. Two independent “payment succeeded” paths can both try to move an order forward unless the application coordinates them.

The more revealing interruption comes after the receiver acknowledges delivery. Stop processing before the order update finishes, then restart it. Does the work resume from a saved record, or has it disappeared? A successful response to the gateway cannot rescue work that the application never preserved.

Keep that separate from the test where the receiver is unavailable. Cybersource’s delivery retries depend on the subscription policy. Once the receiver has accepted a message, unfinished internal work needs its own recovery. Retrying an order update is also different from submitting another payment.

Include rejection tests. An invalid signature, a payload that cannot be decrypted or an unexpected account must not change an order. If a replay tool changes request details, investigate how that affects verification. Disabling security to make the demonstration turn green removes part of what you needed to prove.

These are controlled development tests with test data and simulated downstream actions. Your developer should not need real customer records, live charges or an actual shipment to show that an interruption is handled correctly.

Leave evidence the next person can use

A useful handoff identifies the application version, test account, subscription, destination and event tested, followed by the expected result and what actually happened to the order. Keep the payment and order references together. Record which checks used a simulation and which involved a genuine gateway test delivery.

Request inspection can make debugging easier, but it can also retain request contents. Decide what the tunnel or inspection service may store before using it. Keep credentials, private keys and customer data out of recordings and shared screenshots. Expose only the intended receiver, then retire temporary access and unneeded test subscriptions when the work is finished.

For Trolleys merchants with several DBAs or MIDs, retain the mapping between each store and its gateway account. A test passed against one account does not establish that every store is configured. The Back Office Operations Portal remains the place for merchant activity and funding records; a local webhook test checks the store’s handling of gateway results. It does not demonstrate a bank deposit.

Before launch, repeat the relevant checks on the intended hosted setup and agree any live validation separately. Include who monitors missing updates, who investigates a payment and who repairs an order that stopped moving. Our account and integration team can help with gateway access and account questions. Your developer owns the receiver and its connection to your store.

The strongest handoff is an order your team can follow through an interruption. The notification arrived, its contents were verified, the correct action happened once and unfinished work could recover. That is the evidence worth bringing from the developer’s laptop into your launch decision.