You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browser returns and provider webhooks can arrive more than once or concurrently. PayPal completion may capture an order, while webhook processing currently returns early for terminal transactions before verifying the signature.
Scope
Proposed scope: Ensure safe retries and concurrent PayPal capture; move webhook signature verification before the isTerminal short-circuit in WebhookServiceImpl (so unsigned requests cannot receive 200 OK or act as a status oracle) and detect/alert on a second SUCCESS for an already CLOSED one-time payment.
Acceptance criteria
Concurrent returns/webhooks, duplicates and invalid signatures (even for terminal transactions) cause no repeated financial operation, status leak or terminal-state change; a second SUCCESS on a CLOSED one-time payment emits a metric/alert.
Questions to resolve
How are concurrent return and webhook operations coordinated across replicas? How is a terminal webhook authenticated without allowing a status leak?
Activity