I need to implement Paypal Payflow Pro in a custom plug-in

I need to implement Paypal Payflow Pro in a custom plug-in and was wondering if you could tell me what files in the marketpress plug-in I can look at to steal the code I need.

Thanks,

Andrew