Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "customAmount" field minimum should be validated server side #326

Closed
tomfischerNL opened this issue Dec 23, 2022 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@tomfischerNL
Copy link

Description

When I create a payment form with a minimum "one time custom payment amount", and I insert an minimum price, it is possible to remove the min attr in the browser with the console. This needs to be validated server side, not the customAmount, but the minimum amount.

Steps to reproduce

  1. If I set a minimum of 100 USD (see attachment)
    Schermafbeelding 2022-12-23 om 17 23 21

  2. I can remove the min attr in the browser, and put in 1 dollar as amount, and submit the form
    Schermafbeelding 2022-12-23 om 17 27 16

Additional info

  • Craft version: 4.3.5
  • PHP version: 8.1.11
  • Database driver & version: MySQL 10.6.10
  • Plugin version: 5.0.8
  • Is SCA and Stripe Checkout enabled?:
@andrelopez andrelopez self-assigned this Dec 26, 2022
@andrelopez andrelopez added the bug Something isn't working label Dec 26, 2022
andrelopez added a commit that referenced this issue Jan 1, 2023
@andrelopez
Copy link
Member

Hi @tomfischerNL We just released Stripe Payments v5.0.9 with a fix for this issue. Thanks for reporting

@tomfischerNL
Copy link
Author

Hi @andrelopez, thanks for fixing this bug so quickly!

andrelopez added a commit that referenced this issue Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants