The payment credential can expire while your store is waiting
A temporary payment credential has a different lifetime from the order. Review delayed processing, the selected Unified Checkout flow and recovery without losing the original payment attempt.
In this article
A shopper finishes entering payment details. The store places the next step behind a large batch of background work and displays a reassuring message. When a worker finally reaches the purchase, the temporary payment credential is no longer valid.
The shopper did their part promptly. In this hypothetical custom checkout, the delay belongs to the store. The merchant needs to decide whether its payment flow can use what it collects while that information is still usable, and how the customer returns if it cannot.
Establish what the returned token represents
A temporary credential can represent payment details collected by a provider without exposing those details to the store. Receiving it does not, by itself, establish that the provider approved or collected the payment.
Current Unified Checkout documentation distinguishes a flow that returns a transient payment token for a separate authorization request from automatic processing that returns a completed payment result. Have the developer identify the actual flow and explain what remains to be done. A result awaiting verification is different from a credential awaiting its first payment request.
The provider’s validity and permitted use rules belong to the selected product and integration. Do not assume that a checkout session, a transient credential, a saved payment reference and a token authenticating a server request share one lifetime. Nor does one product’s reuse rule establish another’s.
The merchant’s durable evidence should identify the order, account, environment, agreed amount and original attempt, with its verified or unresolved result. A temporary token is unsuitable as the sole record of what the business still owes the customer.
Waiting uses the credential’s remaining life
A token can be valid when received and unusable when processing begins. Waiting for a worker, waiting for a connection and completing other checks all consume time. Restarting the job does not restart the provider’s validity window.
For the Unified Checkout transient credential flow, the provider requires signature and claim verification, including expiry and issuer. Ask the implementation team how it establishes validity at the point of use and whether enough time remains for the supported operation. Merely reading an expiry from unverified contents is insufficient.
Consider the earliest relevant boundary. The credential may expire before the store’s work deadline, while a delivery reservation or the customer’s agreed quote can have a separate deadline. The team needs to preserve those distinctions instead of describing every expired condition as a failed card payment.
A queue can be suitable for work that genuinely may wait. The important design decision is whether this payment step can wait under its actual validity and handling rules. Ask how the store establishes readiness before collecting a temporary credential, and how it avoids promising completion when the required capacity is unavailable.
Preserve the purchase without turning the token into a receipt
Current Unified Checkout guidance advises against logging transient token values or persisting them beyond the immediate authorization request. That is guidance for this credential flow, not a universal description of every provider’s token. Have the responsible team apply the exact handling rules to queues, diagnostics and recovery tools.
Keep safe attempt references and the permitted order information durable instead. Staff need to find the purchase after a worker restarts or a customer closes the page. They do not need the raw credential in a support ticket or a copied job payload to explain the current state.
If the credential expired before any payment request was submitted, follow the supported route for a fresh customer interaction. Preserve permitted basket information and explain any changed price, tax, availability or delivery choice before the customer confirms again. Do not suggest that replacing an expired credential authorizes an altered purchase.
If a request may already have reached the provider, expiry does not establish failure. Resolve the original operation first. Generating another token or moving the purchase to another worker cannot answer whether the earlier payment was accepted. Our retry guidance follows that original attempt.
Review the delayed purchase before accepting the design
Use supported test scenarios to demonstrate a delayed credential, a worker restart and a payment submitted before its response is lost. Observe the order and customer message in each case. A normal fast purchase cannot show whether these different outcomes remain distinct.
For a Trolleys custom integration, the checkout guidance connects session creation, server verification and original attempt recovery. Confirm the approved flow with the implementation team; using the provider’s token does not automatically enable deferred collection or a saved payment agreement.
The design is useful when it respects the temporary credential’s limits while keeping a lasting account of the purchase. The customer can then recover from a delay without becoming the person who has to discover whether the store already tried to collect.