Pattern

Webhook and State Ordering

out-of-order-payment-state

Webhook events and client-side success flows get processed out of order, so payment-side state changes happen before the browser reaches the confirmation page, or success signals are forged via URL/query hacks, breaking correctness and trust.