Skip to content

feat(payments): implement idempotency keys for payments - #77

Merged
0dillon merged 1 commit into
mainfrom
feat/idempotency-keys
Aug 29, 2026
Merged

feat(payments): implement idempotency keys for payments#77
0dillon merged 1 commit into
mainfrom
feat/idempotency-keys

Conversation

@0dillon

@0dillon 0dillon commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

This PR introduces idempotency key support to the SEP-24 withdrawal initiation endpoints to prevent duplicate charges or conflicting state mutations during network retries or timeouts.

We have added an in-memory \idempotencyCache\ to the \SEP24SettlementService\ that intercepts incoming requests containing the \Idempotency-Key\ header and returns the cached response if it has already been processed successfully.

Closes #47.

@0dillon
0dillon merged commit 7e8d0fa into main Aug 29, 2026
@0dillon
0dillon deleted the feat/idempotency-keys branch August 29, 2026 12:21
0dillon added a commit that referenced this pull request Aug 29, 2026
Co-authored-by: enny791 <enny791@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(payments): implement idempotency keys for payments

1 participant