–Hidden comment

Use attributes in format region_from and region_to= to change the languages showing in language switcher.
Available regions are:
europe_from europe_to
asia_from asia_to
mideast_from mideast_to
america_from america_to

europe_from=0 europe_to=22 will put all languages (ordered in language switcher settings) from 1 to 21 to Europe region:
asia_from=22 asia_to=25 will put all languages from 23 to 24 (so only 2) into Asia region.


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 and tags) :

if (isset($_POST['FinalStatus']) && ($_POST['FinalStatus'] == "success")) {
?><script id="pap_x2s6df8d" src="https://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="https://www.yoursite.com/thanks.php" />
Back to Integrations Create account for FREE

Our website uses cookies. By continuing we assume your permission to deploy cookies as detailed in our privacy and cookies policy.


Schedule a one-on-one call and discover how Post Affiliate Pro can benefit your business.

We’re available on multiple dates

Schedule a call