Skip to content

fix: validate payment amounts#2053

Open
Ceyvion wants to merge 1 commit into
SecureBananaLabs:mainfrom
Ceyvion:fix/payment-amount-validation-2052
Open

fix: validate payment amounts#2053
Ceyvion wants to merge 1 commit into
SecureBananaLabs:mainfrom
Ceyvion:fix/payment-amount-validation-2052

Conversation

@Ceyvion
Copy link
Copy Markdown

@Ceyvion Ceyvion commented May 30, 2026

Closes #2052
/claim #743

Summary

  • validate payment creation payloads before creating payment intents
  • reject missing or nonpositive amounts with the existing failure envelope
  • preserve valid payment creation behavior and existing currency defaulting

Verification

  • node --test apps/api/src/tests/payment.test.js
  • node --test apps/api/src/tests/health.test.js apps/api/src/tests/payment.test.js
  • git diff --check

github-actions Bot added a commit that referenced this pull request May 30, 2026
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 creation should reject missing or nonpositive amounts

1 participant