How to setup DPD (Digital Product Delivery) Affiliate Program



DPD or Digital Product Delivery is a digital publishing platform for downloadable content. With DPD's copy-and-paste shopping cart and digital delivery system, you can easily sell and deliver your downloads, tangible goods and keycodes through your blog, website, Facebook, forum posts, and more. DPD automatically add unique and secure download URLs for your customer’s purchases and tracks record of customers and sales with your affiliate program like us.

Steps

Log in to DPD and select your store. Open the “Integrations” in the left menu and go to 3rd party tracking code integration. Click + button, select code, name it and add following code.
<script async>
function hideIF() {    
    document.getElementById('IF').style.visibility = '';
}
function getSaleInfo() {
    document.getElementById('st_code').style.visibility = 'hidden';
    document.getElementById('st_code').innerHTML='<iframe src="YOUR-OSI-URL/sales/salejs/amount:{{order.total_price-order.tax_price}}/transaction:{{order.id}}/firstname:{{customer.first_name}}/lastname:{{customer.last_name}}" alt="" id=IF width=50 height=50 border="0" frameborder="0" onload="hideIF()">';
}
window.onload = getSaleInfo;
</script>
<div id="st_code"></div>


Change ‘YOUR-OSI-URL’ with your OSI URL.