Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

// Google Checkout & Google Adsense removed from natives modules

  • Loading branch information...
commit 57fadf1fcf01fb80950f06133c0fd14b53337693 1 parent f5e3695
François Gaillard authored March 11, 2013

Showing 43 changed files with 0 additions and 5,182 deletions. Show diff stats Hide diff stats

  1. 6  .gitmodules
  2. BIN  gadsense/adsense_script.gif
  3. 1  gadsense/backward_compatibility
  4. 13  gadsense/config.xml
  5. 13  gadsense/de.php
  6. 13  gadsense/es.php
  7. 13  gadsense/fr.php
  8. 116  gadsense/gadsense.php
  9. 35  gadsense/index.php
  10. 13  gadsense/it.php
  11. BIN  gadsense/logo.gif
  12. BIN  gadsense/logo.png
  13. 11  gcheckout/.htaccess
  14. 1  gcheckout/backward_compatibility
  15. 12  gcheckout/config.xml
  16. 55  gcheckout/confirm.tpl
  17. 44  gcheckout/de.php
  18. 44  gcheckout/es.php
  19. 44  gcheckout/fr.php
  20. BIN  gcheckout/gcheckout.gif
  21. 268  gcheckout/gcheckout.php
  22. 21  gcheckout/htaccessBugInformation.php
  23. 35  gcheckout/index.php
  24. 44  gcheckout/it.php
  25. 1,612  gcheckout/library/googlecart.php
  26. 161  gcheckout/library/googleitem.php
  27. 96  gcheckout/library/googlelog.php
  28. 115  gcheckout/library/googlemerchantcalculations.php
  29. 757  gcheckout/library/googlerequest.php
  30. 233  gcheckout/library/googleresponse.php
  31. 105  gcheckout/library/googleresult.php
  32. 532  gcheckout/library/googleshipping.php
  33. 146  gcheckout/library/googletax.php
  34. 35  gcheckout/library/index.php
  35. 94  gcheckout/library/xml-processing/gc_xmlbuilder.php
  36. 202  gcheckout/library/xml-processing/gc_xmlparser.php
  37. 35  gcheckout/library/xml-processing/index.php
  38. BIN  gcheckout/logo.gif
  39. BIN  gcheckout/logo.png
  40. 47  gcheckout/payment.php
  41. 31  gcheckout/payment.tpl
  42. 26  gcheckout/payment_return.tpl
  43. 153  gcheckout/validation.php
6  .gitmodules
@@ -25,15 +25,9 @@
25 25
 [submodule "fedexcarrier/backward_compatibility"]
26 26
 	path = fedexcarrier/backward_compatibility
27 27
 	url = https://github.com/PrestaShop/PrestaShop-backward_compatibility
28  
-[submodule "gadsense/backward_compatibility"]
29  
-	path = gadsense/backward_compatibility
30  
-	url = https://github.com/PrestaShop/PrestaShop-backward_compatibility
31 28
 [submodule "ganalytics/backward_compatibility"]
32 29
 	path = ganalytics/backward_compatibility
33 30
 	url = https://github.com/PrestaShop/PrestaShop-backward_compatibility
34  
-[submodule "gcheckout/backward_compatibility"]
35  
-	path = gcheckout/backward_compatibility
36  
-	url = https://github.com/PrestaShop/PrestaShop-backward_compatibility
37 31
 [submodule "hipay/backward_compatibility"]
38 32
 	path = hipay/backward_compatibility
39 33
 	url = https://github.com/PrestaShop/PrestaShop-backward_compatibility
BIN  gadsense/adsense_script.gif
1  gadsense/backward_compatibility
... ...
@@ -1 +0,0 @@
1  
-Subproject commit 9ecad6f082ddd4afbaf0e356b978a96595f32744
13  gadsense/config.xml
... ...
@@ -1,13 +0,0 @@
1  
-<?xml version="1.0" encoding="UTF-8" ?>
2  
-<module>
3  
-	<name>gadsense</name>
4  
-	<displayName><![CDATA[Google Adsense]]></displayName>
5  
-	<version><![CDATA[1.2.1]]></version>
6  
-	<description><![CDATA[Integrate Google Adsense script into your shop]]></description>
7  
-	<author><![CDATA[PrestaShop]]></author>
8  
-	<tab><![CDATA[advertising_marketing]]></tab>
9  
-	<confirmUninstall>Are you sure you want to delete your details ?</confirmUninstall>
10  
-	<is_configurable>1</is_configurable>
11  
-	<need_instance>1</need_instance>
12  
-	<limited_countries></limited_countries>
13  
-</module>
13  gadsense/de.php
... ...
@@ -1,13 +0,0 @@
1  
-<?php
2  
-
3  
-global $_MODULE;
4  
-$_MODULE = array();
5  
-$_MODULE['<{gadsense}prestashop>gadsense_8a41674922e424cde4dd47c91f9d62e8'] = 'Google Adsense';
6  
-$_MODULE['<{gadsense}prestashop>gadsense_4148996483a2cfeed90c66dc539c8f1a'] = 'Sie haben Ihren Google Adsense Code noch nicht eingestellt';
7  
-$_MODULE['<{gadsense}prestashop>gadsense_e32c2b519ed33ed45a4c0a4b1b359447'] = 'Integrieren Sie das Google Adsense Script in Ihren Shop';
8  
-$_MODULE['<{gadsense}prestashop>gadsense_fa214007826415a21a8456e3e09f999d'] = 'Sie sind sicher, dass Sie Ihre Daten löschen wollen?';
9  
-$_MODULE['<{gadsense}prestashop>gadsense_c888438d14855d7d96a2724ee9c306bd'] = 'Einstellungen aktualisiert';
10  
-$_MODULE['<{gadsense}prestashop>gadsense_f4f70727dc34561dfde1a3c529b6205c'] = 'Einstellungen';
11  
-$_MODULE['<{gadsense}prestashop>gadsense_30c2b4b5e19ac71fefa1b4d688a7a98f'] = 'Ihr Code';
12  
-$_MODULE['<{gadsense}prestashop>gadsense_81eeab9506186e2dca8faefa78d54067'] = 'Beispiel:';
13  
-$_MODULE['<{gadsense}prestashop>gadsense_b17f3f4dcf653a5776792498a9b44d6a'] = 'Einstellungen aktualisieren';
13  gadsense/es.php
... ...
@@ -1,13 +0,0 @@
1  
-<?php
2  
-
3  
-global $_MODULE;
4  
-$_MODULE = array();
5  
-$_MODULE['<{gadsense}prestashop>gadsense_8a41674922e424cde4dd47c91f9d62e8'] = 'Google Adsense';
6  
-$_MODULE['<{gadsense}prestashop>gadsense_4148996483a2cfeed90c66dc539c8f1a'] = 'Aún no ha configurado su código de Google Adsense';
7  
-$_MODULE['<{gadsense}prestashop>gadsense_e32c2b519ed33ed45a4c0a4b1b359447'] = 'Integrar el script de Google Adsense en su tienda';
8  
-$_MODULE['<{gadsense}prestashop>gadsense_fa214007826415a21a8456e3e09f999d'] = '¿Está seguro de querer eliminar todos sus datos?';
9  
-$_MODULE['<{gadsense}prestashop>gadsense_c888438d14855d7d96a2724ee9c306bd'] = 'Configuración actualizada';
10  
-$_MODULE['<{gadsense}prestashop>gadsense_f4f70727dc34561dfde1a3c529b6205c'] = 'Configuración';
11  
-$_MODULE['<{gadsense}prestashop>gadsense_30c2b4b5e19ac71fefa1b4d688a7a98f'] = 'Su código';
12  
-$_MODULE['<{gadsense}prestashop>gadsense_81eeab9506186e2dca8faefa78d54067'] = 'Ejemplo:';
13  
-$_MODULE['<{gadsense}prestashop>gadsense_b17f3f4dcf653a5776792498a9b44d6a'] = 'Ajustes de actualización';
13  gadsense/fr.php
... ...
@@ -1,13 +0,0 @@
1  
-<?php
2  
-
3  
-global $_MODULE;
4  
-$_MODULE = array();
5  
-$_MODULE['<{gadsense}prestashop>gadsense_8a41674922e424cde4dd47c91f9d62e8'] = 'Google Adsense';
6  
-$_MODULE['<{gadsense}prestashop>gadsense_4148996483a2cfeed90c66dc539c8f1a'] = 'Vous n\'avez pas encore paramétré votre code Google Adsense.';
7  
-$_MODULE['<{gadsense}prestashop>gadsense_e32c2b519ed33ed45a4c0a4b1b359447'] = 'Intégrer le script Google Adsense dans sa boutique';
8  
-$_MODULE['<{gadsense}prestashop>gadsense_fa214007826415a21a8456e3e09f999d'] = 'Etes-vous sûr de vouloir supprimer vos paramètres ?';
9  
-$_MODULE['<{gadsense}prestashop>gadsense_c888438d14855d7d96a2724ee9c306bd'] = 'Paramètres mis à jour.';
10  
-$_MODULE['<{gadsense}prestashop>gadsense_f4f70727dc34561dfde1a3c529b6205c'] = 'Paramètres.';
11  
-$_MODULE['<{gadsense}prestashop>gadsense_30c2b4b5e19ac71fefa1b4d688a7a98f'] = 'Votre code';
12  
-$_MODULE['<{gadsense}prestashop>gadsense_81eeab9506186e2dca8faefa78d54067'] = 'Exemple :';
13  
-$_MODULE['<{gadsense}prestashop>gadsense_b17f3f4dcf653a5776792498a9b44d6a'] = 'Mettre à jour les paramètres';
116  gadsense/gadsense.php
... ...
@@ -1,116 +0,0 @@
1  
-<?php
2  
-/*
3  
-* 2007-2013 PrestaShop
4  
-*
5  
-* NOTICE OF LICENSE
6  
-*
7  
-* This source file is subject to the Academic Free License (AFL 3.0)
8  
-* that is bundled with this package in the file LICENSE.txt.
9  
-* It is also available through the world-wide-web at this URL:
10  
-* http://opensource.org/licenses/afl-3.0.php
11  
-* If you did not receive a copy of the license and are unable to
12  
-* obtain it through the world-wide-web, please send an email
13  
-* to license@prestashop.com so we can send you a copy immediately.
14  
-*
15  
-* DISCLAIMER
16  
-*
17  
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
18  
-* versions in the future. If you wish to customize PrestaShop for your
19  
-* needs please refer to http://www.prestashop.com for more information.
20  
-*
21  
-*  @author PrestaShop SA <contact@prestashop.com>
22  
-*  @copyright  2007-2013 PrestaShop SA
23  
-*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
24  
-*  International Registered Trademark & Property of PrestaShop SA
25  
-*/
26  
-
27  
-if (!defined('_PS_VERSION_'))
28  
-	exit;
29  
-
30  
-class GAdsense extends Module
31  
-{
32  
-	function __construct()
33  
-	{
34  
-		$this->name = 'gadsense';
35  
-		$this->tab = 'advertising_marketing';
36  
-		$this->version = '1.2.1';
37  
-		$this->author = 'PrestaShop';
38  
-		$this->displayName = $this->l('Google Adsense');
39  
-		$this->module_key = 'a5d4df8c62133ad7aa9049dc3ef2e5fd';
40  
-
41  
-		parent::__construct();
42  
-
43  
-		if ($this->id && !Configuration::get('GADSENSE_ID'))
44  
-			$this->warning = $this->l('You have not yet set your Google Adsense code');
45  
-		$this->description = $this->l('Integrate Google Adsense script into your shop');
46  
-		$this->confirmUninstall = $this->l('Are you sure you want to delete your details ?');
47  
-
48  
-		/** Backward compatibility */
49  
-		require(_PS_MODULE_DIR_.$this->name.'/backward_compatibility/backward.php');
50  
-	}
51  
-
52  
-	function install()
53  
-	{
54  
-		if (!parent::install() || !$this->registerHook('home'))
55  
-			return false;
56  
-		return true;
57  
-	}
58  
-
59  
-	function uninstall()
60  
-	{
61  
-		if (!Configuration::deleteByName('GADSENSE_ID') || !parent::uninstall())
62  
-			return false;
63  
-		return true;
64  
-	}
65  
-
66  
-	public function getContent()
67  
-	{
68  
-		$output = '<h2>'.$this->displayName.'</h2>';
69  
-		if (Tools::isSubmit('submitGAdsense') && ($gai = Tools::getValue('gadsense_id')))
70  
-		{
71  
-			$gai = htmlentities($gai, ENT_COMPAT, 'UTF-8');
72  
-			Configuration::updateValue('GADSENSE_ID', $gai);
73  
-			$output .= '
74  
-			<div class="conf confirm">
75  
-				<img src="../img/admin/ok.gif" alt="" title="" />
76  
-				'.$this->l('Settings updated').'
77  
-			</div>';
78  
-		}
79  
-		return $output.$this->displayForm();
80  
-	}
81  
-
82  
-	public function displayForm()
83  
-	{
84  
-		return '
85  
-		<form action="'.Tools::safeOutput($_SERVER['REQUEST_URI']).'" method="post">
86  
-			<fieldset><legend>'.$this->l('Settings').'</legend>
87  
-				<label>'.$this->l('Your code').'</label>
88  
-				<div class="margin-form">
89  
-					<textarea name="gadsense_id" cols="90" rows="10" />'.Tools::safeOutput(Tools::getValue('gadsense_id', Configuration::get('GADSENSE_ID'))).'</textarea>
90  
-					<p class="clear">'.$this->l('Example:').' <br /><br /><img src="../modules/gadsense/adsense_script.gif"></p>
91  
-				</div>
92  
-				<center><input type="submit" name="submitGAdsense" value="'.$this->l('Update settings').'" class="button" /></center>
93  
-			</fieldset>
94  
-		</form>';
95  
-	}
96  
-
97  
-	function hookLeftColumn($params)
98  
-	{
99  
-		return $this->hookHome($params);
100  
-	}
101  
-
102  
-	function hookRightColumn($params)
103  
-	{
104  
-		return $this->hookHome($params);
105  
-	}
106  
-
107  
-	function hookTop($params)
108  
-	{
109  
-		return $this->hookHome($params);
110  
-	}
111  
-
112  
-	function hookHome($params)
113  
-	{
114  
-		return html_entity_decode(Configuration::get('GADSENSE_ID'), ENT_COMPAT, 'UTF-8');
115  
-	}
116  
-}
35  gadsense/index.php
... ...
@@ -1,35 +0,0 @@
1  
-<?php
2  
-/*
3  
-* 2007-2013 PrestaShop
4  
-*
5  
-* NOTICE OF LICENSE
6  
-*
7  
-* This source file is subject to the Open Software License (OSL 3.0)
8  
-* that is bundled with this package in the file LICENSE.txt.
9  
-* It is also available through the world-wide-web at this URL:
10  
-* http://opensource.org/licenses/osl-3.0.php
11  
-* If you did not receive a copy of the license and are unable to
12  
-* obtain it through the world-wide-web, please send an email
13  
-* to license@prestashop.com so we can send you a copy immediately.
14  
-*
15  
-* DISCLAIMER
16  
-*
17  
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
18  
-* versions in the future. If you wish to customize PrestaShop for your
19  
-* needs please refer to http://www.prestashop.com for more information.
20  
-*
21  
-*  @author PrestaShop SA <contact@prestashop.com>
22  
-*  @copyright  2007-2013 PrestaShop SA
23  
-*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
24  
-*  International Registered Trademark & Property of PrestaShop SA
25  
-*/
26  
-				    	
27  
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
28  
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
29  
-						
30  
-header("Cache-Control: no-store, no-cache, must-revalidate");
31  
-header("Cache-Control: post-check=0, pre-check=0", false);
32  
-header("Pragma: no-cache");
33  
-						
34  
-header("Location: ../");
35  
-exit;
13  gadsense/it.php
... ...
@@ -1,13 +0,0 @@
1  
-<?php
2  
-
3  
-global $_MODULE;
4  
-$_MODULE = array();
5  
-$_MODULE['<{gadsense}prestashop>gadsense_8a41674922e424cde4dd47c91f9d62e8'] = 'Google Adsense';
6  
-$_MODULE['<{gadsense}prestashop>gadsense_4148996483a2cfeed90c66dc539c8f1a'] = 'Non hai ancora impostato il codice di Google Adsense';
7  
-$_MODULE['<{gadsense}prestashop>gadsense_e32c2b519ed33ed45a4c0a4b1b359447'] = 'Integrare lo script di Google Adsense nel tuo negozio';
8  
-$_MODULE['<{gadsense}prestashop>gadsense_fa214007826415a21a8456e3e09f999d'] = 'Sei sicuro di voler cancellare i tuoi dati?';
9  
-$_MODULE['<{gadsense}prestashop>gadsense_c888438d14855d7d96a2724ee9c306bd'] = 'Impostazioni aggiornate';
10  
-$_MODULE['<{gadsense}prestashop>gadsense_f4f70727dc34561dfde1a3c529b6205c'] = 'Impostazioni';
11  
-$_MODULE['<{gadsense}prestashop>gadsense_30c2b4b5e19ac71fefa1b4d688a7a98f'] = 'Il tuo codice';
12  
-$_MODULE['<{gadsense}prestashop>gadsense_81eeab9506186e2dca8faefa78d54067'] = 'Esempio:';
13  
-$_MODULE['<{gadsense}prestashop>gadsense_b17f3f4dcf653a5776792498a9b44d6a'] = 'Aggiorna le impostazioni';
BIN  gadsense/logo.gif
BIN  gadsense/logo.png
11  gcheckout/.htaccess
... ...
@@ -1,11 +0,0 @@
1  
-<IfModule mod_rewrite.c>
2  
-	RewriteEngine on
3  
-	
4  
-	<IfModule !mod_php.c>
5  
-		# gcheckout fastCGI compatibility
6  
-		RewriteCond %{HTTP:Authorization} !^$
7  
-		RewriteRule ^validation.php$ validation.php?login=%{HTTP:Authorization} [QSA,L]
8  
-		# end gcheckout fastCGI compatibility
9  
-	</IfModule>
10  
-
11  
-</IfModule>
1  gcheckout/backward_compatibility
... ...
@@ -1 +0,0 @@
1  
-Subproject commit 9ecad6f082ddd4afbaf0e356b978a96595f32744
12  gcheckout/config.xml
... ...
@@ -1,12 +0,0 @@
1  
-<?xml version="1.0" encoding="UTF-8" ?>
2  
-<module>
3  
-	<name>gcheckout</name>
4  
-	<displayName><![CDATA[Google Checkout]]></displayName>
5  
-	<version><![CDATA[1.2]]></version>
6  
-	<description><![CDATA[Google Checkout API implementation]]></description>
7  
-	<author><![CDATA[PrestaShop]]></author>
8  
-	<tab><![CDATA[payments_gateways]]></tab>
9  
-	<is_configurable>1</is_configurable>
10  
-	<need_instance>1</need_instance>
11  
-	<limited_countries></limited_countries>
12  
-</module>
55  gcheckout/confirm.tpl
... ...
@@ -1,55 +0,0 @@
1  
-{*
2  
-* 2007-2011 PrestaShop
3  
-*
4  
-* NOTICE OF LICENSE
5  
-*
6  
-* This source file is subject to the Academic Free License (AFL 3.0)
7  
-* that is bundled with this package in the file LICENSE.txt.
8  
-* It is also available through the world-wide-web at this URL:
9  
-* http://opensource.org/licenses/afl-3.0.php
10  
-* If you did not receive a copy of the license and are unable to
11  
-* obtain it through the world-wide-web, please send an email
12  
-* to license@prestashop.com so we can send you a copy immediately.
13  
-*
14  
-* DISCLAIMER
15  
-*
16  
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
17  
-* versions in the future. If you wish to customize PrestaShop for your
18  
-* needs please refer to http://www.prestashop.com for more information.
19  
-*
20  
-*  @author PrestaShop SA <contact@prestashop.com>
21  
-*  @copyright  2007-2011 PrestaShop SA
22  
-*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
23  
-*  International Registered Trademark & Property of PrestaShop SA
24  
-*}
25  
-
26  
-{capture name=path}<a href="{$GC_Link}">{l s='Your shopping cart' mod='gcheckout'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='Google Checkout' mod='gcheckout'}{/capture}
27  
-{include file="$tpl_dir./breadcrumb.tpl"}
28  
-
29  
-<h2>{l s='Order summary' mod='gcheckout'}</h2>
30  
-
31  
-{assign var='current_step' value='payment'}
32  
-{include file="$tpl_dir./order-steps.tpl"}
33  
-
34  
-<p>
35  
-	<img src="gcheckout.gif" alt="{l s='Google Checkout' mod='gcheckout'}" style="margin-bottom: 5px" />
36  
-	<br />{l s='You have chosen to pay with Google Checkout.' mod='gcheckout'}
37  
-	<br/><br />
38  
-	{l s='Here is a short summary of your order:' mod='gcheckout'}
39  
-</p>
40  
-<p style="margin-top:20px;">
41  
-	- {l s='The total amount of your order is' mod='gcheckout'}
42  
-		<span class="price">{convertPriceWithCurrency price=$googleTotal currency=$currency}</span> {if $use_taxes == 1}{l s='(tax incl.)' mod='gcheckout'}{/if}
43  
-</p>
44  
-<p>
45  
-	- {l s='We accept the following currency to be sent by Google Checkout:' mod='gcheckout'}&nbsp;<b>{$currency->name}</b>
46  
-</p>
47  
-<p>
48  
-	<b>{l s='Please confirm your order by clicking \'I confirm my order\'' mod='gcheckout'}.</b>
49  
-</p>
50  
-<p class="cart_navigation">
51  
-	<a href="{$GC_Link}&step=3" class="button_large">{l s='Other payment methods' mod='gcheckout'}</a>
52  
-	<a href="#" class="exclusive_large" onclick="$('#gcheckout_form').submit();return false;">{l s='I confirm my order' mod='gcheckout'}</a>
53  
-</p>
54  
-
55  
-{$googleCheckoutExtraForm}
44  gcheckout/de.php
... ...
@@ -1,44 +0,0 @@
1  
-<?php
2  
-
3  
-global $_MODULE;
4  
-$_MODULE = array();
5  
-$_MODULE['<{gcheckout}prestashop>confirm_a40cab5994f36d4c48103a22ca082e8f'] = 'Ihr Warenkorb';
6  
-$_MODULE['<{gcheckout}prestashop>confirm_6c132b5e262594950586ae13a7d3aa94'] = 'Google Checkout';
7  
-$_MODULE['<{gcheckout}prestashop>confirm_f1d3b424cd68795ecaa552883759aceb'] = 'Bestellsumme';
8  
-$_MODULE['<{gcheckout}prestashop>confirm_3575814f89e55ba8061c55dd93214aae'] = 'Sie haben Google Checkout für Ihre Zahlung ausgewählt.';
9  
-$_MODULE['<{gcheckout}prestashop>confirm_c884ed19483d45970c5bf23a681e2dd2'] = 'Hier eine kurze Zusammenfassung Ihrer Bestellung:';
10  
-$_MODULE['<{gcheckout}prestashop>confirm_e2867a925cba382f1436d1834bb52a1c'] = 'Der Gesamtbetrag Ihrer Bestellung beträgt';
11  
-$_MODULE['<{gcheckout}prestashop>confirm_1f87346a16cf80c372065de3c54c86d9'] = '(Inkl. Mwst.)';
12  
-$_MODULE['<{gcheckout}prestashop>confirm_eecc59d9ca953545b6c5ac9bf11ded00'] = 'Wir akzeptieren die folgende Währung bei einer Zahlung mit Google Checkout:';
13  
-$_MODULE['<{gcheckout}prestashop>confirm_0881a11f7af33bc1b43e437391129d66'] = 'Bitte bestätigen Sie Ihre Bestellung durch Klicken auf \"BESTELLEN\"';
14  
-$_MODULE['<{gcheckout}prestashop>confirm_569fd05bdafa1712c4f6be5b153b8418'] = 'Andere Zahlungsmethoden';
15  
-$_MODULE['<{gcheckout}prestashop>confirm_46b9e3665f187c739c55983f757ccda0'] = 'BESTELLEN';
16  
-$_MODULE['<{gcheckout}prestashop>gcheckout_6c132b5e262594950586ae13a7d3aa94'] = 'Google Checkout';
17  
-$_MODULE['<{gcheckout}prestashop>gcheckout_3f3c0194c5adbe6953eb571f125af16d'] = 'Google Checkout-API-Implementierung';
18  
-$_MODULE['<{gcheckout}prestashop>gcheckout_4402acab1c8f90dcf4a31dc96833bd86'] = 'Keine Währung für dieses Modul eingestellt';
19  
-$_MODULE['<{gcheckout}prestashop>gcheckout_82b8bb0d807e6d2e43a068f954c3559f'] = 'Händler-ID scheint falsch zu sein';
20  
-$_MODULE['<{gcheckout}prestashop>gcheckout_9dd37c2106ceacbf0a40778b2109c386'] = 'Händler-Schlüssel scheint falsch zu sein';
21  
-$_MODULE['<{gcheckout}prestashop>gcheckout_f4f70727dc34561dfde1a3c529b6205c'] = 'Einstellungen';
22  
-$_MODULE['<{gcheckout}prestashop>gcheckout_cd1c5e22d4513c1912be45c9ce9ddbe2'] = 'Die API-Version von diesem Modul beträgt 2,0';
23  
-$_MODULE['<{gcheckout}prestashop>gcheckout_a1ffd2dc2538ea3093532029514d42ac'] = 'Nutzen Sie zuerst die Sandbox, um das Modul zu testen, dann können Sie den Echtbetrieb-Modus benutzen, wenn alles in Ordnung ist. Vergessen Sie nicht, je nach Modus Händler-Schlüssel und -ID zu ändern!';
24  
-$_MODULE['<{gcheckout}prestashop>gcheckout_650be61892bf690026089544abbd9d26'] = 'Modus';
25  
-$_MODULE['<{gcheckout}prestashop>gcheckout_7f80fcc452c2f1ed2bb51b39d0864df1'] = 'Echtzeit';
26  
-$_MODULE['<{gcheckout}prestashop>gcheckout_2652eec977dcb2a5aea85f5bec235b05'] = 'Sandbox';
27  
-$_MODULE['<{gcheckout}prestashop>gcheckout_96fb435ae559f8a759f22f0823d57f7d'] = 'Vergessen Sie nicht, die Währung, in der Payment Tabs unter der Währung Abschnitt verwendeten angeben';
28  
-$_MODULE['<{gcheckout}prestashop>gcheckout_386c339d37e737a436499d423a77df0c'] = 'Währung';
29  
-$_MODULE['<{gcheckout}prestashop>gcheckout_76055653a95e0a559b734ec322d89632'] = 'Sie finden diese Schlüssel in Ihrem Google Checkout-Konto> Einstellungen> Integration. Sowohl Sandkasten als auch Echtzeit-Modus haben diese Tasten.';
30  
-$_MODULE['<{gcheckout}prestashop>gcheckout_229a7ec501323b94db7ff3157a7623c9'] = 'Händler-ID';
31  
-$_MODULE['<{gcheckout}prestashop>gcheckout_795acb9a0c89791314d3032fe65eeb92'] = 'Händler-Schlüssel';
32  
-$_MODULE['<{gcheckout}prestashop>gcheckout_a7ba8619e32091c343b340ec5b80e541'] = 'Wenn Sie dieses Feld ankreuzen, werden die Käufer in der Lage sein, die Versandkosten zu sehen, die Sie in Google Checkout auf der Kaufseite eingerichtet haben.';
33  
-$_MODULE['<{gcheckout}prestashop>gcheckout_de6fa0b14f259108c4b38e5be0374f46'] = 'Google Versandkosten benutzen';
34  
-$_MODULE['<{gcheckout}prestashop>gcheckout_74692aae1cff5dc9dfd44f8c4e0540ad'] = 'Sie können  die Server-zu-Server-Kommunikation protokollieren. Die Protokolldateien sind';
35  
-$_MODULE['<{gcheckout}prestashop>gcheckout_be5d5d37542d75f93a87094459f76678'] = 'und';
36  
-$_MODULE['<{gcheckout}prestashop>gcheckout_f2f19b2cbcb395e254ebb1d9bf7cccd4'] = 'Wenn Sie sie aktivieren, vergewissern Sie sich, dass Sie sie schützen, indem Sie eine .htaccess-Datei ins gleiche Verzeichnis speichern. Wenn Sie dies vergessen, werden sie von jedermann lesbar sein';
37  
-$_MODULE['<{gcheckout}prestashop>gcheckout_b2d37ae1cedf42ff874289b721860af2'] = 'Logs';
38  
-$_MODULE['<{gcheckout}prestashop>gcheckout_38fb7d24e0d60a048f540ecb18e13376'] = 'Speichern';
39  
-$_MODULE['<{gcheckout}prestashop>gcheckout_a82be0f551b8708bc08eb33cd9ded0cf'] = 'Information';
40  
-$_MODULE['<{gcheckout}prestashop>gcheckout_968913ba2d4e25f3589d4c612ecbaa8d'] = 'Um Ihr Google Checkout-Modul zu verwenden, müssen Sie in Ihr Google Checkout-Konto (Sandbox-Konto sowie Live-Konto)  konfigurieren. Melden Sie sich bei Google Checkout an, gehen Sie dann auf Einstellungen> Integration. Die API-Rückruf-URL lautet:';
41  
-$_MODULE['<{gcheckout}prestashop>gcheckout_dba727a9adc372723baef4533a7fc9da'] = 'Die Callback-Methode muss eingestellt werden auf';
42  
-$_MODULE['<{gcheckout}prestashop>gcheckout_0d46d15f70a7cfa670545b308c022840'] = 'Die bestellungen müssen mit der gleichen Währung wie Ihr Verkäufer-Konto eingestelltwerden. Warenkörbe in anderen Währungen werden umgerechnet, wenn der Kunde mit diesem Modul bezahlen möchte.';
43  
-$_MODULE['<{gcheckout}prestashop>gcheckout_8dd85f4218069de952672fe3180dacdb'] = 'Bezahlen Sie mit GoogleCheckout';
44  
-$_MODULE['<{gcheckout}prestashop>gcheckout_ba794350deb07c0c96fe73bd12239059'] = 'Verpackung';
44  gcheckout/es.php
... ...
@@ -1,44 +0,0 @@
1  
-<?php
2  
-
3  
-global $_MODULE;
4  
-$_MODULE = array();
5  
-$_MODULE['<{gcheckout}prestashop>confirm_a40cab5994f36d4c48103a22ca082e8f'] = 'Su carrito de la compra';
6  
-$_MODULE['<{gcheckout}prestashop>confirm_6c132b5e262594950586ae13a7d3aa94'] = 'Google Checkout';
7  
-$_MODULE['<{gcheckout}prestashop>confirm_f1d3b424cd68795ecaa552883759aceb'] = 'Resumen del pedido ';
8  
-$_MODULE['<{gcheckout}prestashop>confirm_3575814f89e55ba8061c55dd93214aae'] = 'Ha elegido pagar con Google Checkout. ';
9  
-$_MODULE['<{gcheckout}prestashop>confirm_c884ed19483d45970c5bf23a681e2dd2'] = 'Breve resumen del pedido: ';
10  
-$_MODULE['<{gcheckout}prestashop>confirm_e2867a925cba382f1436d1834bb52a1c'] = 'El importe total de su pedido es de';
11  
-$_MODULE['<{gcheckout}prestashop>confirm_1f87346a16cf80c372065de3c54c86d9'] = '(TTC)';
12  
-$_MODULE['<{gcheckout}prestashop>confirm_eecc59d9ca953545b6c5ac9bf11ded00'] = 'Aceptamos esta divisa para el pago : ';
13  
-$_MODULE['<{gcheckout}prestashop>confirm_0881a11f7af33bc1b43e437391129d66'] = 'Confirme su pedido pulsando \"Confirmar pedido\"';
14  
-$_MODULE['<{gcheckout}prestashop>confirm_569fd05bdafa1712c4f6be5b153b8418'] = 'Otras formas de pago';
15  
-$_MODULE['<{gcheckout}prestashop>confirm_46b9e3665f187c739c55983f757ccda0'] = 'Confirmar pedido';
16  
-$_MODULE['<{gcheckout}prestashop>gcheckout_6c132b5e262594950586ae13a7d3aa94'] = 'Google checkout';
17  
-$_MODULE['<{gcheckout}prestashop>gcheckout_3f3c0194c5adbe6953eb571f125af16d'] = 'Implementación de API de Google Checkout ';
18  
-$_MODULE['<{gcheckout}prestashop>gcheckout_4402acab1c8f90dcf4a31dc96833bd86'] = 'No hay moneda configurada para este módulo';
19  
-$_MODULE['<{gcheckout}prestashop>gcheckout_82b8bb0d807e6d2e43a068f954c3559f'] = 'La ID del comerciante parece incorrecta';
20  
-$_MODULE['<{gcheckout}prestashop>gcheckout_9dd37c2106ceacbf0a40778b2109c386'] = 'La contraseña del comerciante parece incorrecta';
21  
-$_MODULE['<{gcheckout}prestashop>gcheckout_f4f70727dc34561dfde1a3c529b6205c'] = 'Ajustes';
22  
-$_MODULE['<{gcheckout}prestashop>gcheckout_cd1c5e22d4513c1912be45c9ce9ddbe2'] = 'La versión de la API utilizada por este módulo es de 2,0';
23  
-$_MODULE['<{gcheckout}prestashop>gcheckout_a1ffd2dc2538ea3093532029514d42ac'] = 'Primero utilice el sandbox para probar el múdulo, luego podrá utilizarlo en modo real si toda la configuración se hizo correctamente. No olvide cambiar su contraseña e identificación mercantil según el modo';
24  
-$_MODULE['<{gcheckout}prestashop>gcheckout_650be61892bf690026089544abbd9d26'] = 'Modo';
25  
-$_MODULE['<{gcheckout}prestashop>gcheckout_7f80fcc452c2f1ed2bb51b39d0864df1'] = 'Real';
26  
-$_MODULE['<{gcheckout}prestashop>gcheckout_2652eec977dcb2a5aea85f5bec235b05'] = 'Sandbox';
27  
-$_MODULE['<{gcheckout}prestashop>gcheckout_96fb435ae559f8a759f22f0823d57f7d'] = 'No se olvide de especificar la divisa utilizada en las fichas de pago en la sección de la moneda';
28  
-$_MODULE['<{gcheckout}prestashop>gcheckout_386c339d37e737a436499d423a77df0c'] = 'Divisa';
29  
-$_MODULE['<{gcheckout}prestashop>gcheckout_76055653a95e0a559b734ec322d89632'] = 'Puede encontrar estas claves en su cuenta de comprobación de Google > Ajustes > Integración. En Sandbox y modo real tiene las mismas claves.';
30  
-$_MODULE['<{gcheckout}prestashop>gcheckout_229a7ec501323b94db7ff3157a7623c9'] = 'ID comerciante';
31  
-$_MODULE['<{gcheckout}prestashop>gcheckout_795acb9a0c89791314d3032fe65eeb92'] = 'Contraseña comerciante';
32  
-$_MODULE['<{gcheckout}prestashop>gcheckout_a7ba8619e32091c343b340ec5b80e541'] = 'Si marca esta casilla, los compradores podrán ver en la página de compra los gastos de transporte que usted ha pagado en Google Checkout';
33  
-$_MODULE['<{gcheckout}prestashop>gcheckout_de6fa0b14f259108c4b38e5be0374f46'] = 'Utilice los gastos de transporte Google';
34  
-$_MODULE['<{gcheckout}prestashop>gcheckout_74692aae1cff5dc9dfd44f8c4e0540ad'] = 'Usted puede registrar la comunicación del servidor-a-servidor. Los ficheros de diario son';
35  
-$_MODULE['<{gcheckout}prestashop>gcheckout_be5d5d37542d75f93a87094459f76678'] = 'y';
36  
-$_MODULE['<{gcheckout}prestashop>gcheckout_f2f19b2cbcb395e254ebb1d9bf7cccd4'] = 'Si usted lo activa, está seguro de protegerlos poniendo un archivo .htaccess en el mismo directorio. Si usted olvida hacer eso, cualquiera podrá leerlos';
37  
-$_MODULE['<{gcheckout}prestashop>gcheckout_b2d37ae1cedf42ff874289b721860af2'] = 'Registros';
38  
-$_MODULE['<{gcheckout}prestashop>gcheckout_38fb7d24e0d60a048f540ecb18e13376'] = 'Guardar';
39  
-$_MODULE['<{gcheckout}prestashop>gcheckout_a82be0f551b8708bc08eb33cd9ded0cf'] = 'Información';
40  
-$_MODULE['<{gcheckout}prestashop>gcheckout_968913ba2d4e25f3589d4c612ecbaa8d'] = 'Para utilizar su módulo de la comprobación de Google, tiene que configurar su cuenta Google (cuenta de sandbox y su cuenta). La conexión a la comprobación de la cuenta Google > ajustes; Integración. La URL del servicio repetido del API es:';
41  
-$_MODULE['<{gcheckout}prestashop>gcheckout_dba727a9adc372723baef4533a7fc9da'] = 'El método de callback debe fijarse a ';
42  
-$_MODULE['<{gcheckout}prestashop>gcheckout_0d46d15f70a7cfa670545b308c022840'] = 'Los pedidos deben pasarse con la misma moneda que la cuenta del vendedor. Los carritos en otras monedas serán convertidas si el cliente elige pagar con este módulo.';
43  
-$_MODULE['<{gcheckout}prestashop>gcheckout_8dd85f4218069de952672fe3180dacdb'] = 'Pagar con GoogleCheckout';
44  
-$_MODULE['<{gcheckout}prestashop>gcheckout_ba794350deb07c0c96fe73bd12239059'] = 'Embalaje ';
44  gcheckout/fr.php
... ...
@@ -1,44 +0,0 @@
1  
-<?php
2  
-
3  
-global $_MODULE;
4  
-$_MODULE = array();
5  
-$_MODULE['<{gcheckout}prestashop>confirm_a40cab5994f36d4c48103a22ca082e8f'] = 'Votre panier';
6  
-$_MODULE['<{gcheckout}prestashop>confirm_6c132b5e262594950586ae13a7d3aa94'] = 'Google Checkout';
7  
-$_MODULE['<{gcheckout}prestashop>confirm_f1d3b424cd68795ecaa552883759aceb'] = 'Résumé de la commande';
8  
-$_MODULE['<{gcheckout}prestashop>confirm_3575814f89e55ba8061c55dd93214aae'] = 'Vous avez choisi de payer avec Google Checkout';
9  
-$_MODULE['<{gcheckout}prestashop>confirm_c884ed19483d45970c5bf23a681e2dd2'] = 'Voici un court résumé de votre commande :';
10  
-$_MODULE['<{gcheckout}prestashop>confirm_e2867a925cba382f1436d1834bb52a1c'] = 'Le montant total de votre commande s\'élève à';
11  
-$_MODULE['<{gcheckout}prestashop>confirm_1f87346a16cf80c372065de3c54c86d9'] = '(TTC)';
12  
-$_MODULE['<{gcheckout}prestashop>confirm_eecc59d9ca953545b6c5ac9bf11ded00'] = 'Nous acceptons la devise suivante pour votre paiement :';
13  
-$_MODULE['<{gcheckout}prestashop>confirm_0881a11f7af33bc1b43e437391129d66'] = 'Merci de confirmer votre commande en cliquant sur \"Je confirme ma commande\"';
14  
-$_MODULE['<{gcheckout}prestashop>confirm_569fd05bdafa1712c4f6be5b153b8418'] = 'Autres moyens de paiement';
15  
-$_MODULE['<{gcheckout}prestashop>confirm_46b9e3665f187c739c55983f757ccda0'] = 'Je confirme ma commande';
16  
-$_MODULE['<{gcheckout}prestashop>gcheckout_6c132b5e262594950586ae13a7d3aa94'] = 'Google Checkout';
17  
-$_MODULE['<{gcheckout}prestashop>gcheckout_3f3c0194c5adbe6953eb571f125af16d'] = 'Implémentation de l\'API de Google Checkout';
18  
-$_MODULE['<{gcheckout}prestashop>gcheckout_4402acab1c8f90dcf4a31dc96833bd86'] = 'Aucune devise disponible pour ce module';
19  
-$_MODULE['<{gcheckout}prestashop>gcheckout_82b8bb0d807e6d2e43a068f954c3559f'] = 'L\'ID marchand semble incorrect';
20  
-$_MODULE['<{gcheckout}prestashop>gcheckout_9dd37c2106ceacbf0a40778b2109c386'] = 'La clé marchand semble incorrecte';
21  
-$_MODULE['<{gcheckout}prestashop>gcheckout_f4f70727dc34561dfde1a3c529b6205c'] = 'Paramètres';
22  
-$_MODULE['<{gcheckout}prestashop>gcheckout_cd1c5e22d4513c1912be45c9ce9ddbe2'] = 'La version de l\'API utilisée par ce module est la 2.0';
23  
-$_MODULE['<{gcheckout}prestashop>gcheckout_a1ffd2dc2538ea3093532029514d42ac'] = 'Utilisez le mode bac à sable pour tester le module avant de l\'utiliser en mode réel. N\'oubliez pas de changer vos clés et ID marchand selon le mode !';
24  
-$_MODULE['<{gcheckout}prestashop>gcheckout_650be61892bf690026089544abbd9d26'] = 'Mode';
25  
-$_MODULE['<{gcheckout}prestashop>gcheckout_7f80fcc452c2f1ed2bb51b39d0864df1'] = 'Réel';
26  
-$_MODULE['<{gcheckout}prestashop>gcheckout_2652eec977dcb2a5aea85f5bec235b05'] = 'Bac à sable';
27  
-$_MODULE['<{gcheckout}prestashop>gcheckout_96fb435ae559f8a759f22f0823d57f7d'] = 'Ne pas oublier de spécifier la devise utilisée dans les onglets de paiement dans la partie de devises';
28  
-$_MODULE['<{gcheckout}prestashop>gcheckout_386c339d37e737a436499d423a77df0c'] = 'Devises';
29  
-$_MODULE['<{gcheckout}prestashop>gcheckout_76055653a95e0a559b734ec322d89632'] = 'Vous trouverez ces identifiants dans votre compte Google Checkout > Settings > Integration. Les modes réel et bac à sable ont tous les deux besoin de ces clés.';
30  
-$_MODULE['<{gcheckout}prestashop>gcheckout_229a7ec501323b94db7ff3157a7623c9'] = 'ID marchand';
31  
-$_MODULE['<{gcheckout}prestashop>gcheckout_795acb9a0c89791314d3032fe65eeb92'] = 'Clé marchand';
32  
-$_MODULE['<{gcheckout}prestashop>gcheckout_a7ba8619e32091c343b340ec5b80e541'] = 'Si vous cochez cette case, les acheteurs pourront voir sur la page d\'achat les frais de transport que vous avez réglé dans Google Checkout';
33  
-$_MODULE['<{gcheckout}prestashop>gcheckout_de6fa0b14f259108c4b38e5be0374f46'] = 'Utilisez les frais de transport Google';
34  
-$_MODULE['<{gcheckout}prestashop>gcheckout_74692aae1cff5dc9dfd44f8c4e0540ad'] = 'Vous pouvez archiver les échanges de serveur à serveur. Les fichiers d\'archives sont';
35  
-$_MODULE['<{gcheckout}prestashop>gcheckout_be5d5d37542d75f93a87094459f76678'] = 'et';
36  
-$_MODULE['<{gcheckout}prestashop>gcheckout_f2f19b2cbcb395e254ebb1d9bf7cccd4'] = 'Si vous activez les logs, soyez certain de protéger ces fichiers en plaçant un fichier .htaccess dans le même répertoire. Si vous ne le faites pas, ils seront lisibles par tous vos clients.';
37  
-$_MODULE['<{gcheckout}prestashop>gcheckout_b2d37ae1cedf42ff874289b721860af2'] = 'Archivage';
38  
-$_MODULE['<{gcheckout}prestashop>gcheckout_38fb7d24e0d60a048f540ecb18e13376'] = 'Enregistrer';
39  
-$_MODULE['<{gcheckout}prestashop>gcheckout_a82be0f551b8708bc08eb33cd9ded0cf'] = 'Informations';
40  
-$_MODULE['<{gcheckout}prestashop>gcheckout_968913ba2d4e25f3589d4c612ecbaa8d'] = 'Pour utiliser votre module Google Checkout, vous devez configurer votre compte marchand (en mode bac à sable comme en mode réel). Accédez à votre compte Google Checkout puis allez dans Settings > Integration. L\'API callback URL doit être :';
41  
-$_MODULE['<{gcheckout}prestashop>gcheckout_dba727a9adc372723baef4533a7fc9da'] = 'La \"callback method\" doit être réglée sur';
42  
-$_MODULE['<{gcheckout}prestashop>gcheckout_0d46d15f70a7cfa670545b308c022840'] = 'Les commandes doivent être passées en utilisant la même devise que celle indiquée dans votre compte marchand. Les paniers utilisant d\'autres devises seront convertis si l\'utilisateur décide de payer par le biais de ce module.';
43  
-$_MODULE['<{gcheckout}prestashop>gcheckout_8dd85f4218069de952672fe3180dacdb'] = 'Payer par GoogleCheckout';
44  
-$_MODULE['<{gcheckout}prestashop>gcheckout_ba794350deb07c0c96fe73bd12239059'] = 'Emballage';
BIN  gcheckout/gcheckout.gif
268  gcheckout/gcheckout.php
... ...
@@ -1,268 +0,0 @@
1  
-<?php
2  
-/*
3  
-* 2007-2011 PrestaShop
4  
-*
5  
-* NOTICE OF LICENSE
6  
-*
7  
-* This source file is subject to the Academic Free License (AFL 3.0)
8  
-* that is bundled with this package in the file LICENSE.txt.
9  
-* It is also available through the world-wide-web at this URL:
10  
-* http://opensource.org/licenses/afl-3.0.php
11  
-* If you did not receive a copy of the license and are unable to
12  
-* obtain it through the world-wide-web, please send an email
13  
-* to license@prestashop.com so we can send you a copy immediately.
14  
-*
15  
-* DISCLAIMER
16  
-*
17  
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
18  
-* versions in the future. If you wish to customize PrestaShop for your
19  
-* needs please refer to http://www.prestashop.com for more information.
20  
-*
21  
-*  @author PrestaShop SA <contact@prestashop.com>
22  
-*  @copyright  2007-2011 PrestaShop SA
23  
-*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
24  
-*  International Registered Trademark & Property of PrestaShop SA
25  
-*/
26  
-
27  
-if (!defined('_PS_VERSION_'))
28  
-	exit;
29  
-
30  
-class GCheckout extends PaymentModule
31  
-{
32  
-	public function __construct()
33  
-	{
34  
-		$this->name = 'gcheckout';
35  
-		$this->tab = 'payments_gateways';
36  
-		$this->version = '1.2';
37  
-		$this->author = 'PrestaShop';
38  
-		$this->module_key = 'e6384440e9d00af1e9ea6d7887f1b5db';
39  
-
40  
-		$this->currencies = true;
41  
-		$this->currencies_mode = 'radio';
42  
-
43  
-		parent::__construct();
44  
-
45  
-		$this->displayName = $this->l('Google Checkout');
46  
-		$this->description = $this->l('Google Checkout API implementation');
47  
-
48  
-		if (!sizeof(Currency::checkPaymentCurrencies($this->id)))
49  
-			$this->warning = $this->l('No currency set for this module');
50  
-
51  
-		/* For 1.4.3 and less compatibility */
52  
-		$updateConfig = array('PS_OS_CHEQUE', 'PS_OS_PAYMENT', 'PS_OS_PREPARATION', 'PS_OS_SHIPPING', 'PS_OS_CANCELED', 'PS_OS_REFUND', 'PS_OS_ERROR', 'PS_OS_OUTOFSTOCK', 'PS_OS_BANKWIRE', 'PS_OS_PAYPAL', 'PS_OS_WS_PAYMENT');
53  
-		if (!Configuration::get('PS_OS_PAYMENT'))
54  
-			foreach ($updateConfig as $u)
55  
-				if (!Configuration::get($u) && defined('_'.$u.'_'))
56  
-					Configuration::updateValue($u, constant('_'.$u.'_'));
57  
-
58  
-		/** Backward compatibility */
59  
-		require(_PS_MODULE_DIR_.$this->name.'/backward_compatibility/backward.php');
60  
-	}
61  
-
62  
-	public function install()
63  
-	{
64  
-		if (!parent::install() OR !$this->registerHook('payment') OR
65  
-				!$this->registerHook('paymentReturn') OR
66  
-				!Configuration::updateValue('GCHECKOUT_MERCHANT_ID', '822305931131113') OR
67  
-				!Configuration::updateValue('GCHECKOUT_MERCHANT_KEY', '2Lv_osMomVIocnLK0aif3A') OR
68  
-				!Configuration::updateValue('GCHECKOUT_LOGS', '1') OR
69  
-				!Configuration::updateValue('GCHECKOUT_MODE', 'real') OR
70  
-				!Configuration::updateValue('GCHECKOUT_NO_SHIPPING', '0'))
71  
-			return false;
72  
-		return true;
73  
-	}
74  
-
75  
-	public function uninstall()
76  
-	{
77  
-		return (parent::uninstall() AND
78  
-			Configuration::deleteByName('GCHECKOUT_MERCHANT_ID') AND
79  
-			Configuration::deleteByName('GCHECKOUT_MERCHANT_KEY') AND
80  
-			Configuration::deleteByName('GCHECKOUT_MODE') AND
81  
-			Configuration::deleteByName('GCHECKOUT_LOGS') AND
82  
-			Configuration::deleteByName('GCHECKOUT_NO_SHIPPING'));
83  
-	}
84  
-
85  
-	public function getContent()
86  
-	{
87  
-		if (Tools::isSubmit('submitGoogleCheckout'))
88  
-		{
89  
-			$errors = array();
90  
-			if (($merchant_id = Tools::getValue('gcheckout_merchant_id')) AND preg_match('/[0-9]{15}/', $merchant_id))
91  
-				Configuration::updateValue('GCHECKOUT_MERCHANT_ID', $merchant_id);
92  
-			else
93  
-				$errors[] = '<div class="warning warn"><h3>'.$this->l('Merchant ID seems to be wrong').'</h3></div>';
94  
-			if (($merchant_key = Tools::getValue('gcheckout_merchant_key')) AND preg_match('/[a-zA-Z0-9_-]{22}/', $merchant_key))
95  
-				Configuration::updateValue('GCHECKOUT_MERCHANT_KEY', $merchant_key);
96  
-			else
97  
-				$errors[] = '<div class="warning warn"><h3>'.$this->l('Merchant key seems to be wrong').'</h3></div>';
98  
-			if ($mode = (Tools::getValue('gcheckout_mode') == 'real' ? 'real' : 'sandbox'))
99  
-				Configuration::updateValue('GCHECKOUT_MODE', $mode);
100  
-			if (Tools::getValue('gcheckout_logs'))
101  
-				Configuration::updateValue('GCHECKOUT_LOGS', 1);
102  
-			else
103  
-				Configuration::updateValue('GCHECKOUT_LOGS', 0);
104  
-
105  
-			if (Tools::getValue('gcheckout_no_shipping'))
106  
-				Configuration::updateValue('GCHECKOUT_NO_SHIPPING', 1);
107  
-			else
108  
-				Configuration::updateValue('GCHECKOUT_NO_SHIPPING', 0);
109  
-
110  
-			if (!$errors)
111  
-			{
112  
-				// Retro 1.4
113  
-				global $currentIndex;
114  
-
115  
-				$curr_index = Tools::property_exists('AdminController', 'currentIndex') ?
116  
-					AdminController::$currentIndex : $currentIndex;
117  
-				Tools::redirectAdmin($curr_index.'&configure=gcheckout&token='.Tools::safeOutput(Tools::getValue('token')).'&conf=4');
118  
-			}
119  
-			foreach ($errors as $error)
120  
-				echo $error;
121  
-		}
122  
-
123  
-		$html = '<h2>'.$this->displayName.'</h2>
124  
-		<form action="'.Tools::safeOutput($_SERVER['REQUEST_URI']).'" method="post">
125  
-			<fieldset>
126  
-			<legend><img src="'.__PS_BASE_URI__.'modules/gcheckout/logo.gif" />'.$this->l('Settings').'</legend>
127  
-			<p>
128  
-				<div class="warn">
129  
-					'.$this->l('The API version used by this module is 2.0').'
130  
-				</div>
131  
-			</p>
132  
-				<p>'.$this->l('Use the sandbox to test out the module then you can use the real mode if no problems arise. Remember to change your merchant key and ID according to the mode.').'</p>
133  
-				<label>
134  
-					'.$this->l('Mode').'
135  
-				</label>
136  
-				<div class="margin-form">
137  
-					<select name="gcheckout_mode">
138  
-						<option value="real"'.(Configuration::get('GCHECKOUT_MODE') == 'real' ? ' selected="selected"' : '').'>'.$this->l('Real').'&nbsp;&nbsp;</option>
139  
-						<option value="sandbox"'.(Configuration::get('GCHECKOUT_MODE') == 'sandbox' ? ' selected="selected"' : '').'>'.$this->l('Sandbox').'&nbsp;&nbsp;</option>
140  
-					</select>
141  
-				</div>
142  
-				<p>'.$this->l('Don\'t forget to specify the currency used in the Payment tabs under the currency section').'</p>
143  
-				<label>
144  
-					'.$this->l('Currency').'
145  
-				</label>
146  
-				'.$this->getCurrency()->iso_code.'
147  
-				<p>'.$this->l('You can find these keys in your Google Checkout account > Settings > Integration. Sandbox and real mode both have these keys.').'</p>
148  
-				<label>
149  
-					'.$this->l('Merchant ID').'
150  
-				</label>
151  
-				<div class="margin-form">
152  
-					<input type="text" name="gcheckout_merchant_id" value="'.Tools::safeOutput(Tools::getValue('gcheckout_merchant_id', Configuration::get('GCHECKOUT_MERCHANT_ID'))).'" />
153  
-				</div>
154  
-				<label>
155  
-					'.$this->l('Merchant Key').'
156  
-				</label>
157  
-				<div class="margin-form">
158  
-					<input type="text" name="gcheckout_merchant_key" value="'.Tools::safeOutput(Tools::getValue('gcheckout_merchant_key', Configuration::get('GCHECKOUT_MERCHANT_KEY'))).'" />
159  
-				</div>
160  
-				<p>'.$this->l('If you click this box, buyers will be able to see the shipping fees you have setup in Google Checkout on the purchase page.').'</p>
161  
-				<label>
162  
-					'.$this->l('Use Google shipping fees').'
163  
-				</label>
164  
-				<div class="margin-form" style="margin-top:5px">
165  
-					<input type="checkbox" name="gcheckout_no_shipping"'.(Tools::getValue('gcheckout_no_shipping', Configuration::get('GCHECKOUT_NO_SHIPPING')) ? ' checked="checked"' : '').' />
166  
-				</div>
167  
-				<p>'.$this->l('You can log the server-to-server communication. The log files are').' '.__PS_BASE_URI__.'modules/gcheckout/googleerror.log '.$this->l('and').' '.__PS_BASE_URI__.'modules/gcheckout/googlemessage.log. '.$this->l('If activated, be sure to protect them by putting a .htaccess file in the same directory. If not, they will be readable by everyone.').'</p>
168  
-				<label>
169  
-					'.$this->l('Logs').'
170  
-				</label>
171  
-				<div class="margin-form" style="margin-top:5px">
172  
-					<input type="checkbox" name="gcheckout_logs"'.(Tools::getValue('gcheckout_logs', Configuration::get('GCHECKOUT_LOGS')) ? ' checked="checked"' : '').' />
173  
-				</div>
174  
-				<div class="clear center"><input type="submit" name="submitGoogleCheckout" class="button" value="'.$this->l('   Save   ').'" /></div>
175  
-			</fieldset>
176  
-		</form>
177  
-		<br /><br />
178  
-		<fieldset>
179  
-			<legend><img src="../img/admin/warning.gif" />'.$this->l('Information').'</legend>
180  
-			<p>- '.$this->l('In order to use your Google Checkout module, you must configure your Google Checkout account (sandbox account as well as live account). Log in to Google Checkout then go to Settings > Integration. The API callback URL is:').'<br />
181  
-				<b>'.Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/gcheckout/validation.php</b>
182  
-			</p>
183  
-			<p>- '.$this->l('The callback method must be set to').' <b>XML</b>.</p>
184  
-			<p>- '.$this->l('Orders must be placed with the same currency as your seller account. Carts in other currencies will be converted if the customer chooses to pay with this module.').'<p>
185  
-		</fieldset>';
186  
-
187  
-		return $html;
188  
-	}
189  
-
190  
-	public function hookPayment($params)
191  
-	{
192  
-		if (!$this->active)
193  
-			return;
194  
-
195  
-		$this->context->smarty->assign('buttonText', $this->l('Pay with GoogleCheckout'));
196  
-		return $this->display(__FILE__, 'payment.tpl');
197  
-	}
198  
-
199  
-	public function hookPaymentReturn($params)
200  
-	{
201  
-		if (!$this->active)
202  
-			return;
203  
-		return $this->display(__FILE__, 'payment_return.tpl');
204  
-	}
205  
-
206  
-	public function preparePayment()
207  
-	{
208  
-		require_once(dirname(__FILE__).'/library/googlecart.php');
209  
-		require_once(dirname(__FILE__).'/library/googleitem.php');
210  
-		require_once(dirname(__FILE__).'/library/googleshipping.php');
211  
-
212  
-		$currency = $this->getCurrency($this->context->cart->id_currency);
213  
-
214  
-		if ($this->context->cart->id_currency != $currency->id)
215  
-		{
216  
-			$this->context->cart->id_currency = (int)$currency->id;
217  
-			$this->context->cookie->id_currency = (int)$this->context->cart->id_currency;
218  
-			$this->context->cart->update();
219  
-			Tools::redirect('modules/'.$this->name.'/payment.php');
220  
-		}
221  
-
222  
-		$googleCart = new GoogleCart(
223  
-			Configuration::get('GCHECKOUT_MERCHANT_ID'),
224  
-			Configuration::get('GCHECKOUT_MERCHANT_KEY'),
225  
-			Configuration::get('GCHECKOUT_MODE'), $currency->iso_code);
226  
-
227  
-		foreach ($this->context->cart->getProducts() AS $product)
228  
-				$googleCart->AddItem(new GoogleItem(utf8_decode($product['name'].
229  
-				((isset($product['attributes']) AND !empty($product['attributes'])) ?
230  
-				' - '.$product['attributes'] : '')), utf8_decode($product['description_short']),
231  
-				(int)$product['cart_quantity'], $product['price_wt'],
232  
-				strtoupper(Configuration::get('PS_WEIGHT_UNIT')), (float)$product['weight']));
233  
-
234  
-		if ($wrapping = $this->context->cart->getOrderTotal(true, Cart::ONLY_WRAPPING))
235  
-			$googleCart->AddItem(new GoogleItem(utf8_decode($this->l('Wrapping')), '', 1, $wrapping));
236  
-
237  
-		if (_PS_VERSION_ < '1.5')
238  
-			foreach ($this->context->cart->getDiscounts() AS $voucher)
239  
-				$googleCart->AddItem(new GoogleItem(utf8_decode($voucher['name']),
240  
-					utf8_decode($voucher['description']), 1, '-'.$voucher['value_real']));
241  
-		else
242  
-			foreach ($this->context->cart->getCartRules() AS $cart_tule)
243  
-				$googleCart->AddItem(new GoogleItem(utf8_decode($cart_tule['code']),
244  
-				utf8_decode($cart_tule['name']), 1, '-'.$cart_tule['value_real']));
245  
-
246  
-		if (!Configuration::get('GCHECKOUT_NO_SHIPPING'))
247  
-		{
248  
-			$carrier = new Carrier((int)($this->context->cart->id_carrier), $this->context->language->id);
249  
-			$googleCart->AddShipping(new GoogleFlatRateShipping(utf8_decode($carrier->name),
250  
-				$this->context->cart->getOrderShippingCost($this->context->cart->id_carrier)));
251  
-		}
252  
-
253  
-		$googleCart->SetEditCartUrl(Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'order.php');
254  
-		$googleCart->SetContinueShoppingUrl(Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'order-confirmation.php');
255  
-		$googleCart->SetRequestBuyerPhone(false);
256  
-		$googleCart->SetMerchantPrivateData($this->context->cart->id.'|'.$this->context->cart->secure_key);
257  
-
258  
-		$total = $this->context->cart->getOrderTotal();
259  
-
260  
-		$this->context->smarty->assign(array(
261  
-			'googleCheckoutExtraForm' => $googleCart->CheckoutButtonCode($this->l('Pay with GoogleCheckout'), 'LARGE'),
262  
-			'total' => $total,
263  
-			'googleTotal' => $total,
264  
-			'GC_Link' => (_PS_VERSION_ >= '1.5') ? $this->context->link->getPageLink('order', true, NULL) :
265  
-				$this->context->link->getPageLink('order.php', true)
266  
-		));
267  
-	}
268  
-}
21  gcheckout/htaccessBugInformation.php
... ...
@@ -1,21 +0,0 @@
1  
-<?php
2  
-
3  
-/*
4  
-
5  
-BUG FIXED : PSCFI-1480
6  
-
7  
-There is problem with server using apache with php under CGI MODE.
8  
-The authentification isn't created in CGI MOD and this module won't work.
9  
-
10  
-To fix it, the .htaccess will create this missing variable
11  
-
12  
-Here is the .htaccess detailed :
13  
-
14  
-<IfModule mod_rewrite.c>
15  
-RewriteEngine on
16  
-RewriteCond %{HTTP:Authorization} ^(.*)
17  
-RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
18  
-</IfModule>
19  
-
20  
-*/
21  
-?>
35  gcheckout/index.php
... ...
@@ -1,35 +0,0 @@
1  
-<?php
2  
-/*
3  
-* 2007-2011 PrestaShop 
4  
-*
5  
-* NOTICE OF LICENSE
6  
-*
7  
-* This source file is subject to the Open Software License (OSL 3.0)
8  
-* that is bundled with this package in the file LICENSE.txt.
9  
-* It is also available through the world-wide-web at this URL:
10  
-* http://opensource.org/licenses/osl-3.0.php
11  
-* If you did not receive a copy of the license and are unable to
12  
-* obtain it through the world-wide-web, please send an email
13  
-* to license@prestashop.com so we can send you a copy immediately.
14  
-*
15  
-* DISCLAIMER
16  
-*
17  
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
18  
-* versions in the future. If you wish to customize PrestaShop for your
19  
-* needs please refer to http://www.prestashop.com for more information.
20  
-*
21  
-*  @author PrestaShop SA <contact@prestashop.com>
22  
-*  @copyright  2007-2011 PrestaShop SA
23  
-*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
24  
-*  International Registered Trademark & Property of PrestaShop SA
25  
-*/
26  
-				    	
27  
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
28  
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
29  
-						
30  
-header("Cache-Control: no-store, no-cache, must-revalidate");
31  
-header("Cache-Control: post-check=0, pre-check=0", false);
32  
-header("Pragma: no-cache");
33  
-						
34  
-header("Location: ../");
35  
-exit;
44  gcheckout/it.php
... ...
@@ -1,44 +0,0 @@
1  
-<?php
2  
-
3  
-global $_MODULE;
4  
-$_MODULE = array();
5  
-$_MODULE['<{gcheckout}prestashop>confirm_a40cab5994f36d4c48103a22ca082e8f'] = 'Il tuo carrello';
6  
-$_MODULE['<{gcheckout}prestashop>confirm_6c132b5e262594950586ae13a7d3aa94'] = 'Google Checkout';
7  
-$_MODULE['<{gcheckout}prestashop>confirm_f1d3b424cd68795ecaa552883759aceb'] = 'Riepilogo ordine';
8  
-$_MODULE['<{gcheckout}prestashop>confirm_3575814f89e55ba8061c55dd93214aae'] = 'Hai scelto di pagare con Google Checkout.';
9  
-$_MODULE['<{gcheckout}prestashop>confirm_c884ed19483d45970c5bf23a681e2dd2'] = 'Ecco un breve riepilogo del tuo ordine:';
10  
-$_MODULE['<{gcheckout}prestashop>confirm_e2867a925cba382f1436d1834bb52a1c'] = 'L\'importo totale del tuo ordine è';
11  
-$_MODULE['<{gcheckout}prestashop>confirm_1f87346a16cf80c372065de3c54c86d9'] = '(Tasse incl.)';
12  
-$_MODULE['<{gcheckout}prestashop>confirm_eecc59d9ca953545b6c5ac9bf11ded00'] = 'Accettiamo le seguente valuta da inviare tramite Google Checkout:';
13  
-$_MODULE['<{gcheckout}prestashop>confirm_0881a11f7af33bc1b43e437391129d66'] = 'Si prega di confermare l\'ordine cliccando su \'confermo il mio ordine\'';
14  
-$_MODULE['<{gcheckout}prestashop>confirm_569fd05bdafa1712c4f6be5b153b8418'] = 'Altri metodi di pagamento';
15  
-$_MODULE['<{gcheckout}prestashop>confirm_46b9e3665f187c739c55983f757ccda0'] = 'Confermo il mio ordine';
16  
-$_MODULE['<{gcheckout}prestashop>gcheckout_6c132b5e262594950586ae13a7d3aa94'] = 'Google Checkout';
17  
-$_MODULE['<{gcheckout}prestashop>gcheckout_3f3c0194c5adbe6953eb571f125af16d'] = 'Attuazione API di Google Checkout ';
18  
-$_MODULE['<{gcheckout}prestashop>gcheckout_4402acab1c8f90dcf4a31dc96833bd86'] = 'Nessuna valuta impostata per questo modulo';
19  
-$_MODULE['<{gcheckout}prestashop>gcheckout_82b8bb0d807e6d2e43a068f954c3559f'] = 'ID commerciante sembra essere sbagliato';
20  
-$_MODULE['<{gcheckout}prestashop>gcheckout_9dd37c2106ceacbf0a40778b2109c386'] = 'Chiave commerciante sembra essere sbagliata';
21  
-$_MODULE['<{gcheckout}prestashop>gcheckout_f4f70727dc34561dfde1a3c529b6205c'] = 'Impostazioni';
22  
-$_MODULE['<{gcheckout}prestashop>gcheckout_cd1c5e22d4513c1912be45c9ce9ddbe2'] = 'La versione API utilizzate da questo modulo è pari a 2,0';
23  
-$_MODULE['<{gcheckout}prestashop>gcheckout_a1ffd2dc2538ea3093532029514d42ac'] = 'In primo luogo, utilizza la pagina per testare il modulo, poi puoi utilizzare la modalità reale se va tutto bene. Non dimenticare di cambiare la chiave e l\'ID commerciante secondo la modalità!';
24  
-$_MODULE['<{gcheckout}prestashop>gcheckout_650be61892bf690026089544abbd9d26'] = 'Modalità';
25  
-$_MODULE['<{gcheckout}prestashop>gcheckout_7f80fcc452c2f1ed2bb51b39d0864df1'] = 'Reale';
26  
-$_MODULE['<{gcheckout}prestashop>gcheckout_2652eec977dcb2a5aea85f5bec235b05'] = 'Sandbox';
27  
-$_MODULE['<{gcheckout}prestashop>gcheckout_96fb435ae559f8a759f22f0823d57f7d'] = 'Non dimenticare di specificare la valuta utilizzata nelle schede di pagamento nella sezione di valuta';
28  
-$_MODULE['<{gcheckout}prestashop>gcheckout_386c339d37e737a436499d423a77df0c'] = 'Valuta';
29  
-$_MODULE['<{gcheckout}prestashop>gcheckout_76055653a95e0a559b734ec322d89632'] = 'È possibile trovare queste chiavi nel tuo account Google Checkout> Impostazioni> Integrazione. Sandbox e modalità reale hanno entrambe queste chiavi.';
30  
-$_MODULE['<{gcheckout}prestashop>gcheckout_229a7ec501323b94db7ff3157a7623c9'] = 'ID commerciante';
31  
-$_MODULE['<{gcheckout}prestashop>gcheckout_795acb9a0c89791314d3032fe65eeb92'] = 'Chiave commerciante';
32  
-$_MODULE['<{gcheckout}prestashop>gcheckout_a7ba8619e32091c343b340ec5b80e541'] = 'Se si spunta questa casella, gli acquirenti saranno in grado di vedere le spese di spedizione che hai configurato in Google Checkout nella pagina di acquisto.';
33  
-$_MODULE['<{gcheckout}prestashop>gcheckout_de6fa0b14f259108c4b38e5be0374f46'] = 'Usa spese di spedizione Google';
34  
-$_MODULE['<{gcheckout}prestashop>gcheckout_74692aae1cff5dc9dfd44f8c4e0540ad'] = 'È possibile registrare la comunicazione server-to-server. I file di registro sono';
35  
-$_MODULE['<{gcheckout}prestashop>gcheckout_be5d5d37542d75f93a87094459f76678'] = 'e';
36  
-$_MODULE['<{gcheckout}prestashop>gcheckout_f2f19b2cbcb395e254ebb1d9bf7cccd4'] = 'Se lo attivi, assicurati di proteggerli mettendo un file. Htaccess nella stessa directory. Se dimentichi di farlo, sarà leggibile da tutti';
37  
-$_MODULE['<{gcheckout}prestashop>gcheckout_b2d37ae1cedf42ff874289b721860af2'] = 'Archivi ';
38  
-$_MODULE['<{gcheckout}prestashop>gcheckout_38fb7d24e0d60a048f540ecb18e13376'] = 'Salva';
39  
-$_MODULE['<{gcheckout}prestashop>gcheckout_a82be0f551b8708bc08eb33cd9ded0cf'] = 'Informazioni';
40  
-$_MODULE['<{gcheckout}prestashop>gcheckout_968913ba2d4e25f3589d4c612ecbaa8d'] = 'Per poter utilizzare il modulo Google Checkout, è necessario configurare il tuo account Google Checkout (account sandbox così come account live). Accedi a Google Checkout poi vai su Settings > Integration. L\'URL callback API è:';
41  
-$_MODULE['<{gcheckout}prestashop>gcheckout_dba727a9adc372723baef4533a7fc9da'] = 'Il metodo di callback deve essere impostato su';
42  
-$_MODULE['<{gcheckout}prestashop>gcheckout_0d46d15f70a7cfa670545b308c022840'] = 'Gli ordini devono essere posizionati con la stessa valuta del tuo account venditore. Carrelli in altre valute saranno convertiti se il cliente sceglie di pagare con questo modulo.';
43  
-$_MODULE['<{gcheckout}prestashop>gcheckout_8dd85f4218069de952672fe3180dacdb'] = 'Paga con GoogleCheckout';
44  
-$_MODULE['<{gcheckout}prestashop>gcheckout_ba794350deb07c0c96fe73bd12239059'] = 'Confezione';
1,612  gcheckout/library/googlecart.php
... ...
@@ -1,1612 +0,0 @@
1  
-<?php
2  
-/*
3  
- * Copyright (C) 2007 Google Inc.
4  
- * 
5  
- * Licensed under the Apache License, Version 2.0 (the "License");
6  
- * you may not use this file except in compliance with the License.
7  
- * You may obtain a copy of the License at
8  
- * 
9  
- *      http://www.apache.org/licenses/LICENSE-2.0
10  
- * 
11  
- * Unless required by applicable law or agreed to in writing, software
12  
- * distributed under the License is distributed on an "AS IS" BASIS,
13  
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  
- * See the License for the specific language governing permissions and
15  
- * limitations under the License.
16  
- */
17  
-
18  
-/**
19  
- * Classes used to build a shopping cart and submit it to Google Checkout
20  
- * @version $Id: googlecart.php 6844 2011-06-03 14:46:51Z dMetzger $
21  
- */
22  
-
23  
-  define('MAX_DIGITAL_DESC', 1024);
24  
-  
25  
- /**
26  
-  * Creates a Google Checkout shopping cart and posts it 
27  
-  * to the google checkout sandbox or production environment
28  
-  * Refer demo/cartdemo.php for different use case scenarios for this code
29  
-  */
30  
-  class GoogleCart {
31  
-    var $merchant_id;
32  
-    var $merchant_key;
33  
-    var $variant = false;
34  
-    var $currency;
35  
-    var $server_url;
36  
-    var $schema_url;
37  
-    var $base_url;
38  
-    var $checkout_url;
39  
-    var $checkout_diagnose_url;
40  
-    var $request_url;
41  
-    var $request_diagnose_url;
42  
-
43  
-    var $cart_expiration = "";
44  
-    var $merchant_private_data = "";
45  
-    var $edit_cart_url = "";
46  
-    var $continue_shopping_url = "";
47  
-    var $request_buyer_phone = "";
48  
-    var $merchant_calculated_tax = "";
49  
-    var $merchant_calculations_url = "";
50  
-    var $accept_merchant_coupons = "";
51  
-    var $accept_gift_certificates = "";
52  
-    var $rounding_mode;
53  
-    var $rounding_rule;
54  
-    var $analytics_data;
55  
-
56  
-    var $item_arr;
57  
-    var $shipping_arr;
58  
-    var $default_tax_rules_arr;
59  
-    var $alternate_tax_tables_arr;
60  
-    var $xml_data;
61  
-    
62  
-    var $googleAnalytics_id = false;
63  
-    var $thirdPartyTackingUrl = false;
64  
-    var $thirdPartyTackingParams = array();
65  
-    
66  
-		// For HTML API Conversion
67  
-		
68  
-    // This tags are those that can be used more than once as a sub tag
69  
-    // so a "-#" must be added always
70  
-    /**
71  
-     * used when using the html api
72  
-     * tags that can be used more than once, so they need to be numbered
73  
-     * ("-#" suffix)
74  
-     */
75  
-    var $multiple_tags = array(
76  
-                          'flat-rate-shipping' => array(), 
77  
-                          'merchant-calculated-shipping' => array(), 
78  
-                          'pickup' => array(), 
79  
-                          'parameterized-url' => array(), 
80  
-                          'url-parameter' => array(), 
81  
-                          'item' => array(), 
82  
-                          'us-state-area' => array('tax-area'), 
83  
-                          'us-zip-area' => array('tax-area'), 
84  
-                          'us-country-area' => array('tax-area'), 
85  
-                          'postal-area' => array('tax-area'), 
86  
-                          'alternate-tax-table' => array(), 
87  
-                          'world-area' => array('tax-area'),                      
88  
-                          'default-tax-rule' => array(), 
89  
-                          'alternate-tax-rule' => array(), 
90  
-                          'gift-certificate-adjustment' => array(), 
91  
-                          'coupon-adjustment' => array(), 
92  
-                          'coupon-result' => array(), 
93  
-                          'gift-certificate-result' => array(), 
94  
-                          'method' => array(), 
95  
-                          'anonymous-address' => array(), 
96  
-                          'result' => array(), 
97  
-                          'string' => array(), 
98  
-                          );
99  
-    
100  
-    var $ignore_tags = array(
101  
-                        'xmlns' => true,
102  
-                        'checkout-shopping-cart' => true,
103  
-                        // Dont know how to translate these tag yet
104  
-                        'merchant-private-data' => true,
105  
-                        'merchant-private-item-data' => true,
106  
-    );
107  
-
108  
-
109  
-
110  
-		/**
111  
-		 * Has all the logic to build the cart's xml (or html) request to be 
112  
-		 * posted to google's servers.
113  
-		 * 
114  
-		 * @param string $id the merchant id
115  
-		 * @param string $key the merchant key
116  
-		 * @param string $server_type the server type of the server to be used, one 
117  
-		 *                            of 'sandbox' or 'production'.
118  
-		 *                            defaults to 'sandbox'
119  
-		 * @param string $currency the currency of the items to be added to the cart
120  
-     *                         , as of now values can be 'USD' or 'GBP'.
121  
-     *                         defaults to 'USD'
122  
-		 */
123  
-    function GoogleCart($id, $key, $server_type="sandbox", $currency="USD") {
124  
-      $this->merchant_id = $id;
125  
-      $this->merchant_key = $key;
126  
-      $this->currency = $currency;
127  
-
128  
-      if(strtolower($server_type) == "sandbox") {
129  
-        $this->server_url = "https://sandbox.google.com/checkout/";
130  
-      } else {
131  
-        $this->server_url=  "https://checkout.google.com/";  
132  
-      }
133  
-
134  
-
135  
-      $this->schema_url = "http://checkout.google.com/schema/2";
136  
-      $this->base_url = $this->server_url . "api/checkout/v2/"; 
137  
-      $this->checkout_url = $this->base_url . "checkout/Merchant/" . $this->merchant_id;
138  
-      $this->checkoutForm_url = $this->base_url . "checkoutForm/Merchant/" . $this->merchant_id;
139  
-
140  
-      //The item, shipping and tax table arrays are initialized
141  
-      $this->item_arr = array();
142  
-      $this->shipping_arr = array(); 
143  
-      $this->alternate_tax_tables_arr = array();
144  
-    }
145  
-
146  
-    /**
147  
-     * Sets the cart's expiration date
148  
-     * 
149  
-     * GC tag: {@link http://code.google.com/apis/checkout/developer/index.html#tag_good-until-date <good-until-date>}
150  
-     * 
151  
-     * @param string $cart_expire a string representing a date in the 
152  
-     *         iso 8601 date and time format: {@link http://www.w3.org/TR/NOTE-datetime}
153  
-     * 
154  
-     * @return void
155  
-     */
156  
-    function SetCartExpiration($cart_expire) {
157  
-      $this->cart_expiration = $cart_expire;
158  
-    }
159  
-
160  
-    /**
161  
-     * Sets the merchant's private data.
162  
-     * 
163  
-     * Google Checkout will return this data in the
164  
-     * <merchant-calculation-callback> and the 
165  
-     * <new-order-notification> for the order.
166  
-     * 
167  
-     * GC tag: {@link http://code.google.com/apis/checkout/developer/index.html#tag_merchant-private-data <merchant-private-data>}
168  
-     * 
169  
-     * @param MerchantPrivateData $data an object which contains the data to be 
170  
-     *                                  sent as merchant-private-data
171  
-     * 
172  
-     * @return void
173  
-     */
174  
-    function SetMerchantPrivateData($data) {
175  
-      $this->merchant_private_data = $data;
176  
-    }
177  
-
178  
-    /**
179  
-     * Sets the url where the customer can edit his cart.
180  
-     * 
181  
-     * GC tag: {@link http://code.google.com/apis/checkout/developer/index.html#tag_edit-cart-url <edit-cart-url>}
182  
-     * 
183  
-     * @param string $url the merchant's site edit cart url
184  
-     * @return void
185  
-     */
186  
-    function SetEditCartUrl($url) {
187  
-      $this->edit_cart_url= $url;
188  
-    }
189  
-
190  
-    /**
191  
-     * Sets the continue shopping url, which allows the customer to return 
192  
-die();
193  
-     * to the merchant's site after confirming an order.
194  
-     * 
195  
-     * GC tag: {@link http://code.google.com/apis/checkout/developer/index.html#tag_continue-shopping-url <continue-shopping-url>}
196  
-     * 
197  
-     * @param string $url the merchant's site continue shopping url
198  
-     * @return void
199  
-     */
200  
-    function SetContinueShoppingUrl($url) {
201  
-      $this->continue_shopping_url = $url;
202  
-    }
203  
-
204  
-    /**
205  
-     * Sets whether the customer must enter a phone number to complete an order.
206  
-     * If set to true, the customer must enter a number, which Google Checkout
207  
-     * will return in the new order notification for the order.
208  
-     * 
209  
-     * GC tag: {@link http://code.google.com/apis/checkout/developer/index.html#tag_request-buyer-phone-number <request-buyer-phone-number>}
210  
-     * 
211  
-     * @param bool $req true if the customer's phone number is *required*
212  
-     *                  to complete an order.
213  
-     *                  defaults to false.
214  
-     * @return void
215  
-     */
216  
-    function SetRequestBuyerPhone($req) {
217  
-      $this->request_buyer_phone = $this->_GetBooleanValue($req, "false");
218  
-    }
219  
-
220  
-    /**
221  
-     * Sets the information about calculations that will be performed by the 
222  
-     * merchant.
223  
-     * 
224  
-     * GC tag: {@link http://code.google.com/apis/checkout/developer/index.html#tag_merchant-calculations <merchant-calculations>}
225  
-     * 
226  
-     * @param string $url the merchant calculations callback url
227  
-     * @param bool $tax_option true if the merchant has to do tax calculations.
228  
-     *                         defaults to false.
229  
-     * @param bool $coupons true if the merchant accepts discount coupons.
230  
-     *                         defaults to false.
231  
-     * @param bool $gift_cert true if the merchant accepts gift certificates.
232  
-     *                         defaults to false.
233  
-     * @return void
234  
-     */
235  
-    function SetMerchantCalculations($url, $tax_option = "false",
236  
-        $coupons = "false", $gift_cert = "false") {
237  
-      $this->merchant_calculations_url = $url;
238  
-      $this->merchant_calculated_tax = $this->_GetBooleanValue($tax_option, "false");
239  
-      $this->accept_merchant_coupons = $this->_GetBooleanValue($coupons, "false");
240  
-      $this->accept_gift_certificates = $this->_GetBooleanValue($gift_cert, "false");
241  
-    }
242  
-
243  
-    /**
244  
-     * Add an item to the cart.
245  
-     * 
246  
-     * GC tag: {@link http://code.google.com/apis/checkout/developer/index.html#tag_item <item>}
247  
-     * 
248  
-     * @param GoogleItem $google_item an object that represents an item 
249  
-     *                                (defined in googleitem.php)
250  
-     * 
251  
-