TrialPay integration
The payment and promotions platform that instantly increases sales from your current traffic.
TrialPay integrates using XML Postback.
Note! This is description ofintegration with TrialPay.
Activate TrialPay in PAP
- Go to Plugins
- Find TrialPay integration plugin and click Activate
Setup URL
- Log into TrialPay Merchant Panel
- Go to Product Console and Edit or add new Product.
- Choose Notification from left menu.
- For Order payout notification choose How would you like to be Notified? to: Script.
- In Script Notification set Notification Script URL to: https://URL_TO_PostAffiliatePro/plugins/TrialPay/trialpay.php
- In Script Notification set Method to: POST(XML)
- 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>
Save and you are done.
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="https://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript">
</script>
TrialPay Link Integration
Now add the following code for EVERY TrialPay link. Please make sure that link you have has id=”pap_kl53jid6rt”:
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">PostAffTracker.setAccountId('Account_ID');
PostAffTracker.writeCookieToLink('pap_dx8vc2s5', 'sid');
</script>
.