This library is written to reflect PayPal's documentation directly. It's very simple to use with a quick understanding of the way it's designed.
The follow sample demonstrates how to work with this library.The PayFlow library really only consists of a single call: ProcessTransaction. All types of transactions can be made using this function. You would simply adjust the values for tender and trxtype accordingly.
The controller file (payflow.php) contains a Process_transaction() function setup with all the possible parameters ready to populate, and it also contains the Process_transaction_demo() function that you see below.
The library will handle generating the API request using these parameters and will return an array of all response data from PayPal. Click the link below to see a sample of what you'll receive. Note that my testing account is returning Fraud Filter warnings. This may or may not happen with your account depending on your Fraud Filter settings in PayPal Manager.
Run the code above and see the output.