Home
Integration Methods
WorldPay
WorldPay integration is similar to PayPal, it also uses WorldPay callback.
Note! This is description of integration with WorldPay if you use
WorldPay buttons on your web pages. If you use WorldPay 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 WorldPay callback for another purpose, such as some kind of digital
delivery or membership registration.
Since version 4.2.5.0 integration with WorldPay works also with FuturePay recurring commissions.
1
Add code
Now add the following code into EVERY WorldPay button form
This will assign cookie value into M_aid and this value will be sent to PAP4 for processing.
2
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="http://www.yoursite.com/affiliate/scripts/notifysale.php" type="text/javascript">
</script>
...
</form>
3
Configuration
Next step is to configure WorldPay to use callback to our worldpay
script. 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 will
use its callback function to call our sale tracking script, and system
will generate commission for the affiliate.