A mobile point of sale solution that empowers your business of any size to perform secure cashless transactions anytime.

This integration method helps you register sale commissions using IPN from your plugnpay buttons.


Generating button code

To integrate button form with PAP, you have to do some special steps to do it when generating the button code. First, you have to setup "Please select your Thank You response action" to option "Go to your own defined URL". On next screen you have to define the Succes-link to PHP thank you page with integration code (this code have to inside of the body code - be between <body> and </body> tags) :

if (isset($_POST['FinalStatus']) && ($_POST['FinalStatus'] == "success")) {
?><script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
 PostAffTracker.setAccountId('Account_ID');var sale = PostAffTracker.createSale();
sale.setTotalCost('<?php echo $_POST['card-amount']; ?>');
sale.setOrderID('<?php echo $_POST['orderID']; ?>');

You can use all this parameters if you need it:
$_POST['card-amount']  = total cost
$_POST['FinalStatus']  = success if succeeded
$_POST['tax'] = you can deduct from total cost
$_POST['orderID']= order id
$_POST['shipinfo'] = you can deduct from total cost
$_POST['currency'] = 3 alpha currency in lowercase


Modifying the existing button forms

If you do not want to generate all forms again, you can simply add some code into the button form. The most important thing is to have custom thank you page link defined:

<input type="hidden" name="success-link" value="" />