This is just for the sake of learning.
I'd like to learn to add a payment gateway in my website so that customers can make payments through debit cards(VISA/Mastercard/etc....)....

Any simple and easy to use free APIs ?? Any tutorial or any kind of help would be appreciated.
After I download the free API, what do I do?