Partner
A leading global payments provider for companies of all sizes.
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 4.2.5.0 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="https://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript">
</script>
This will assign cookie value into M_aid and this value will be sent to PAP for processing.
Example
Example of updated WorldPay form:
<form action="http://www.worldpay.com....>
...
<input type="hidden" name="M_aid" value="" id="pap_dx8vc2s5">
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript">
</script>
...
</form>
Configuration
Next step is to configure WorldPay to use callback to our worldpayscript. You should specify there full url to the worldpay script:
https://URL_TO_PostAffiliatePro/plugins/WorldPay/worldpay.php
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.