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

User is able to pay too much if they pay in partial payments #1345

Open
briangrossman opened this issue May 16, 2022 · 0 comments
Open

User is able to pay too much if they pay in partial payments #1345

briangrossman opened this issue May 16, 2022 · 0 comments

Comments

@briangrossman
Copy link

briangrossman commented May 16, 2022

Steps to Reproduce

  • Set yourself up to be able to pay for a Bootcamp
  • Make a partial payment
  • Begin another partial payment that's less than the price of the Bootcamp, but would put your total payment over the cost of the Bootcamp.
  • Click to make the payment

Expected Behavior

  • The page should warn the learner that they're paying too much and not let them make a payment

Actual Behavior

  • The learner is able to make a payment

Stacktrace

Here's where the error message is generated to prevent the learner from paying to much:

if (adjustedAmount > balance) {
return {
amount: "Payment amount must be less than the remaining balance"
}

Related Issues

Screenshot or Screencast

PayTooMuch.mov

Here's the receipt for this purchase:
PayTooMuch.pdf

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

No branches or pull requests

1 participant