I have to develop a "modest" website with support for bank card payment and payment from paypal (for buying event tickets from the website), but I've no idea about e-commerce developing, and I would like to know if there's, in the jungle of Internet, any website with any free software license, with support for such types of payment (or at least, for one of them), for exploring the source code and seen how it works.
Prefered language: PHP. Another possible alternative: Ruby.
Its behaviour is not complicated: the user selects an event he want go; then he selects the method of payment (paypal or using a credit/debit card), introduces the data (card number, security code --if any--, e-mail, and so on), the system connects to the bank or with the responsible entity for making the payment, and that's all.
There's thousand of websites with such behaviour (hotels, transport companies, etc), but I'm asking for a site with public source code.