Skip to content

Instantly share code, notes, and snippets.

@infusedmj
Last active December 20, 2015 02:49
Show Gist options
  • Save infusedmj/6059501 to your computer and use it in GitHub Desktop.
Save infusedmj/6059501 to your computer and use it in GitHub Desktop.
<?php
include 'PapApi.class.php';
$aff = "a975";
$ip = $_SERVER['REMOTE_ADDR'];
$saleTracker = new Pap_Api_SaleTracker('http://mobeoffice.com/affiliate/scripts/sale.php');
$saleTracker->setAccountId('default1');
$action = $saleTracker->createAction($action);
$action->setAffiliateID($aff);
$action->setStatus("A");
$action->setTotalCost(0.00);
$action->setCampaignID("4e486e4c");
$result = $saleTracker->register();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment