WorldPay integration is similar to PayPal, it also uses WorldPay callback.
Note! This is description of integration with WorldPay if you useWorldPay buttons on your web pages. If you use WorldPay as a processingsystem in your shopping cart, use the method for integrating withshopping cart, not these steps.
Also, make sure you don't alreadyuse WorldPay callback for another purpose, such as some kind of digitaldelivery or membership registration.
Since version integration with WorldPay works also with FuturePay recurring commissions.


Add code

Now add the following code into EVERY WorldPay button form

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

This will assign cookie value into M_aid and this value will be sent to PAP for processing.



Example of updated WorldPay form:

&lt;form action=";&lt;br> ... &lt;br>&lt;span style="font-weight: bold;">&lt;input type="hidden" name="&lt;/span>M_aid&lt;span style="font-weight: bold;">" value="" id="pap_dx8vc2s5"&gt;&lt;/span>&lt;br style="font-weight: bold;">&lt;span style="font-weight: bold;">&lt;script id="pap_x2s6df8d" src="" type="text/javascript"&gt;&lt;/span>&lt;br style="font-weight: bold;">&lt;span style="font-weight: bold;">&lt;/script&gt;&lt;/span>&lt;br> ...&lt;br> &lt;/form&gt;



Next step is to configure WorldPay to use callback to our worldpayscript. You should specify there full url to the worldpay script:


Now activate plugin "WorldPay callback handling" and that's it. This is all that is required. Now whenever there's sale, WorldPay willuse its callback function to call our sale tracking script, and systemwill generate commission for the affiliate.