Pap_Api_SaleTracker
API provides a way to register sales using PHP. This is an alternative to the General solution you can find in Integration methods.
Please make sure that you include the PapApi.class.php before you use this code.
Example of registering sale:
include_once('PapApi.class.php');
$saleTracker = new Pap_Api_SaleTracker('URL_TO_PAP/scripts/sale.php');
$saleTracker->setAccountId('default1');
//if you need to set customer's IP use this row, otherwise is used IP recognized from $_SERVER['REMOTE_A...