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

Disable gateway when user has insufficient points #37

Open
JDGrimes opened this issue May 23, 2017 · 1 comment
Open

Disable gateway when user has insufficient points #37

JDGrimes opened this issue May 23, 2017 · 1 comment
Labels

Comments

@JDGrimes
Copy link
Member

In the same vein as #36, I wonder if we should disable the gateway when a user has insufficient points to make the purchase. I discovered that the gateways actually have a max_amount property that is automatically taken into account when checking the availability of the gateway to pay for the current order.

@JDGrimes JDGrimes added this to the 1.2.0 milestone May 23, 2017
@JDGrimes
Copy link
Member Author

We already show an error to the user after they submit the order if they have insufficient points to pay. However, it just seems like we could save them the hassle of that by telling them up front that they can't pay.

Now that users can pay with one of several points types (if the admin allows it), we have to check each points type to see if they have enough. Really, I guess it also makes sense to only show those points types in the dropdown for the user to choose from that they actually have enough of to pay with.

@JDGrimes JDGrimes removed this from the 1.2.0 milestone May 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant