I was asked to implement simple shopping cart by using postgres and jsp for my school project. While I am implementing the project, a curious question arises in my head that: 1. How can I validate the user's input credit card (master/visa or paypal) when he press submit? 2. How can I maintain security if I want to store the credit card detail into the database?
I have no experience on website development. I am very appreciated if some one can give me some insights of the implementation as well as any hidden issue that I need to watch out related to the security. Thank you!