Currently, the user can enter a quantity less than $1 on Paypal’s website and some people are donations result in $0 because of Paypal fees. How can I set the minimum to be a $1 or more?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use form validation to ensure the value is >$1 before sending it to Paypal.
I would use both Javascript and PHP validation. Javascript is nice because the processing is done on the client and is done before the http request. PHP validation is required because the client could turn off Javascript.
Example of Javascript validation could be something like this:
Also, make sure you have clearly labeled ‘helper’ text next to the field that says something like “Donation Amount (Minimum of $5)”.