| 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.
|
| |
1 Activate IPN in AlertPay
|
|
|
2 Activate AlertPay plugin
|
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 (default is 1)
5. Enter Security code you have remembered when activating IPN in AlertPay
|
|
3 Add code to every button
|
| Add this code to every alertpay button. If you have choosen 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.blizsoft.com/affiliate/trackingcode_sale.php?mid=xxx&sec_id=xxx&sale=<?=$orderAmount?>&orderId=<?=$orderId?>" type="text/javascript">
</script>
</form>
|
|
| |
Please take care to replace
<?=$orderId?>
and
<?=$orderAmount?>
in the sale code with your server side script notations for the orderid and total amount variable used in your website.
|
| |
|
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
|
| |