I am in the middle of developing xasset, which does contain a payment processing gateway system, which at the moment supports paypal.
This code be used/lifted if required. Although it has been my experience that payment processing is tightly tied into the cart system that it is supporting.. at least in my experience anyway.
HTH.