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 22.214.171.124 integration with WorldPay works also with FuturePay recurring commissions.
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 PAP for processing.
Example of updated WorldPay form:
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.