Skip to content

Reject non-positive payment amounts#4284

Open
13415887994 wants to merge 1 commit into
SecureBananaLabs:mainfrom
13415887994:payment-amount-validation
Open

Reject non-positive payment amounts#4284
13415887994 wants to merge 1 commit into
SecureBananaLabs:mainfrom
13415887994:payment-amount-validation

Conversation

@13415887994

Copy link
Copy Markdown

Summary

  • Reject non-finite and non-positive payment intent amounts with a 400 error.
  • Allow the API error handler to return intentional client error status codes instead of converting every thrown error to 500.
  • Add service-level regression tests for invalid and valid payment amounts.

Closes #4276

Tests

  • node --test apps/api/src/tests/paymentService.test.js

github-actions Bot added a commit that referenced this pull request Jun 4, 2026
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.

Payment intent should reject non-positive amounts

1 participant