Cakephp-payment is a project mainly written in PHP, it's free.
CakePhp plugin that provides an ability of make electronic payments