Skip to content

Test a postback campaign with the demo files

A postback lets another site or app report a sale to AffiliatePro by calling a URL. The campaign form includes demo files to test the whole flow.

1. Create the campaign

  1. Log in to your AffiliatePro admin panel.
  2. Click Marketing → Campaigns and create a campaign with Tool Type = Sale Integration.
  3. In Integration Setup, choose Postback, set Enable Postback, enter the Postback domain location, choose the Campaign and pick the Dynamic Params you need.
  4. Save. Copy Your Generated Postback URL.

2. Install the demo

  1. Under Demo files and instructions, download the order demo and the postback demo, and unzip them.
  2. Upload order_demo.php and postback_demo.php to a folder on your server (for example /postback_folder/).
  3. Set the campaign Campaign Target Link to your order_demo.php address and save.

3. Run the test

  1. Log in as an affiliate and copy the campaign link.
  2. Open it in a private window. The demo order form opens.
  3. Fill in the affiliate campaign link, your AffiliatePro address and the campaign postback URL, then send the postback.
  4. The demo shows the response (HTTP 200 means it was received).

Check the result in Reports → All Orders, Reports → Transactions and the affiliate wallet. View postback instructions in the form has the full step list.

Was this article helpful?