Google Checkout integrates using Google Checkout notifications.

To integrate with Google Checkout, you need Google Checkout plugin which is distributed with PAP by default.

For more informations about Google Checkout integration go here.


Setting up your Google Checkout merchant account

Log in to your Google Checkout merchant account. Go to Settings panel. Now select Integration from left menu. If it is checked, uncheck "My company will only post digitally signed carts.". Next, you must insert URL https://URL_TO_PostAffiliatePro/plugins/GoogleCheckout/googlecheckout.php into "API callback URL:" textbox. Last thing, is to select XML radio button from "Callback method:" group. Do not forget to save your settings.

Notice: URL https://URL_TO_PostAffiliatePro/plugins/GoogleCheckout/googlecheckout.php must be on secure domain (More on Google documentation).


Activate and configure Google Checkout plugin

Right after you activate Google Checkout plugin you need to setup it.Login to your merchant panel. Go to menu Start->Plugins. Now click Configure button in Google Checkout plugin item. Here you must set your Merchant ID and Merchant Key. These can be found in your Google checkout merchant account in Settings->Integration menu. In textbox Custom value separator insert separator string, for example "||".


Add tracking code to your Google checkout Cart buttons

If you are using Google Checkout Cart buttons, change code of element product-private-data  in every cart button:

<input value="example_value" class="product-private-data" type="hidden" id="pap_ab78y5t4a">

Example code:

<input value="example_value" class="product-private-data" type="hidden" id="pap_ab78y5t4a">

Note: If you are using option "Process whole cart as one transaction" use this code instead:

<input value="" class="shopping-cart.merchant-private-data" type="hidden" id="pap_dx8vc2s5">


Add tracking code to your Google Checkout Buy now buttons

If you are using Google Checkout Buy now buttons, change code in every buy now button:

<input name="shopping-cart.items.item-1.merchant-private-item-data" id="pap_ab78y5t4a" type="hidden" value="example_value"/>

Example code:

<input name="shopping-cart.items.item-1.merchant-private-item-data" id="pap_ab78y5t4a" type="hidden" value="example_value"/>

Note: If you are using option "Process whole cart as one transaction" use this code instead:

<input name="shopping-cart.merchant-private-data" id="pap_dx8vc2s5" type="hidden" value=""/>


Finalizing integration

Finally, after your buttons you need to add this code:

<script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript"> PostAffTracker.setAccountId('Account_ID');

All set. Now you are ready to start tracking sales from your Google Checkout account.

Note:There is one more option named "Process whole cart as one transaction"in Google Checkout plugin setup. If you check this option, pap willregister whole cart as one big transaction. In this case do not forgetto use merchant-private-data instead of merchant-private-item-data totransmit custom value information to PAP.

Every Google Checkout user should contact Google checkout team at and request to whitelist their domain. Otherwise the tracking will not work.