Dai uno sguardo a questo link
http://www.mrwebmaster.it/script/script-php/pagamenti/