A peer-to-peer payments service.
Google Wallet integrates using Google Wallet notifications.
To integrate with Google Wallet, you need Google Checkout plugin which is distributed with PAP by default.
Setting up your Google Checkout merchant account
Log in to your Google Wallet 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 Wallet merchant account in Settings >Integration menu. Leave Custom value separator empty.
Add tracking code to your Google checkout Cart buttons
If you are using Google Wallet Cart buttons, add following code, into every cart button:
<input value="" class="product-private-data" type="hidden" id="pap_dx8vc2s5">
Example code:
...
<div class="product">
<input value="Google T-Shirt" class="product-title" type="hidden">
<input value="" class="product-private-data" type="hidden" id="pap_dx8vc2s5">
<input value="14.99" class="product-price" type="hidden">
<div title="Add to cart" role="button" tabindex="0" class="googlecart-add-button"></div>
</div>
...
Note: If you are using option “Process whole cart as one transaction” use this code instead:
Example code:
...
<div class="product">
<input value="Google T-Shirt" class="product-title" type="hidden">
<input value="" class="shopping-cart.merchant-private-data" type="hidden" id="pap_dx8vc2s5">
<input value="14.99" class="product-price" type="hidden">
<div title="Add to cart" role="button" tabindex="0" class="googlecart-add-button"></div>
</div>
...
Add tracking code to your Google Checkout Buy now buttons
If you are using Google Wallet Buy now buttons, add following code into every buy now button:
<input name="shopping-cart.items.item-1.merchant-private-item-data" id="pap_dx8vc2s5" type="hidden" value=""/>
Example code:
....
<form action="https://sandbox.google.com/checkout/api/checkout/v2/checkoutForm/Merchant/243538163685636" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm">
<input name="item_name_1" type="hidden" value="Pohar"/>
<input name="item_description_1" type="hidden" value="google poharik"/>
<input name="item_quantity_1" type="hidden" value="1"/>
<input name="item_price_1" type="hidden" value="25.0"/>
<input name="item_currency_1" type="hidden" value="USD"/>
<input name="shopping-cart.items.item-1.merchant-private-item-data" id="pap_dx8vc2s5" type="hidden" value=""/>
<input name="charset" type="hidden" value="utf-8"/>
<input alt="Google Wallet"src="https://sandbox.google.com/checkout/buttons/buy.gif?merchant_id=243538163685636&w=117&h=48&style=white&variant=text&loc=en_US" type="image"/>
</form>
....
Note: If you are using option “Process whole cart as one transaction” use this code instead:
Example code:
....
<formaction="https://sandbox.google.com/checkout/api/checkout/v2/checkoutForm/Merchant/243538163685636"id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm">
<input name="item_name_1" type="hidden" value="Pohar"/>
<input name="item_description_1" type="hidden" value="google poharik"/>
<input name="item_quantity_1" type="hidden" value="1"/>
<input name="item_price_1" type="hidden" value="25.0"/>
<input name="item_currency_1" type="hidden" value="USD"/>
<input name="
shopping-cart.merchant-private-data
"
id="pap_dx8vc2s5" type="hidden" value=""/>
<input name="charset" type="hidden" value="utf-8"/>
<input alt=""src="https://sandbox.google.com/checkout/buttons/buy.gif?merchant_id=243538163685636&w=117&h=48&style=white&variant=text&loc=en_US"type="image"/>
</form>
....
Finalizing integration
Next, after your buttons you need to add this code:
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript">
</script>
All set. Now you are ready to start tracking sales from your Google Wallet 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 will register whole cart as one big transaction. In this case do not forget to use merchant-private-data instead of merchant-private-item-data to transmit custom value information to PAP.
Every Google Wallet user should contact Google checkout team at checkout-api-support@google.com and request to whitelist their domain. Otherwise the tracking will not work.
Google Checkout (custom field used for other data)
Would you like to improve your affiliate software even more? Check out the Google Checkout (custom field used for other data) integration.
Google Checkout (in WordPress ecommerce Plugin)
The article provides information on integrating Google Checkout with WordPress ecommerce Plugin. It describes the steps required to setup and configure the Google Checkout merchant account and activate the plugin. It also includes instructions on how to edit specific files to enable Post Affiliate Pro integration. The article emphasizes the importance of ensuring a secure domain for the URL and provides related resources.
The article discusses the integration of buttons and the payment response URL with RBS WorldPay in Post Affiliate Pro 4. The admin panel allows for easy set-up of the Payment Response URL to send transaction details, and steps are provided for when the URL is already in use. Additionally, the article provides code for proper tracking of affiliates through integrated buttons. Various related resources are listed for further reference.
How to integrate Post Affiliate Pro with Google Analytics?
The article discusses how to track statistics in Google Analytics for affiliate-referred visits on an e-commerce site. The author recommends using the Google Analytics URL builder to generate URLs that lead to the site and can be used as "Destination URLs" in Post Affiliate Pro banners. The required fields to fill in the URL builder are highlighted, and a decoded version of the URL is provided. Additionally, the author advises using Redirect Links as the linking method and provides a list of other related articles for reference.