If you have the Google Checkout shopping cart and you are looking to setup your own affiliate program, this can be easily done. If you do not already have an affiliate software system you can sign up for one of the Omnistar Affiliate Software Plans.

After you have your Affiliate Software account setup the integration into Google Checkout is really easy. Simply follow the steps below.


Step 1. Add Code to your Landing Pages

Move the following code to your landing page. The landing page is the main page of your web site where web users will end up after clicking on the affiliate link. 
Please Note: Where it says http://yourcompany.myomnistar.com, please replace that URL with the actual URL of where your software is installed.

var resource = document.createElement('script'); 
resource.src = "http://yourcompany.myomnistar.com/track.js";
script.parentNode.insertBefore(resource, script);

Step 2. Add the Sale Tracking code

To integrate sale tracking with Google Checkout, you should do the following steps. 

1. You need Google Checkout plugin from Google API.

2. Log in to your Google Checkout merchant account. Go to Settings panel. Now select Integration from left menu.Next you must insert URL https://yourdomain.com/your-notify-file.php into "API callback URL: " textbox. Last thing, is to select Notification as HTML radio button from "Callback method: " group. Do not forget to save your settings.

3. Go to your your-notify-file.php and put the following code in this file.

<?php if($_REQUEST['google-order-number'] )

function hideIF() { 
document.getElementById('IF').style.display = '';
function getSaleInfo() {

document.getElementById('st_code').innerHTML='<iframe src="https://yourcompany.myomnistar.com/salejs.php?amount=<?=$amount?... $ordid?>" alt="" id=IF width=50 height=50 border="0" frameborder="0" onload="hideIF()">';
window.onload = getSaleInfo; 
<div id="st_code"></div>
<?php }?>


That's it. You are now integrated with Google Checkout.

Step 3. Test
