Partner
An online payment platform that lets you send and receive money, shop, make online payments or get paid from almost anywhere in the world.
AlertPay (Payza) integrates using IPN callback.
Note! Here is an explanation of how to integrate Payza with your website if you use the Payza buttons. Rather than following these steps, use the method for integrating with Payza in your shopping cart instead.
Also, make sure you don’t already use Payza IPN for another purpose, e.g. some digital delivery or membership registration.
To integrate with AlertPay, you need AlertPay plugin which is distributed with PAP by default.
1. Activate IPN in AlertPay
Activate IPN in Payza
Remember the security code and use following Alert URL:
https://URL_TO_PostAffiliatePro/plugins/AlertPay/alertpay.php
2. Activate AlertPay plugin in PAP
- Go to Plugins
- Find AlertPay integration plugin and click Activate
- After activation, find this plugin again and click Configure
- Select the number of custom fields that can be used for PAP (default is 1)
- Enter the Security code you were given when activating IPN in AlertPay
3. Add code to every button
PAP 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.
<input type="hidden" name="apc_1" value="" id="pap_dx8vc2s5">
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript">
</script>
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="https://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript">
</script>
</form>
This is all that is required. Now whenever there’s a sale, Payza will use its IPN function to call our sale tracking script, and system will generate commission for the affiliate.