flowchart LR accTitle: What a timed-out payment means for the order accDescr: Resolve a missing payment response using one purchase reference, preserving both the dispatch path and the recovery path. %% case-global-commerce-payment-timeout (en) %% https://www.thebsq.com/work/global-commerce-platform/ %% n_hold — The order system can hold a current eligible unit for this purchase. Expired or failed orders must be reconciled so unusable holds can be released. n_hold["Order reservation"] %% n_payment — Identify the purchase consistently across shop, provider and fulfilment. Keep the reference even if a response is lost. n_payment["Payment attempt"] %% n_timeout — After a timeout, query the provider against the original purchase reference. Whether the charge succeeded remains open until that check. n_timeout["Payment response missing"] %% n_confirmed — Continue the existing order after confirming the provider’s acceptance. Preserve the link to any fulfilment already underway. n_confirmed["Payment confirmed"] %% n_dispatch — The warehouse handover confirms dispatch for this order. Compare payment, order and dispatch records on the same reference. n_dispatch["Dispatch record"] %% n_revise — Compare fulfilment within the promise and exceptions with the proposed scope. Record the conditions that can carry over to the next region. n_revise["Revise launch scope"] %% n_failure — Use the agreed recovery or reversal procedure for a confirmed problem and reconcile outstanding holds so the order reaches a known state. n_failure["Failure confirmed"] %% n_exception — Reconstruct a late handover, rejected address or missing payment acknowledgement from the individual records and assign the owning team. n_exception["Operational exception"] n_hold -->|"starts or resumes this purchase"| n_payment n_payment -->|"response is missing"| n_timeout n_payment -->|"provider acknowledges the charge"| n_confirmed n_timeout -->|"original charge is found"| n_confirmed n_timeout -->|"failure is verified"| n_failure n_confirmed -->|"continues the existing order"| n_dispatch n_dispatch -->|"compares dispatch with the promise"| n_revise n_dispatch -->|"handover misses its promise"| n_exception n_failure -->|"routes recovery to its owner"| n_exception n_exception -->|"reconciles or releases capacity"| n_hold n_exception -->|"informs regional operating limits"| n_revise %% Find the original accepted charge — n_hold → n_payment → n_timeout → n_confirmed → n_dispatch → n_revise %% Handle a verified failure — n_payment → n_timeout → n_failure → n_exception → n_hold