Payment module

Hi All,

I want to develop a payment module which accepts debit / credit card and paypal account details.

  1. How do I implement this?
  2. How can i add security for account information storage?

Thanks