All articles

The signed payment request must survive the journey

Authentication can fail when a request becomes stale or its body and destination change. Diagnose the actual Cybersource authentication method and route before asking a customer to retry.

In this article

A merchant moves a custom checkout behind a new routing service. The credentials remain the same, but payment requests begin failing authentication. Support suggests asking customers to use another card.

In this hypothetical incident, the first question belongs to the integration team. Request authentication establishes whether the gateway can trust the message sent by the merchant’s software. A customer changing cards cannot repair a request whose signed contents no longer match what arrived.

Identify the message the gateway rejected

Preserve the affected operation, account, environment, time and safe request reference. Establish whether the failure came from the gateway’s authentication check, an intermediary or another part of checkout. A generic error page does not identify which service refused the request.

Have the developer name the authentication method actually in use. Cybersource’s current documentation provides JWT authentication and marks its older HTTP Signature method as deprecating. Diagnose an inherited HTTP Signature connection under its own rules, while planning authentication changes against the current supported provider guidance.

Do not mix examples from those methods. An HTTP Signature header and a JWT bearer token are constructed differently. A checkout session token, a token representing collected payment details and a token authenticating the merchant’s API request also have different jobs. The word token cannot identify which part failed.

For Trolleys merchants, the custom integration guidance points to the provider’s authentication documentation. Account access, the selected integration and its credentials need to agree before changing how requests are signed.

Check the clock that created the request

Cybersource’s documented JWT construction includes issued and expiry times. Its inherited HTTP Signature format uses a signed request date. Have the infrastructure team compare the actual sending server’s time with its trusted time source and check the format required by that authentication method.

A correct clock on the developer’s laptop does not establish the time on every application server. If failures began after adding capacity, compare the machines handling successful and unsuccessful requests. If they appear after work waits internally, distinguish a drifting clock from a request authenticated too early and sent too late.

Those findings lead to different repairs. The team may need to restore time synchronization or correct when authentication is constructed. Extending an expiry beyond the provider’s rules, changing a displayed time zone or repeatedly replacing keys would not establish that the original problem was fixed.

Follow the signed request through its actual route

The message body is more than the amount visible on screen. The provider’s digest represents the body sent with the request. Reformatting JSON after calculating that digest can change the bytes even when a person reads the same fields and values. The developer must establish that the final transmitted body matches the authenticated message.

The destination matters too. Current Cybersource JWT construction includes the request host, method and resource path. The older HTTP Signature instructions bind the corresponding request details and explicitly distinguish paths with and without a trailing slash. Review the rules for the selected method rather than treating these values as interchangeable labels.

A reverse proxy can be configured to change a forwarded path, header or body. First establish whether it handles the actual gateway request. A proxy serving the storefront may never see the separate request from the application to Cybersource. Blaming it solely because it was recently installed can send the investigation in the wrong direction.

Have the responsible teams compare the request before authentication with what leaves the relevant intermediary, using safe test data and controlled diagnostics. Identify the specific transformation and supported correction. Do not disable verification or distribute raw production payloads, complete tokens or secrets to make comparison easier.

Repair the connection and account for the purchases

Repeat the affected route in the approved test arrangement, including the server or intermediary that exposed the problem. A direct developer request succeeding does not prove the deployed route preserves the same message.

Keep earlier payment attempts separate from that technical result. A confirmed authentication rejection and an attempt with a lost response are different findings. If an original payment outcome remains unknown, establish it through the supported recovery process before requesting another payment. A repaired signature does not tell you what happened to every earlier order.

The merchant should receive an explanation that connects cause and consequence: which request changed or became stale, which component was corrected and how affected customers will finish their purchases. That is a useful reason to reopen the payment path.