TrialPay integrates using XML Postback.
Note! This is description ofintegration with TrialPay.

1.

Activate TrialPay in PAP

  1. Go to Plugins
  2. Find TrialPay integration plugin and click Activate

2.

Setup URL

  1. Log into TrialPay Merchant Panel
  2. Go to Product Console and Edit or add new Product.
  3. Choose Notification from left menu.
  4. For Order payout notification choose How would you like to be Notified? to: Script.
  5. In Script Notification set Notification Script URL to: http://URL_TO_PostAffiliatePro/plugins/TrialPay/trialpay.php
  6. In Script Notification set Method to: POST(XML)
  7. In Script Notification set GET Parameters/POST Body to (copy&paste code below): <order> <sub_id>%sid%</sub_id> <total>%revenue%</total> <email>%email%</email> <order_id>%oid%</order_id> <item_id>%pid%</item_id> </order>
  8. Save

3.

Adding following code into EVERY TrialPay buton

Be sure to add this code to every button for TrialPay. Please make sure that button you have has id="pap_kqw2bj53x"

<input type="hidden" name="sid" value="" id="pap_kqw2bj53x">
<script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript">
</script>

4.

Now add the following code for EVERY TrialPay link. Please make sure that link you have has id="pap_kl53jid6rt".


<script type="text/javascript">
PostAffTracker.writeCookieToLink('pap_dx8vc2s5', 'sid');
</script>