You can find quite a few posts on Google about how to hash a password. As for how to store it, once you've salted and hashed it, insert it into the database as a string. ORMs like Hibernate or EclipseLink will allow you to do this in a database-independent fashion.
I strongly recommend against storing credit card information in your database without a substantial business and security review. Start by searching for payment card industry data security standards (PCI DSS).