Home Integration Methods CyberSource (SOP used by other script)

CyberSource (SOP used by other script)

CyberSource integrates using SOP callback even if the callback is used by other system (e.g. shopping cart).
1
Setup your custom variable number
Right after you activate CyberSource plugin you need to setup number of custom variable, which will be used to transfer tracking data to PAP. Login to your merchant panel. Go to menu Start->Plugins. Now click Configure button in CyberSource plugin item. Here you can set up numer from 1 to 4. Default is 1.
2
Edit button forms
Now add the following code into EVERY CyberSource button form.
Name of item must be merchantDefinedDataNUMBER. Where NUMBER is number of custom field which you configured in step 1.
3
Integration 2
Now the SOP callback is pointed to your script. This callback has to be forwarded also to PAP cybersource.php script, which url is http://URL_TO_PostAffiliatePro/plugins/CyberSource/cybersource.php. In case, your cybersource processing script is in PHP, you can use following code to accomplish that. You can place it at the beginning of your processing file.
This will ensure that whole SOP callback will be forwarded without affecting your original script
This is all that is required. Now whenever there's sale, CyberSource will use its SOP function to call our sale tracking script, and system will generate commission for the affiliate.