+ {else}
+
+ {/if}
+
+
+
+

+
+ {foreach from=$p key=k item=v}
+
+ {/foreach}
+
+

+
+
+
+

+
+

+
+
+ /
+
+

+

+

+
+
+
+
+
+
+
diff --git a/modules/authorizeaim/backward_compatibility/Context.php b/modules/authorizeaim/backward_compatibility/Context.php
new file mode 100755
index 000000000..99c0bba4b
--- /dev/null
+++ b/modules/authorizeaim/backward_compatibility/Context.php
@@ -0,0 +1,222 @@
+
+* @copyright 2007-2012 PrestaShop SA
+* @version Release: $Revision: 7723 $
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+// Retro 1.3, 'class_exists' cause problem with autoload...
+if (version_compare(_PS_VERSION_, '1.4', '<'))
+{
+ // Not exist for 1.3
+ class Shop extends ObjectModel
+ {
+ public function __construct()
+ {
+
+ }
+
+ public static function getShops()
+ {
+ return array(
+ array('id_shop' => 1, 'name' => 'Default shop')
+ );
+ }
+
+ public static function getCurrentShop()
+ {
+ return 1;
+ }
+ }
+}
+
+// Not exist for 1.3 and 1.4
+class Context
+{
+ /**
+ * @var Context
+ */
+ protected static $instance;
+
+ /**
+ * @var Cart
+ */
+ public $cart;
+
+ /**
+ * @var Customer
+ */
+ public $customer;
+
+ /**
+ * @var Cookie
+ */
+ public $cookie;
+
+ /**
+ * @var Link
+ */
+ public $link;
+
+ /**
+ * @var Country
+ */
+ public $country;
+
+ /**
+ * @var Employee
+ */
+ public $employee;
+
+ /**
+ * @var Controller
+ */
+ public $controller;
+
+ /**
+ * @var Language
+ */
+ public $language;
+
+ /**
+ * @var Currency
+ */
+ public $currency;
+
+ /**
+ * @var AdminTab
+ */
+ public $tab;
+
+ /**
+ * @var Shop
+ */
+ public $shop;
+
+ /**
+ * @var Smarty
+ */
+ public $smarty;
+
+ public function __construct()
+ {
+ global $cookie, $cart, $smarty, $link;
+
+ $this->tab = null;
+
+ if ($cookie)
+ $this->cookie = $cookie;
+
+ $this->cart = $cart;
+ $this->smarty = $smarty;
+ $this->link = $link;
+
+ $this->controller = new ControllerBackwardModule();
+ if ($cookie)
+ {
+ $this->currency = new Currency((int)$cookie->id_currency);
+ $this->language = new Language((int)$cookie->id_lang);
+ $this->country = new Country((int)$cookie->id_country);
+ $this->customer = new Customer((int)$cookie->id_customer);
+ $this->employee = new Employee((int)$cookie->id_employee);
+ }
+ $this->shop = new ShopBackwardModule();
+ }
+
+ /**
+ * Get a singleton context
+ *
+ * @return Context
+ */
+ public static function getContext()
+ {
+ if (!isset(self::$instance))
+ self::$instance = new Context();
+ return self::$instance;
+ }
+
+ /**
+ * Clone current context
+ *
+ * @return Context
+ */
+ public function cloneContext()
+ {
+ return clone($this);
+ }
+
+ /**
+ * @return int Shop context type (Shop::CONTEXT_ALL, etc.)
+ */
+ public static function shop()
+ {
+ if (!self::$instance->shop->getContextType())
+ return ShopBackwardModule::CONTEXT_ALL;
+ return self::$instance->shop->getContextType();
+ }
+}
+
+/**
+ * Class Shop for Backward compatibility
+ */
+class ShopBackwardModule extends Shop
+{
+ const CONTEXT_ALL = 1;
+
+ public function getContextType()
+ {
+ return ShopBackwardModule::CONTEXT_ALL;
+ }
+
+ // Simulate shop for 1.3 / 1.4
+ public function getID()
+ {
+ return 1;
+ }
+}
+
+/**
+ * Class Controller for a Backward compatibility
+ * Allow to use method declared in 1.5
+ */
+class ControllerBackwardModule
+{
+ /**
+ * @param $js_uri
+ * @return void
+ */
+ public function addJS($js_uri)
+ {
+ Tools::addJS($js_uri);
+ }
+
+ /**
+ * @param $css_uri
+ * @param string $css_media_type
+ * @return void
+ */
+ public function addCSS($css_uri, $css_media_type = 'all')
+ {
+ Tools::addCSS($css_uri, $css_media_type);
+ }
+}
diff --git a/modules/authorizeaim/backward_compatibility/backward.php b/modules/authorizeaim/backward_compatibility/backward.php
new file mode 100755
index 000000000..8d0646c52
--- /dev/null
+++ b/modules/authorizeaim/backward_compatibility/backward.php
@@ -0,0 +1,42 @@
+
+* @copyright 2007-2012 PrestaShop SA
+* @version Release: $Revision: 7723 $
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+/**
+ * Backward function compatibility
+ * Need to be called for each module in 1.4
+ */
+
+// Get out if the context is already defined
+if (!in_array('Context', get_declared_classes()))
+ require_once(dirname(__FILE__).'/Context.php');
+
+if (!isset($this) || isset($this->context))
+ return;
+
+$this->context = Context::getContext();
+$this->smarty = $this->context->smarty;
+
diff --git a/modules/authorizeaim/backward_compatibility/index.php b/modules/authorizeaim/backward_compatibility/index.php
new file mode 100755
index 000000000..6277923e8
--- /dev/null
+++ b/modules/authorizeaim/backward_compatibility/index.php
@@ -0,0 +1,36 @@
+
+* @copyright 2007-2012 PrestaShop SA
+* @version Release: $Revision: 7776 $
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+
+header("Cache-Control: no-store, no-cache, must-revalidate");
+header("Cache-Control: post-check=0, pre-check=0", false);
+header("Pragma: no-cache");
+
+header("Location: ../");
+exit;
\ No newline at end of file
diff --git a/modules/authorizeaim/cards/ax.gif b/modules/authorizeaim/cards/ax.gif
new file mode 100644
index 000000000..b39ff9cd7
Binary files /dev/null and b/modules/authorizeaim/cards/ax.gif differ
diff --git a/modules/authorizeaim/cards/discover.gif b/modules/authorizeaim/cards/discover.gif
new file mode 100644
index 000000000..b42b05cc9
Binary files /dev/null and b/modules/authorizeaim/cards/discover.gif differ
diff --git a/modules/authorizeaim/cards/index.php b/modules/authorizeaim/cards/index.php
new file mode 100644
index 000000000..ba1b1f541
--- /dev/null
+++ b/modules/authorizeaim/cards/index.php
@@ -0,0 +1,36 @@
+
+* @copyright 2007-2012 PrestaShop SA
+* @version Release: $Revision: 7233 $
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+
+header("Cache-Control: no-store, no-cache, must-revalidate");
+header("Cache-Control: post-check=0, pre-check=0", false);
+header("Pragma: no-cache");
+
+header("Location: ../");
+exit;
\ No newline at end of file
diff --git a/modules/authorizeaim/cards/mastercard.gif b/modules/authorizeaim/cards/mastercard.gif
new file mode 100644
index 000000000..2a869a1fc
Binary files /dev/null and b/modules/authorizeaim/cards/mastercard.gif differ
diff --git a/modules/authorizeaim/cards/visa.gif b/modules/authorizeaim/cards/visa.gif
new file mode 100644
index 000000000..6f367c56a
Binary files /dev/null and b/modules/authorizeaim/cards/visa.gif differ
diff --git a/modules/authorizeaim/config.xml b/modules/authorizeaim/config.xml
new file mode 100644
index 000000000..1b2bc927f
--- /dev/null
+++ b/modules/authorizeaim/config.xml
@@ -0,0 +1,12 @@
+
+
+ authorizeaim
+
+
+
+
+
+ 1
+ 0
+
+
\ No newline at end of file
diff --git a/modules/authorizeaim/cvv.png b/modules/authorizeaim/cvv.png
new file mode 100644
index 000000000..5d4282c22
Binary files /dev/null and b/modules/authorizeaim/cvv.png differ
diff --git a/modules/authorizeaim/de.php b/modules/authorizeaim/de.php
new file mode 100644
index 000000000..96db91380
--- /dev/null
+++ b/modules/authorizeaim/de.php
@@ -0,0 +1,44 @@
+authorizeaim_f745351b1387473d3d2de5bfe18d3562'] = 'Fehler, bitte Kreditkarteninformationen überprüfen';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_1814fc250eea61e13aa95e81b61bf72a'] = 'Bezahlen Sie mit authorizeaim';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_442155d68aea78b4ef707796d76ca48c'] = 'Visa-Logo';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_f65943f43529e119969e533dc6f691f9'] = 'Master Card-Logo';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_2937b5dab08029b1055b37c98a98d740'] = 'Discover-Logo';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_3b8a6fa58a71e7448c264c9dc61e6904'] = 'American Express Logo';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_1edaf23879c3b52a8df80069d2af3cef'] = 'Sichere Kreditkartenzahlung mit Authorize.net';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_f11b368cddfe37c47af9b9d91c6ba4f0'] = 'Vollständiger Name';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_379c80c789f0f3e0165b5e6d5df839ca'] = 'Karten-Typ';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_a44217022190f5734b2f72ba1e4f8a79'] = 'Kartennummer';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_8c1279db4db86553e4b9682f78cf500e'] = 'Verfallsdatum';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_60a104dc50579d60cbc90158fada1dcf'] = 'CVV';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_6149e52c36edb9ee4494d5412e42eef2'] = 'die letzten drei Ziffern auf der Rückseite Ihrer Kreditkarte';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_40566b26dcc126bce704f2c1d622a6a3'] = 'Bestellung bestätigen';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_5dfe4041e37dfb15cdbdfe8b977950f5'] = 'Bitte überprüfen Sie Ihre Kreditkarteninformationen (Kreditkarten-Typ, Kreditkarten-Nr. und Verfallsdatum)';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_90c9737c99792791c8fe7c9e469bae9c'] = 'Bitte geben Sie den kompletten Namen an';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_cb313e911b15b21b57f4fc7b53058e4f'] = 'Zahlung mit Authorize.net erhalten';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_9d5b40ff49295ac0b4a5a13a88ccd285'] = 'cURL muss aktiviert sein, um dieses Modul nutzen zu können.';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_20015706a8cbd457cbb6ea3e7d5dc9b3'] = 'Konfiguration aktualisiert';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_6a26f548831e6a8c26bfbbd9f6ec61e0'] = 'Hilfe';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_11a4b229c0e206b831f729572618553f'] = 'In Ihrem PrestaShop Admin-Panel';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_bc6781f2b59d4e973bd0075baab62a40'] = 'Füllen Sie das Login-ID-Feld mit der von Authorize.net vorgesehenen Kennung aus';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_95eb440b753d6505aad5c3f72b50eec9'] = 'Füllen Sie das Schlüsselfeld mit dem Transaktionsschlüssel von Authorize.net aus';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_a7180ba675bb293f415aab47e52a1732'] = 'Hinweis: Ihre Webseite muss ein SSL-Zertifikat besitzen, um Authorize.net AIM verwenden zu können. Sie selbst sind für die sichere Aufbewahrung und Übermittlung der von Ihren Kunden an Sie übermittelten personenbezogenen Daten wie z.B. die Bankdaten verantwortlich. Prestashop entzieht sich jeder Verantwortung falls die Daten gestohlen werden.';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_f4f70727dc34561dfde1a3c529b6205c'] = 'Einstellungen';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_f3ef34226d51e9ca88eaa2f20d7ffb91'] = 'Login-ID';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_897356954c2cd3d41b221e3f24f99bba'] = 'Schlüssel';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_1ee1c44c2dc81681f961235604247b81'] = 'Modus:';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_756d97bb256b8580d4d71ee0c547804e'] = 'Produktion';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_0cbc6611f5540bd0809a388dc95a615b'] = 'Test';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_291cdb0a8abb42484f5d44dc20540ce6'] = 'Karten:';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_b17f3f4dcf653a5776792498a9b44d6a'] = 'Aktualisierungseinstellungen';
+$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_2e2117b7c81aa9ea6931641ea2c6499f'] = 'Ihre Bestellung vom';
+$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_75fbf512d744977d62599cc3f0ae2bb4'] = ' ist abgeschlossen.';
+$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_30163d8fc3068e8297e7ab5bf32aec87'] = 'Ihre Bestellung wird so schnell wie möglich zugeschickt.';
+$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_0db71da7150c27142eef9d22b843b4a9'] = 'Bei Fragen oder für weitere Informationen, kontaktieren Sie bitte unseren';
+$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_64430ad2835be8ad60c59e7d44e4b0b1'] = 'Kunden-Support';
+$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_8de637e24570c1edb0357826a2ad5aea'] = 'Bei Ihrer Bestellung ist ein Fehler aufgetreten. Bitte wenden Sie sich an unseren';
+
+?>
\ No newline at end of file
diff --git a/modules/authorizeaim/en.php b/modules/authorizeaim/en.php
new file mode 100644
index 000000000..601358d4f
--- /dev/null
+++ b/modules/authorizeaim/en.php
@@ -0,0 +1,4 @@
+authorizeaim_cb313e911b15b21b57f4fc7b53058e4f'] = 'Recibir pagos con Authorize.net';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_9d5b40ff49295ac0b4a5a13a88ccd285'] = 'La extención cURL debe estar habilitada en su servidor para utilizar este modulo. ';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_20015706a8cbd457cbb6ea3e7d5dc9b3'] = 'Configuración actualizada';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_6a26f548831e6a8c26bfbbd9f6ec61e0'] = 'Ayuda';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_11a4b229c0e206b831f729572618553f'] = 'En su panel de administración de PrestaShop';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_bc6781f2b59d4e973bd0075baab62a40'] = 'Rellene el campo \"Nombre de usuario\" con el ID proporcionado por Authorize.net';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_95eb440b753d6505aad5c3f72b50eec9'] = 'Rellene el campo \"Clave\" con la clave de operación facilitada por Authorize.net';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_a7180ba675bb293f415aab47e52a1732'] = 'Atención: Su sitio web debe poseer un certificado SSL para utilizar el módulo Authorize.net AIM. Usted es responsable de la seguridad de los datos bancarios de sus clientes. PrestaShop no podrá ser culpado en caso de problemas de seguridad en su sitio web.';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_f4f70727dc34561dfde1a3c529b6205c'] = 'Configuración';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_f3ef34226d51e9ca88eaa2f20d7ffb91'] = 'Nombre de usuario';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_897356954c2cd3d41b221e3f24f99bba'] = 'Clave';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_1ee1c44c2dc81681f961235604247b81'] = 'Modo:';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_756d97bb256b8580d4d71ee0c547804e'] = 'Producción';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_0cbc6611f5540bd0809a388dc95a615b'] = 'Prueba';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_291cdb0a8abb42484f5d44dc20540ce6'] = 'Tarjetas:';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_7c413866cd5708e4c390273762b5c479'] = 'Estado de la orden \"En espera de revisión\"';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_b17f3f4dcf653a5776792498a9b44d6a'] = 'Actualizar la configuración';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_f745351b1387473d3d2de5bfe18d3562'] = 'Error, por favor compruebe sus datos bancarios';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_1814fc250eea61e13aa95e81b61bf72a'] = 'Pagar con authorizeaim';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_442155d68aea78b4ef707796d76ca48c'] = 'Logotipo de Visa';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_f65943f43529e119969e533dc6f691f9'] = 'Logotipo de MasterCard';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_2937b5dab08029b1055b37c98a98d740'] = 'Logotipo de Discover';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_3b8a6fa58a71e7448c264c9dc61e6904'] = 'Logotipo de American Express';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_1edaf23879c3b52a8df80069d2af3cef'] = 'Pago seguro con Authorize.net';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_f11b368cddfe37c47af9b9d91c6ba4f0'] = 'Nombre y apellidos';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_379c80c789f0f3e0165b5e6d5df839ca'] = 'Tipo de tarjeta';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_a44217022190f5734b2f72ba1e4f8a79'] = 'Número de tarjeta';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_8c1279db4db86553e4b9682f78cf500e'] = 'Fecha de caducidad';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_60a104dc50579d60cbc90158fada1dcf'] = 'CVV';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_6149e52c36edb9ee4494d5412e42eef2'] = 'los 3 últimos dígitos de la parte posterior de su tarjeta de crédito';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_40566b26dcc126bce704f2c1d622a6a3'] = 'Validar el pedido';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_5dfe4041e37dfb15cdbdfe8b977950f5'] = 'Por favor verifique le información de su tarjeta de crédito (tipo de tarjeta, fecha de expiración)';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_90c9737c99792791c8fe7c9e469bae9c'] = 'Por favor ponga su nombre completo';
+$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_2e2117b7c81aa9ea6931641ea2c6499f'] = 'Su orden en';
+$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_75fbf512d744977d62599cc3f0ae2bb4'] = 'está completa.';
+$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_30163d8fc3068e8297e7ab5bf32aec87'] = 'Su orden será enviada lo antes posible.';
+$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_0db71da7150c27142eef9d22b843b4a9'] = 'Para cualquier pregunta o más información, por favor, contacte nuestro';
+$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_64430ad2835be8ad60c59e7d44e4b0b1'] = 'servicio al cliente';
+$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_8de637e24570c1edb0357826a2ad5aea'] = 'Hemos encontrado un problema con su orden. Si usted considera que esto es un error puede contactar a nuestro';
diff --git a/modules/authorizeaim/fr.php b/modules/authorizeaim/fr.php
new file mode 100755
index 000000000..53383d461
--- /dev/null
+++ b/modules/authorizeaim/fr.php
@@ -0,0 +1,42 @@
+authorizeaim_cb313e911b15b21b57f4fc7b53058e4f'] = 'Recevoir des paiments avec Authorize.net';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_9d5b40ff49295ac0b4a5a13a88ccd285'] = 'L\'extension cURL doit être activée sur votre serveur pour utiliser ce module.';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_20015706a8cbd457cbb6ea3e7d5dc9b3'] = 'Configuration mise à jour';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_6a26f548831e6a8c26bfbbd9f6ec61e0'] = 'Aide';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_11a4b229c0e206b831f729572618553f'] = 'Dans votre panneau d\'aministration PrestaShop';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_bc6781f2b59d4e973bd0075baab62a40'] = 'Indiquez le login fourni par Authorize.net';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_95eb440b753d6505aad5c3f72b50eec9'] = 'Indiquez la clé de transaction fournie par Authorize.net';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_a7180ba675bb293f415aab47e52a1732'] = 'Attention: votre site doit posséder un certificat SSL pour utiliser le module Authorize.net AIM. Vous êtes responsable de la sécurité des informations bancaires de vos clients. PrestaShop ne peut être tenu responsable en cas de problème de sécurité sur votre site.';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_f4f70727dc34561dfde1a3c529b6205c'] = 'Paramètres';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_f3ef34226d51e9ca88eaa2f20d7ffb91'] = 'Login';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_897356954c2cd3d41b221e3f24f99bba'] = 'Clé';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_1ee1c44c2dc81681f961235604247b81'] = 'Mode';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_756d97bb256b8580d4d71ee0c547804e'] = 'Production';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_0cbc6611f5540bd0809a388dc95a615b'] = 'Test';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_291cdb0a8abb42484f5d44dc20540ce6'] = 'Cartes';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_b17f3f4dcf653a5776792498a9b44d6a'] = 'Mettre à jour la configuration';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_f745351b1387473d3d2de5bfe18d3562'] = 'Erreur, veuillez verifier vos informations bancaires';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_1814fc250eea61e13aa95e81b61bf72a'] = 'Payer avec AuthorizeAIM';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_442155d68aea78b4ef707796d76ca48c'] = 'Logo Visa';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_f65943f43529e119969e533dc6f691f9'] = 'Logo Mastercard';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_2937b5dab08029b1055b37c98a98d740'] = 'Logo Discover';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_3b8a6fa58a71e7448c264c9dc61e6904'] = 'Logo American Express';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_1edaf23879c3b52a8df80069d2af3cef'] = 'Paiement sécurisé avec Authorize.net';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_f11b368cddfe37c47af9b9d91c6ba4f0'] = 'Nom complet';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_379c80c789f0f3e0165b5e6d5df839ca'] = 'Type de carte';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_a44217022190f5734b2f72ba1e4f8a79'] = 'Numéro de carte';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_8c1279db4db86553e4b9682f78cf500e'] = 'Date d\'expiration';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_60a104dc50579d60cbc90158fada1dcf'] = 'Code CVV';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_6149e52c36edb9ee4494d5412e42eef2'] = 'les 3 derniers chiffres au dos de votre carte';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_40566b26dcc126bce704f2c1d622a6a3'] = 'Valider la commande';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_5dfe4041e37dfb15cdbdfe8b977950f5'] = 'Veuillez vérifier vos informations bancaires (type de carte de crédit, numéro et date d\'expiration)';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_90c9737c99792791c8fe7c9e469bae9c'] = 'Merci de spécifier votre nom complet';
+$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_2e2117b7c81aa9ea6931641ea2c6499f'] = 'Votre commande sur';
+$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_75fbf512d744977d62599cc3f0ae2bb4'] = 'Est reussie';
+$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_30163d8fc3068e8297e7ab5bf32aec87'] = 'Votre commende vous sera expedié le plus rapidement possible';
+$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_0db71da7150c27142eef9d22b843b4a9'] = 'Pour toute question, contactez nous';
+$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_64430ad2835be8ad60c59e7d44e4b0b1'] = 'Service client';
+$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_8de637e24570c1edb0357826a2ad5aea'] = 'Nous avons remarqué une erreur avec votre commande. Si vous pensez que c\'est une erreur, vous pouvez contacter notre';
diff --git a/modules/authorizeaim/help.png b/modules/authorizeaim/help.png
new file mode 100644
index 000000000..87f94c8f8
Binary files /dev/null and b/modules/authorizeaim/help.png differ
diff --git a/modules/authorizeaim/hookorderconfirmation.tpl b/modules/authorizeaim/hookorderconfirmation.tpl
new file mode 100644
index 000000000..f5a2f5188
--- /dev/null
+++ b/modules/authorizeaim/hookorderconfirmation.tpl
@@ -0,0 +1,36 @@
+{*
+* 2007-2012 PrestaShop
+*
+* NOTICE OF LICENSE
+*
+* This source file is subject to the Academic Free License (AFL 3.0)
+* that is bundled with this package in the file LICENSE.txt.
+* It is also available through the world-wide-web at this URL:
+* http://opensource.org/licenses/afl-3.0.php
+* If you did not receive a copy of the license and are unable to
+* obtain it through the world-wide-web, please send an email
+* to license@prestashop.com so we can send you a copy immediately.
+*
+* DISCLAIMER
+*
+* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
+* versions in the future. If you wish to customize PrestaShop for your
+* needs please refer to http://www.prestashop.com for more information.
+*
+* @author PrestaShop SA
+* @copyright 2007-2012 PrestaShop SA
+* @version Release: $Revision: 14297 $
+* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*}
+{if $status == 'ok'}
+ {l s='Your order on' mod='authorizeaim'} {$shop_name} {l s='is complete.' mod='authorizeaim'}
+
{l s='Your order will be sent as soon as possible.' mod='authorizeaim'}
+
{l s='For any questions or for further information, please contact our' mod='authorizeaim'} {l s='customer support' mod='authorizeaim'}.
+
+{else}
+
+ {l s='We noticed a problem with your order. If you think this is an error, you can contact our' mod='authorizeaim'}
+ {l s='customer support' mod='authorizeaim'}.
+
+{/if}
diff --git a/modules/authorizeaim/index.php b/modules/authorizeaim/index.php
new file mode 100644
index 000000000..a85fb997d
--- /dev/null
+++ b/modules/authorizeaim/index.php
@@ -0,0 +1,36 @@
+
+* @copyright 2007-2012 PrestaShop SA
+* @version Release: $Revision: 14011 $
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+
+header("Cache-Control: no-store, no-cache, must-revalidate");
+header("Cache-Control: post-check=0, pre-check=0", false);
+header("Pragma: no-cache");
+
+header("Location: ../");
+exit;
\ No newline at end of file
diff --git a/modules/authorizeaim/it.php b/modules/authorizeaim/it.php
new file mode 100644
index 000000000..5d6bb0364
--- /dev/null
+++ b/modules/authorizeaim/it.php
@@ -0,0 +1,44 @@
+authorizeaim_f745351b1387473d3d2de5bfe18d3562'] = 'Errore, vi preghiamo di verificare le informazioni della carta';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_1814fc250eea61e13aa95e81b61bf72a'] = 'Paga con authorizeaim';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_442155d68aea78b4ef707796d76ca48c'] = 'logo visa';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_f65943f43529e119969e533dc6f691f9'] = 'logo mastercard';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_2937b5dab08029b1055b37c98a98d740'] = 'logo discover';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_3b8a6fa58a71e7448c264c9dc61e6904'] = 'logo american express';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_1edaf23879c3b52a8df80069d2af3cef'] = 'Pagamento sicuro con carta di credito con Authorize.net';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_f11b368cddfe37c47af9b9d91c6ba4f0'] = 'Nome completo';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_379c80c789f0f3e0165b5e6d5df839ca'] = 'Tipo di carta';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_a44217022190f5734b2f72ba1e4f8a79'] = 'Numero di carta';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_8c1279db4db86553e4b9682f78cf500e'] = 'Data di scadenza';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_60a104dc50579d60cbc90158fada1dcf'] = 'CVV';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_6149e52c36edb9ee4494d5412e42eef2'] = 'le ultime 3 cifre sul retro della vostra carta di credito';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_40566b26dcc126bce704f2c1d622a6a3'] = 'Convalida ordine';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_5dfe4041e37dfb15cdbdfe8b977950f5'] = 'Per favore verifica le informazione della tua carta (Tipo di carta, numero e data)';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_90c9737c99792791c8fe7c9e469bae9c'] = 'Inserisci il tuo nome completo';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_cb313e911b15b21b57f4fc7b53058e4f'] = 'Ricevi il pagamento con Authorize.net';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_9d5b40ff49295ac0b4a5a13a88ccd285'] = 'estensione cURL deve essere abilitato sul server per utilizzare questo modulo.';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_20015706a8cbd457cbb6ea3e7d5dc9b3'] = 'Configurazione aggiornata';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_6a26f548831e6a8c26bfbbd9f6ec61e0'] = 'Aiuto';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_11a4b229c0e206b831f729572618553f'] = 'Nel tuo pannello admin PrestaShop';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_bc6781f2b59d4e973bd0075baab62a40'] = 'Riempi il campo ID Login con quello fornito da Authorize.net';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_95eb440b753d6505aad5c3f72b50eec9'] = 'Riempire il campo chiave con la chiave di transazione fornita da Authorize.net';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_a7180ba675bb293f415aab47e52a1732'] = 'Attenzione: Il tuo sito web deve possedere un certificato SSL per utilizzare il sistema AIM Authorize.net pagamento. L\'utente è responsabile per la sicurezza dei dati bancari dei vostri clienti \'. PrestaShop non possono essere incolpati per qualsiasi problema di sicurezza nel tuo sito web.';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_f4f70727dc34561dfde1a3c529b6205c'] = 'Impostazioni';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_f3ef34226d51e9ca88eaa2f20d7ffb91'] = 'ID Login ';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_897356954c2cd3d41b221e3f24f99bba'] = 'Chiave';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_1ee1c44c2dc81681f961235604247b81'] = 'Modalità:';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_756d97bb256b8580d4d71ee0c547804e'] = 'Produzione';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_0cbc6611f5540bd0809a388dc95a615b'] = 'Test';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_291cdb0a8abb42484f5d44dc20540ce6'] = 'Carte di credito:';
+$_MODULE['<{authorizeaim}prestashop>authorizeaim_b17f3f4dcf653a5776792498a9b44d6a'] = 'Aggiorna le impostazioni';
+$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_2e2117b7c81aa9ea6931641ea2c6499f'] = 'Il tuo ordine';
+$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_75fbf512d744977d62599cc3f0ae2bb4'] = 'è completo.';
+$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_30163d8fc3068e8297e7ab5bf32aec87'] = 'Il tuo ordine verrà inviato al più presto.';
+$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_0db71da7150c27142eef9d22b843b4a9'] = 'Per eventuali domande o per ulteriori informazioni, contatta la nostra';
+$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_64430ad2835be8ad60c59e7d44e4b0b1'] = 'assistenza clienti';
+$_MODULE['<{authorizeaim}prestashop>hookorderconfirmation_8de637e24570c1edb0357826a2ad5aea'] = 'Abbiamo notato un problema con il tuo ordine. Se pensi che questo sia un errore, contatta la nostra';
+
+?>
\ No newline at end of file
diff --git a/modules/authorizeaim/logo.gif b/modules/authorizeaim/logo.gif
new file mode 100644
index 000000000..fcf31ce4a
Binary files /dev/null and b/modules/authorizeaim/logo.gif differ
diff --git a/modules/authorizeaim/logo_authorize.png b/modules/authorizeaim/logo_authorize.png
new file mode 100644
index 000000000..d6f2b65f1
Binary files /dev/null and b/modules/authorizeaim/logo_authorize.png differ
diff --git a/modules/authorizeaim/logoa.gif b/modules/authorizeaim/logoa.gif
new file mode 100644
index 000000000..b5fc45290
Binary files /dev/null and b/modules/authorizeaim/logoa.gif differ
diff --git a/modules/authorizeaim/secure.png b/modules/authorizeaim/secure.png
new file mode 100644
index 000000000..206a133be
Binary files /dev/null and b/modules/authorizeaim/secure.png differ
diff --git a/modules/authorizeaim/validation.php b/modules/authorizeaim/validation.php
new file mode 100644
index 000000000..972fcae04
--- /dev/null
+++ b/modules/authorizeaim/validation.php
@@ -0,0 +1,133 @@
+
+* @copyright 2007-2012 PrestaShop SA
+* @version Release: $Revision: 14011 $
+* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+include(dirname(__FILE__). '/../../config/config.inc.php');
+/* will include backward file */
+include(dirname(__FILE__). '/authorizeaim.php');
+
+$authorizeaim = new authorizeAIM();
+
+/* SSL Tricks to bypass the redirect for the FrontController in 1.5 + */
+Configuration::updateValue('PS_SSL_ENABLED', 0);
+include(dirname(__FILE__). '/../../init.php');
+Configuration::updateValue('PS_SSL_ENABLED', 1);
+
+/* Transform the POST from the template to a GET for the CURL */
+if (isset($_POST['x_exp_date_m']) && isset($_POST['x_exp_date_y']))
+{
+ $_POST['x_exp_date'] = $_POST['x_exp_date_m'].$_POST['x_exp_date_y'];
+ unset($_POST['x_exp_date_m']);
+ unset($_POST['x_exp_date_y']);
+}
+$postString = '';
+foreach ($_POST as $key => $value)
+ $postString .= $key.'='.urlencode($value).'&';
+
+$postString = trim($postString, '&');
+
+$url = 'https://secure.authorize.net/gateway/transact.dll';
+if (Configuration::get('AUTHORIZE_AIM_DEMO'))
+{
+ $postString .= '&x_test_request=TRUE';
+ $url = 'https://test.authorize.net/gateway/transact.dll';
+}
+
+/* Do the CURL request ro Authorize.net */
+$request = curl_init($url);
+curl_setopt($request, CURLOPT_HEADER, 0);
+curl_setopt($request, CURLOPT_RETURNTRANSFER, 1);
+curl_setopt($request, CURLOPT_POSTFIELDS, $postString);
+curl_setopt($request, CURLOPT_SSL_VERIFYPEER, FALSE);
+$postResponse = curl_exec($request);
+curl_close($request);
+
+$response = explode('|', $postResponse);
+if (!isset($response[7]) || !isset($response[3]) || !isset($response[9]))
+{
+ $msg = 'Authorize.net returned a malformed response for cart';
+ if (isset($response[7]))
+ $msg .= ' '.(int)$response[7];
+ Logger::addLog($msg, 4);
+ die('Authorize.net returned a malformed response, aborted.');
+}
+
+/* Does the cart exist and is valid? */
+$cart = new Cart((int)$response[7]);
+if (!Validate::isLoadedObject($cart))
+{
+ Logger::addLog('Cart loading failed for cart '.(int)$response[7], 4);
+ die('An unrecoverable error occured with the cart '.(int)$repsonse[7]);
+}
+$customer = new Customer((int)$cart->id_customer);
+$message = $response[3];
+$payment_method = 'Authorize.net AIM';
+
+switch ($response[0]) // Response code
+{
+ case 1: // Payment accepted
+ $authorizeaim->setTransactionDetail($response);
+ $authorizeaim->validateOrder((int)$cart->id,
+ Configuration::get('PS_OS_PAYMENT'), (float)$response[9],
+ $payment_method, $message, NULL, NULL, false, $customer->secure_key);
+ break ;
+
+ case 4: // Hold for review
+ $authorizeaim->validateOrder((int)$cart->id,
+ Configuration::get('AUTHORIZE_AIM_HOLD_REVIEW_OS'), (float)$response[9],
+ $authorizeaim->displayName, $response[3]);
+ break ;
+
+ default:
+ $checkout_type = Configuration::get('PS_ORDER_PROCESS_TYPE') ?
+ 'order-opc' : 'order';
+ $url = _PS_VERSION_ >= '1.5' ?
+ 'index.php?controller='.$checkout_type.'&' : $checkout_type.'.php?';
+ $url .= 'step=3&cgv=1&aimerror=1';
+
+ if (!isset($_SERVER['HTTP_REFERER']) ||
+ strstr($_SERVER['HTTP_REFERER'], 'order'))
+ Tools::redirect($url);
+ elseif (strstr($_SERVER['HTTP_REFERER'], '?'))
+ Tools::redirect($_SERVER['HTTP_REFERER'].'&aimerror=1', '');
+ else
+ Tools::redirect($_SERVER['HTTP_REFERER'].'?aimerror=1', '');
+
+ exit;
+
+ /// @todo check the reason code and determine weither we should retry are
+ /// mark the order as failed.
+ $authorizeaim->validateOrder((int)$cart->id,
+ Configuration::get('PS_OS_ERROR'), (float)$response[9],
+ $payment_method, $message, NULL, NULL, false, $customer->secure_key);
+}
+
+$url = 'index.php?controller=order-confirmation&';
+if (_PS_VERSION_ < '1.5')
+ $url = 'order-confirmation.php?';
+
+Tools::redirect($url.'id_module='.(int)$authorizeaim->id.'&id_cart='.
+ (int)$cart->id.'&key='.$customer->secure_key);