At Tivix we have used Braintree as a payments gateway on a variety of different custom development projects and find that it's an excellent way to build PCI-compliant payment processing into an application. We've open-sourced the Python/Django code that we have written for this, and you can find it here.
