+1  A: 

You might look into Satchmo's source code. Satchmo is an open source e-commerce app for Django, and I'm pretty sure that it has support for a variety of payment gateways.

Their payment modules appear to work with at least PayPal and Authorize.Net from the list you gave, among others.

Will McCutchen
The satchmo payment processing code is also being broken out into its own project. http://bitbucket.org/bkroeze/django-bursar/
istruble