Skip to content

fix: add payment intent creation timestamps#3318

Open
EvidentLed wants to merge 1 commit into
SecureBananaLabs:mainfrom
EvidentLed:codex/payment-createdat-3316
Open

fix: add payment intent creation timestamps#3318
EvidentLed wants to merge 1 commit into
SecureBananaLabs:mainfrom
EvidentLed:codex/payment-createdat-3316

Conversation

@EvidentLed
Copy link
Copy Markdown

@EvidentLed EvidentLed commented Jun 1, 2026

/claim #743

Closes #3316

Summary

  • Add a server-owned ISO createdAt timestamp to createPaymentIntent responses.
  • Keep the timestamp generated by the service, not by caller input.
  • Add focused regression coverage for the timestamp response behavior.

Demo

Short demo GIF: https://raw.githubusercontent.com/EvidentLed/bug-bounty/codex/demo-assets-3316/evidentled-payment-createdat-demo.gif

Payment createdAt demo

Verification

  • Red check before the fix: node --test apps/api/src/tests/paymentService.test.js failed because intent.createdAt was undefined.
  • node --test apps/api/src/tests/paymentService.test.js -> 1 pass, 0 fail.
  • node --test apps/api/src/tests/*.test.js -> 2 pass, 0 fail.
  • git diff --check origin/main..HEAD -> passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Payment intents should include createdAt timestamps

1 participant