Home Integration Methods AlertPay

AlertPay

AlertPay integrates using IPN callback.
Note! This is description of integration with AlertPay if you use AlertPay buttons on your web pages. If you use AlertPay as a processing system in your shopping cart, use the method for integrating with shopping cart, not these steps.
Also, make sure you don't already use AlertPay IPN for another purpose, such as some kind of digital delivery or membership registration.

To integrate with AlertPay, you need AlertPay plugin which is distributed with PAP4 by default.
1
Activate IPN in AlertPay
Activate IPN in AlertPay: http://helpdesk.alertpay.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=132

Remember the security code and use following Alert URL:
http://www.yoursite.com/affiliate/plugins/AlertPay/alertpay.php
2
Activate AlertPay plugin in PAP4
1. Go to Plugins
2. Find AlertPay integration plugin and click Activate
3. After activation, find this plugin again and click Configure
4. Select number of custom field that can be used for PAP4 (default is 1)
5. Enter Security code you have remembered when activating IPN in AlertPay
3
Add code to every button
PAP4 can work with HTML code buttons only.

Add this code to every alertpay button. If you have choosed another custom field than 1, replace apc_1 with apc_YOUR_NUMBER in all places.
Example of modified button:

<form method="post" action="https://www.alertpay.com/PayProcess.aspx" >
<input type="hidden" name="ap_purchasetype" value="item"/>
<input type="hidden" name="ap_merchant" value="163899@gmail.com"/>
<input type="hidden" name="ap_itemname" value="gdfgdf"/>
<input type="hidden" name="ap_currency" value="USD"/>
<input type="hidden" name="ap_returnurl" value=""/>
<input type="hidden" name="ap_itemcode" value="dfg"/>
<input type="hidden" name="ap_quantity" value="1"/>
<input type="hidden" name="ap_description" value="dfg"/>
<input type="hidden" name="ap_amount" value="456"/>
<input type="image" name="ap_image" src="https://www.alertpay.com//PayNow/B410C80C841042BE90080C349815932Dg.gif"/>
<input type="hidden" name="apc_1" value="" id="pap_dx8vc2s5">
<script id="pap_x2s6df8d" src="http://www.yoursite.com/affiliate/scripts/notifysale.php" type="text/javascript">
</script>
</form>
This is all that is required. Now whenever there's sale, AlertPay will use its IPN function to call our sale tracking script, and system will generate commission for the affiliate.