Skip to content

Coordinate callbacks and webhooks #104

Todo

Description

@v-rudkovskiy

Background

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?

References

Proposed priority: High (subject to project triage).

Activity

  1. self-assigned this
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions