Skip to content

Add idempotency key to Stripe PaymentIntent creation#13

Merged
raubrey-stripe merged 1 commit into
mainfrom
raubrey/stripe-idempotency
Jun 29, 2026
Merged

Add idempotency key to Stripe PaymentIntent creation#13
raubrey-stripe merged 1 commit into
mainfrom
raubrey/stripe-idempotency

Conversation

@raubrey-stripe

Copy link
Copy Markdown
Contributor

Derives the key as mpp-java_<challengeId>_<spt> (matching the mppx TypeScript SDK pattern) so that replaying the same credential produces the same idempotency key and Stripe deduplicates the request. This prevents credential-replay attacks from creating multiple PaymentIntents against a single Shared Payment Token.

Derives the key as `mpp-java_<challengeId>_<spt>` (matching the mppx
TypeScript SDK pattern) so that replaying the same credential produces
the same idempotency key and Stripe deduplicates the request. This
prevents credential-replay attacks from creating multiple PaymentIntents
against a single Shared Payment Token.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Committed-By-Agent: claude
@raubrey-stripe raubrey-stripe merged commit 66a751b into main Jun 29, 2026
10 checks passed
@raubrey-stripe raubrey-stripe deleted the raubrey/stripe-idempotency branch June 29, 2026 16:52
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.

3 participants