Creativestyle_AmazonPayments - Version 1.7.6

Version Notes

# Improvements
- Added support for custom SSL CA bundle file
- Implemented automatic authentication experience
- Disable `Pay with Amazon` availability for zero-total orders
- Retrieving billing address during the checkout
- Added exception handling for missing amazon_user_id attribute
# Fixes
- Added support for SUPEE-6285 patch
- Added support for SUPEE-6788 patch
- Fixed calls to deprecated iconv functions in SDK library
- Fixed display errors for Magento RWD theme

Download this release

Release Info

Developer creativestyle GmbH
Extension Creativestyle_AmazonPayments
Version 1.7.6
Comparing to
See all releases


Code changes from version 1.7.4 to 1.7.6

Files changed (57) hide show
  1. app/code/community/Creativestyle/AmazonPayments/Block/Abstract.php +5 -5
  2. app/code/community/Creativestyle/AmazonPayments/Block/Adminhtml/CredentialsValidator.php +2 -2
  3. app/code/community/Creativestyle/AmazonPayments/Block/Adminhtml/Debug.php +1 -1
  4. app/code/community/Creativestyle/AmazonPayments/Block/Adminhtml/Info.php +10 -0
  5. app/code/community/Creativestyle/AmazonPayments/Block/Adminhtml/Log/Abstract.php +1 -1
  6. app/code/community/Creativestyle/AmazonPayments/Block/Adminhtml/Log/Api/Grid.php +4 -30
  7. app/code/community/Creativestyle/AmazonPayments/Block/Adminhtml/Log/Exception/Grid.php +4 -34
  8. app/code/community/Creativestyle/AmazonPayments/Block/Adminhtml/Log/Grid/Abstract.php +51 -0
  9. app/code/community/Creativestyle/AmazonPayments/Block/Adminhtml/Log/Ipn/Grid.php +4 -30
  10. app/code/community/Creativestyle/AmazonPayments/Block/Adminhtml/Log/View/Abstract.php +1 -1
  11. app/code/community/Creativestyle/AmazonPayments/Block/Adminhtml/SellerCentral.php +368 -0
  12. app/code/community/Creativestyle/AmazonPayments/Block/Login/Abstract.php +2 -2
  13. app/code/community/Creativestyle/AmazonPayments/Block/Pay/Abstract.php +2 -2
  14. app/code/community/Creativestyle/AmazonPayments/Helper/Data.php +0 -2
  15. app/code/community/Creativestyle/AmazonPayments/Model/Checkout.php +12 -2
  16. app/code/community/Creativestyle/AmazonPayments/Model/Config.php +17 -3
  17. app/code/community/Creativestyle/AmazonPayments/Model/Lookup/Authentication.php +2 -0
  18. app/code/community/Creativestyle/AmazonPayments/Model/Observer.php +5 -4
  19. app/code/community/Creativestyle/AmazonPayments/Model/Payment/Abstract.php +3 -0
  20. app/code/community/Creativestyle/AmazonPayments/Model/Processor/Order.php +17 -15
  21. app/code/community/Creativestyle/AmazonPayments/Model/Processor/TransactionAdapter.php +21 -0
  22. app/code/community/Creativestyle/AmazonPayments/Model/Service/Login.php +5 -0
  23. app/code/community/Creativestyle/AmazonPayments/controllers/Adminhtml/{DebugController.php → Amazonpayments/DebugController.php} +14 -9
  24. app/code/community/Creativestyle/AmazonPayments/controllers/Adminhtml/{Log → Amazonpayments/Log}/ApiController.php +6 -2
  25. app/code/community/Creativestyle/AmazonPayments/controllers/Adminhtml/{Log → Amazonpayments/Log}/ExceptionController.php +6 -2
  26. app/code/community/Creativestyle/AmazonPayments/controllers/Adminhtml/{Log → Amazonpayments/Log}/IpnController.php +6 -2
  27. app/code/community/Creativestyle/AmazonPayments/controllers/Adminhtml/{OrderController.php → Amazonpayments/OrderController.php} +6 -17
  28. app/code/community/Creativestyle/AmazonPayments/controllers/Adminhtml/{SystemController.php → Amazonpayments/SystemController.php} +6 -2
  29. app/code/community/Creativestyle/AmazonPayments/controllers/Adminhtml/DocumentationController.php +0 -31
  30. app/code/community/Creativestyle/AmazonPayments/etc/adminhtml.xml +21 -22
  31. app/code/community/Creativestyle/AmazonPayments/etc/config.xml +8 -8
  32. app/code/community/Creativestyle/AmazonPayments/etc/system.xml +0 -13
  33. app/code/community/Creativestyle/AmazonPayments/sql/amazonpayments_setup/mysql4-upgrade-1.7.4-1.7.6.php +32 -0
  34. app/design/adminhtml/default/default/layout/amazonpayments.xml +15 -25
  35. app/design/adminhtml/default/default/template/creativestyle/amazonpayments/advanced/log/api/view.phtml +1 -1
  36. app/design/adminhtml/default/default/template/creativestyle/amazonpayments/info.phtml +14 -13
  37. app/design/adminhtml/default/default/template/creativestyle/amazonpayments/seller_central.phtml +43 -0
  38. app/design/frontend/base/default/layout/amazonpayments.xml +1 -2
  39. app/design/frontend/base/default/template/creativestyle/amazonpayments/onepage/button.phtml +5 -1
  40. app/locale/de_DE/Creativestyle_AmazonPayments.csv +2 -1
  41. app/locale/en_GB/Creativestyle_AmazonPayments.csv +2 -1
  42. app/locale/en_US/Creativestyle_AmazonPayments.csv +2 -1
  43. app/locale/es_ES/Creativestyle_AmazonPayments.csv +2 -1
  44. app/locale/fr_FR/Creativestyle_AmazonPayments.csv +2 -1
  45. app/locale/it_IT/Creativestyle_AmazonPayments.csv +2 -1
  46. js/creativestyle/apa_checkout.js +2 -2
  47. js/creativestyle/apa_checkout.min.js +1 -1
  48. lib/OffAmazonPaymentsService/Client.php +11 -3
  49. package.xml +18 -12
  50. skin/adminhtml/default/default/creativestyle/css/amazonpayments.css +10 -2
  51. skin/adminhtml/default/default/creativestyle/images/amazon-payments-advanced-creativestyle-header-logo-white.png +0 -0
  52. skin/adminhtml/default/default/creativestyle/images/amazon-payments-advanced-creativestyle-header-logo.png +0 -0
  53. skin/adminhtml/default/default/creativestyle/images/amazon-payments-advanced-creativestyle-logo.png +0 -0
  54. skin/frontend/base/default/creativestyle/css/amazonpayments.css +17 -0
  55. skin/frontend/rwd/default/creativestyle/css/amazonpayments.css +173 -0
  56. skin/frontend/rwd/default/creativestyle/images/amazon-loading-large.gif +0 -0
  57. skin/frontend/rwd/default/creativestyle/images/logo_a-glyph_1x.png +0 -0
app/code/community/Creativestyle/AmazonPayments/Block/Abstract.php CHANGED
@@ -10,7 +10,7 @@
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
- * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
  abstract class Creativestyle_AmazonPayments_Block_Abstract extends Mage_Core_Block_Template {
@@ -32,9 +32,7 @@ abstract class Creativestyle_AmazonPayments_Block_Abstract extends Mage_Core_Blo
32
 
33
  protected function _isConnectionSecure() {
34
  if ($this->_getConfig()->isActive() & Creativestyle_AmazonPayments_Model_Config::LOGIN_WITH_AMAZON_ACTIVE) {
35
- if ($this->isPopup()) {
36
- return Mage::app()->getStore()->isCurrentlySecure();
37
- }
38
  }
39
  return true;
40
  }
@@ -158,7 +156,9 @@ abstract class Creativestyle_AmazonPayments_Block_Abstract extends Mage_Core_Blo
158
  }
159
 
160
  public function isPopup() {
161
- return $this->_getConfig()->isPopupAuthenticationExperience();
 
 
162
  }
163
 
164
  }
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
+ * @copyright Copyright (c) 2014 - 2016 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
  abstract class Creativestyle_AmazonPayments_Block_Abstract extends Mage_Core_Block_Template {
32
 
33
  protected function _isConnectionSecure() {
34
  if ($this->_getConfig()->isActive() & Creativestyle_AmazonPayments_Model_Config::LOGIN_WITH_AMAZON_ACTIVE) {
35
+ return Mage::app()->getStore()->isCurrentlySecure();
 
 
36
  }
37
  return true;
38
  }
156
  }
157
 
158
  public function isPopup() {
159
+ if (Mage::helper('amazonpayments')->isMobileDevice()) return false;
160
+ return $this->_getConfig()->isAutoAuthenticationExperience() && $this->_isConnectionSecure()
161
+ || $this->_getConfig()->isPopupAuthenticationExperience();
162
  }
163
 
164
  }
app/code/community/Creativestyle/AmazonPayments/Block/Adminhtml/CredentialsValidator.php CHANGED
@@ -10,7 +10,7 @@
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
- * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
  class Creativestyle_AmazonPayments_Block_Adminhtml_CredentialsValidator extends Mage_Adminhtml_Block_System_Config_Form_Field {
@@ -22,7 +22,7 @@ class Creativestyle_AmazonPayments_Block_Adminhtml_CredentialsValidator extends
22
  $html .= '<button title="' . $this->__('Validate Amazon Payments account'). '" type="button" class="scalable save" onclick="amazonAccountValidate()" style=""><span><span><span>' . $this->__('Validate Amazon Payments account'). '</span></span></span></button>';
23
  $html .= '<script type="text/javascript">//<![CDATA[' . "\n";
24
  $html .= ' function amazonAccountValidate() {' . "\n";
25
- $html .= ' new Ajax.Updater(\'amazonAccountValidation\', \'' . Mage::helper('adminhtml')->getUrl('admin_amazonpayments/adminhtml_system/validate') . '\', {' . "\n";
26
  $html .= ' parameters: {' . "\n";
27
  $html .= ' merchantId: $F(\'amazonpayments_account_merchant_id\'),' . "\n";
28
  $html .= ' accessKey: $F(\'amazonpayments_account_access_key\'),' . "\n";
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
+ * @copyright Copyright (c) 2014 - 2015 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
  class Creativestyle_AmazonPayments_Block_Adminhtml_CredentialsValidator extends Mage_Adminhtml_Block_System_Config_Form_Field {
22
  $html .= '<button title="' . $this->__('Validate Amazon Payments account'). '" type="button" class="scalable save" onclick="amazonAccountValidate()" style=""><span><span><span>' . $this->__('Validate Amazon Payments account'). '</span></span></span></button>';
23
  $html .= '<script type="text/javascript">//<![CDATA[' . "\n";
24
  $html .= ' function amazonAccountValidate() {' . "\n";
25
+ $html .= ' new Ajax.Updater(\'amazonAccountValidation\', \'' . Mage::helper('adminhtml')->getUrl('adminhtml/amazonpayments_system/validate') . '\', {' . "\n";
26
  $html .= ' parameters: {' . "\n";
27
  $html .= ' merchantId: $F(\'amazonpayments_account_merchant_id\'),' . "\n";
28
  $html .= ' accessKey: $F(\'amazonpayments_account_access_key\'),' . "\n";
app/code/community/Creativestyle/AmazonPayments/Block/Adminhtml/Debug.php CHANGED
@@ -10,7 +10,7 @@
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
- * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
  class Creativestyle_AmazonPayments_Block_Adminhtml_Debug extends Mage_Adminhtml_Block_Template {
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
+ * @copyright Copyright (c) 2014 - 2015 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
  class Creativestyle_AmazonPayments_Block_Adminhtml_Debug extends Mage_Adminhtml_Block_Template {
app/code/community/Creativestyle/AmazonPayments/Block/Adminhtml/Info.php CHANGED
@@ -16,11 +16,21 @@
16
  class Creativestyle_AmazonPayments_Block_Adminhtml_Info extends Mage_Adminhtml_Block_System_Config_Form_Fieldset {
17
 
18
  protected function _getInfo() {
 
 
 
19
  $this->setTemplate('creativestyle/amazonpayments/info.phtml');
20
  $output = $this->toHtml();
21
  return $output;
22
  }
23
 
 
 
 
 
 
 
 
24
  public function getExtensionVersion() {
25
  return (string)Mage::getConfig()->getNode('modules/Creativestyle_AmazonPayments/version');
26
  }
16
  class Creativestyle_AmazonPayments_Block_Adminhtml_Info extends Mage_Adminhtml_Block_System_Config_Form_Fieldset {
17
 
18
  protected function _getInfo() {
19
+ if (!$this->getChild('seller_central_config')) {
20
+ $this->setChild('seller_central_config', $this->getLayout()->createBlock('amazonpayments/adminhtml_sellerCentral')->setHtmlId('amazonpayments_plugin_info_seller_central'));
21
+ }
22
  $this->setTemplate('creativestyle/amazonpayments/info.phtml');
23
  $output = $this->toHtml();
24
  return $output;
25
  }
26
 
27
+ public function getSellerCentralConfigHtml() {
28
+ if ($this->getChild('seller_central_config')) {
29
+ return $this->getChild('seller_central_config')->toHtml();
30
+ }
31
+ return '';
32
+ }
33
+
34
  public function getExtensionVersion() {
35
  return (string)Mage::getConfig()->getNode('modules/Creativestyle_AmazonPayments/version');
36
  }
app/code/community/Creativestyle/AmazonPayments/Block/Adminhtml/Log/Abstract.php CHANGED
@@ -10,7 +10,7 @@
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
- * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
  abstract class Creativestyle_AmazonPayments_Block_Adminhtml_Log_Abstract extends Mage_Adminhtml_Block_Widget_Grid_Container {
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
+ * @copyright Copyright (c) 2014 - 2015 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
  abstract class Creativestyle_AmazonPayments_Block_Adminhtml_Log_Abstract extends Mage_Adminhtml_Block_Widget_Grid_Container {
app/code/community/Creativestyle/AmazonPayments/Block/Adminhtml/Log/Api/Grid.php CHANGED
@@ -10,10 +10,12 @@
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
- * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
- class Creativestyle_AmazonPayments_Block_Adminhtml_Log_Api_Grid extends Mage_Adminhtml_Block_Widget_Grid {
 
 
17
 
18
  public function __construct() {
19
  parent::__construct();
@@ -22,12 +24,6 @@ class Creativestyle_AmazonPayments_Block_Adminhtml_Log_Api_Grid extends Mage_Adm
22
  $this->setSaveParametersInSession(true);
23
  }
24
 
25
- protected function _prepareCollection() {
26
- $collection = Mage::getModel('amazonpayments/log_collection')->setLogType('api');
27
- $this->setCollection($collection);
28
- return parent::_prepareCollection();
29
- }
30
-
31
  protected function _prepareColumns() {
32
 
33
  $this->addColumn('timestamp', array(
@@ -63,29 +59,7 @@ class Creativestyle_AmazonPayments_Block_Adminhtml_Log_Api_Grid extends Mage_Adm
63
  'sortable' => false
64
  ));
65
 
66
- $this->addColumn('preview_action', array(
67
- 'header' => Mage::helper('amazonpayments')->__('Preview'),
68
- 'type' => 'action',
69
- 'align' => 'center',
70
- 'width' => '50px',
71
- 'getter' => 'getId',
72
- 'actions' => array(
73
- array(
74
- 'caption' => Mage::helper('amazonpayments')->__('Preview'),
75
- 'url' => array('base' => '*/*/view'),
76
- 'field' => 'id'
77
- )
78
- ),
79
- 'filter' => false,
80
- 'sortable' => false,
81
- 'is_system' => true
82
- ));
83
-
84
  return parent::_prepareColumns();
85
  }
86
 
87
- public function getRowUrl($row) {
88
- return $this->getUrl('*/*/view', array('id' => $row->getId()));
89
- }
90
-
91
  }
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
+ * @copyright Copyright (c) 2014 - 2015 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
+ class Creativestyle_AmazonPayments_Block_Adminhtml_Log_Api_Grid extends Creativestyle_AmazonPayments_Block_Adminhtml_Log_Grid_Abstract {
17
+
18
+ protected $_logType = 'api';
19
 
20
  public function __construct() {
21
  parent::__construct();
24
  $this->setSaveParametersInSession(true);
25
  }
26
 
 
 
 
 
 
 
27
  protected function _prepareColumns() {
28
 
29
  $this->addColumn('timestamp', array(
59
  'sortable' => false
60
  ));
61
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
  return parent::_prepareColumns();
63
  }
64
 
 
 
 
 
65
  }
app/code/community/Creativestyle/AmazonPayments/Block/Adminhtml/Log/Exception/Grid.php CHANGED
@@ -10,10 +10,12 @@
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
- * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
- class Creativestyle_AmazonPayments_Block_Adminhtml_Log_Exception_Grid extends Mage_Adminhtml_Block_Widget_Grid {
 
 
17
 
18
  public function __construct() {
19
  parent::__construct();
@@ -22,12 +24,6 @@ class Creativestyle_AmazonPayments_Block_Adminhtml_Log_Exception_Grid extends Ma
22
  $this->setSaveParametersInSession(true);
23
  }
24
 
25
- protected function _prepareCollection() {
26
- $collection = Mage::getModel('amazonpayments/log_collection')->setLogType('exception');
27
- $this->setCollection($collection);
28
- return parent::_prepareCollection();
29
- }
30
-
31
  protected function _prepareColumns() {
32
 
33
  $this->addColumn('timestamp', array(
@@ -56,33 +52,7 @@ class Creativestyle_AmazonPayments_Block_Adminhtml_Log_Exception_Grid extends Ma
56
  'sortable' => false
57
  ));
58
 
59
- $this->addColumn('preview_action', array(
60
- 'header' => Mage::helper('amazonpayments')->__('Preview'),
61
- 'type' => 'action',
62
- 'align' => 'center',
63
- 'width' => '50px',
64
- 'getter' => 'getId',
65
- 'actions' => array(
66
- array(
67
- 'caption' => Mage::helper('amazonpayments')->__('Preview'),
68
- 'url' => array('base' => '*/*/view'),
69
- 'field' => 'id'
70
- )
71
- ),
72
- 'filter' => false,
73
- 'sortable' => false,
74
- 'is_system' => true
75
- ));
76
-
77
  return parent::_prepareColumns();
78
  }
79
 
80
- public function getRowUrl($row) {
81
- return $this->getUrl('*/*/view', array('id' => $row->getId()));
82
- }
83
-
84
- public function getHeaderCssClass() {
85
- return 'head-amazonpayments-icon';
86
- }
87
-
88
  }
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
+ * @copyright Copyright (c) 2014 - 2015 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
+ class Creativestyle_AmazonPayments_Block_Adminhtml_Log_Exception_Grid extends Creativestyle_AmazonPayments_Block_Adminhtml_Log_Grid_Abstract {
17
+
18
+ protected $_logType = 'exception';
19
 
20
  public function __construct() {
21
  parent::__construct();
24
  $this->setSaveParametersInSession(true);
25
  }
26
 
 
 
 
 
 
 
27
  protected function _prepareColumns() {
28
 
29
  $this->addColumn('timestamp', array(
52
  'sortable' => false
53
  ));
54
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  return parent::_prepareColumns();
56
  }
57
 
 
 
 
 
 
 
 
 
58
  }
app/code/community/Creativestyle/AmazonPayments/Block/Adminhtml/Log/Grid/Abstract.php ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * This file is part of the official Amazon Payments Advanced extension
5
+ * for Magento (c) creativestyle GmbH <amazon@creativestyle.de>
6
+ * All rights reserved
7
+ *
8
+ * Reuse or modification of this source code is not allowed
9
+ * without written permission from creativestyle GmbH
10
+ *
11
+ * @category Creativestyle
12
+ * @package Creativestyle_AmazonPayments
13
+ * @copyright Copyright (c) 2015 creativestyle GmbH
14
+ * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
+ */
16
+ class Creativestyle_AmazonPayments_Block_Adminhtml_Log_Grid_Abstract extends Mage_Adminhtml_Block_Widget_Grid {
17
+
18
+ protected $_logType = null;
19
+
20
+ protected function _prepareCollection() {
21
+ $collection = Mage::getModel('amazonpayments/log_collection')->setLogType($this->_logType);
22
+ $this->setCollection($collection);
23
+ return parent::_prepareCollection();
24
+ }
25
+
26
+ protected function _prepareColumns() {
27
+ $this->addColumn('preview_action', array(
28
+ 'header' => Mage::helper('amazonpayments')->__('Preview'),
29
+ 'type' => 'action',
30
+ 'align' => 'center',
31
+ 'width' => '50px',
32
+ 'getter' => 'getId',
33
+ 'actions' => array(
34
+ array(
35
+ 'caption' => Mage::helper('amazonpayments')->__('Preview'),
36
+ 'url' => array('base' => '*/*/view'),
37
+ 'field' => 'id'
38
+ )
39
+ ),
40
+ 'filter' => false,
41
+ 'sortable' => false,
42
+ 'is_system' => true
43
+ ));
44
+ return parent::_prepareColumns();
45
+ }
46
+
47
+ public function getRowUrl($row) {
48
+ return $this->getUrl('*/*/view', array('id' => $row->getId()));
49
+ }
50
+
51
+ }
app/code/community/Creativestyle/AmazonPayments/Block/Adminhtml/Log/Ipn/Grid.php CHANGED
@@ -10,10 +10,12 @@
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
- * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
- class Creativestyle_AmazonPayments_Block_Adminhtml_Log_Ipn_Grid extends Mage_Adminhtml_Block_Widget_Grid {
 
 
17
 
18
  public function __construct() {
19
  parent::__construct();
@@ -22,12 +24,6 @@ class Creativestyle_AmazonPayments_Block_Adminhtml_Log_Ipn_Grid extends Mage_Adm
22
  $this->setSaveParametersInSession(true);
23
  }
24
 
25
- protected function _prepareCollection() {
26
- $collection = Mage::getModel('amazonpayments/log_collection')->setLogType('ipn');
27
- $this->setCollection($collection);
28
- return parent::_prepareCollection();
29
- }
30
-
31
  protected function _prepareColumns() {
32
 
33
  $this->addColumn('timestamp', array(
@@ -56,29 +52,7 @@ class Creativestyle_AmazonPayments_Block_Adminhtml_Log_Ipn_Grid extends Mage_Adm
56
  'sortable' => false
57
  ));
58
 
59
- $this->addColumn('preview_action', array(
60
- 'header' => Mage::helper('amazonpayments')->__('Preview'),
61
- 'type' => 'action',
62
- 'align' => 'center',
63
- 'width' => '50px',
64
- 'getter' => 'getId',
65
- 'actions' => array(
66
- array(
67
- 'caption' => Mage::helper('amazonpayments')->__('Preview'),
68
- 'url' => array('base' => '*/*/view'),
69
- 'field' => 'id'
70
- )
71
- ),
72
- 'filter' => false,
73
- 'sortable' => false,
74
- 'is_system' => true
75
- ));
76
-
77
  return parent::_prepareColumns();
78
  }
79
 
80
- public function getRowUrl($row) {
81
- return $this->getUrl('*/*/view', array('id' => $row->getId()));
82
- }
83
-
84
  }
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
+ * @copyright Copyright (c) 2014 - 2015 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
+ class Creativestyle_AmazonPayments_Block_Adminhtml_Log_Ipn_Grid extends Creativestyle_AmazonPayments_Block_Adminhtml_Log_Grid_Abstract {
17
+
18
+ protected $_logType = 'ipn';
19
 
20
  public function __construct() {
21
  parent::__construct();
24
  $this->setSaveParametersInSession(true);
25
  }
26
 
 
 
 
 
 
 
27
  protected function _prepareColumns() {
28
 
29
  $this->addColumn('timestamp', array(
52
  'sortable' => false
53
  ));
54
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  return parent::_prepareColumns();
56
  }
57
 
 
 
 
 
58
  }
app/code/community/Creativestyle/AmazonPayments/Block/Adminhtml/Log/View/Abstract.php CHANGED
@@ -10,7 +10,7 @@
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
- * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
  class Creativestyle_AmazonPayments_Block_Adminhtml_Log_View_Abstract extends Mage_Adminhtml_Block_Widget_Container {
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
+ * @copyright Copyright (c) 2014 - 2015 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
  class Creativestyle_AmazonPayments_Block_Adminhtml_Log_View_Abstract extends Mage_Adminhtml_Block_Widget_Container {
app/code/community/Creativestyle/AmazonPayments/Block/Adminhtml/SellerCentral.php ADDED
@@ -0,0 +1,368 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * This file is part of the official Amazon Payments Advanced extension
5
+ * for Magento (c) creativestyle GmbH <amazon@creativestyle.de>
6
+ * All rights reserved
7
+ *
8
+ * Reuse or modification of this source code is not allowed
9
+ * without written permission from creativestyle GmbH
10
+ *
11
+ * @category Creativestyle
12
+ * @package Creativestyle_AmazonPayments
13
+ * @copyright Copyright (c) 2015 creativestyle GmbH
14
+ * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
+ */
16
+ class Creativestyle_AmazonPayments_Block_Adminhtml_SellerCentral extends Mage_Adminhtml_Block_Template {
17
+
18
+ protected $_configOptions = null;
19
+
20
+ protected $_ipnUrls = null;
21
+
22
+ protected $_jsOrigins = null;
23
+
24
+ protected $_returnUrls = null;
25
+
26
+ /**
27
+ * Store views collection
28
+ */
29
+ protected $_storeCollection = null;
30
+
31
+ /**
32
+ * Store groups array
33
+ */
34
+ protected $_storeGroups = array();
35
+
36
+ protected $_merchantIds = null;
37
+
38
+ protected function _construct() {
39
+ $this->setTemplate('creativestyle/amazonpayments/seller_central.phtml');
40
+ return parent::_construct();
41
+ }
42
+
43
+ protected function _getConfig() {
44
+ return Mage::getSingleton('amazonpayments/config');
45
+ }
46
+
47
+ /**
48
+ * Returns store views collection
49
+ *
50
+ * @return Mage_Core_Model_Resource_Store_Collection
51
+ */
52
+ protected function _getStoreCollection() {
53
+ if (null === $this->_storeCollection) {
54
+ $this->_storeCollection = Mage::getModel('core/store')->getCollection()->load();
55
+ }
56
+ return $this->_storeCollection;
57
+ }
58
+
59
+ protected function _getStoreGroup($groupId) {
60
+ if (!isset($this->_storeGroups[$groupId])) {
61
+ $this->_storeGroups[$groupId] = Mage::getModel('core/store_group')->load($groupId);
62
+ }
63
+ return $this->_storeGroups[$groupId];
64
+ }
65
+
66
+ protected function _getMerchantId($storeId) {
67
+ if (null === $this->_merchantIds) {
68
+ $this->_merchantIds = array();
69
+ foreach ($this->_getStoreCollection() as $store) {
70
+ $this->_merchantIds[$store->getId()] = $this->_getConfig()->getMerchantId($store->getId());
71
+ }
72
+ }
73
+ if (isset($this->_merchantIds[$storeId])) {
74
+ return $this->_merchantIds[$storeId];
75
+ }
76
+ return null;
77
+ }
78
+
79
+ protected function _getDefaultStoreViewId($groupId) {
80
+ return $this->_getStoreGroup($groupId)->getDefaultStoreId();
81
+ }
82
+
83
+ protected function _getIpnUrls() {
84
+ if (null === $this->_ipnUrls) {
85
+ $this->_ipnUrls = array();
86
+ foreach ($this->_getStoreCollection() as $store) {
87
+ if (($this->_getConfig()->isActive($store->getId()) & Creativestyle_AmazonPayments_Model_Config::PAY_WITH_AMAZON_ACTIVE) && $this->_getConfig()->isIpnActive($store->getId())) {
88
+ $urlParams = array(
89
+ '_current' => false,
90
+ '_nosid' => true,
91
+ '_store' => $store->getId(),
92
+ '_secure' => !$this->_getConfig()->isSandbox($store->getId())
93
+ );
94
+ $url = Mage::getModel('core/url')->setStore($store->getId())->getUrl('amazonpayments/advanced_ipn/', $urlParams);
95
+ $scheme = parse_url($url, PHP_URL_SCHEME);
96
+ if ($scheme == 'https' || $this->_getConfig()->isSandbox($store->getId())) {
97
+ $merchantId = $this->_getMerchantId($store->getId());
98
+ $defaultStoreId = $this->_getDefaultStoreViewId($store->getGroupId());
99
+ if (array_search($url, $this->_ipnUrls) != $merchantId || $defaultStoreId == $store->getId()) {
100
+ $this->_ipnUrls[$merchantId] = $url;
101
+ }
102
+ }
103
+ }
104
+ }
105
+ }
106
+ return $this->_ipnUrls;
107
+ }
108
+
109
+ protected function _getIpnUrlsHtml($htmlId) {
110
+ $placeholder = <<<EOH
111
+ <em>I couldn't find any IPN endpoint URL :( Please double check if following conditions set is met in any store view:
112
+ <ul>
113
+ <li><strong>Amazon Payments > General Settings > Enable Instant Payment Notifications</strong> is set to <strong>Yes</strong></li>
114
+ <li><strong>General > Web > Secure > Base URL</strong> starts with <strong>https</strong> and <strong>General > Web > Secure > Use Secure URLs in Frontend</strong> is set to <strong>Yes</strong> (alternatively: <strong>Amazon Payments > General Settings > Sandbox Mode</strong> is set to <strong>Yes</strong>)</li>
115
+ </ul>
116
+ </em>
117
+ EOH;
118
+
119
+ $html = '';
120
+ $ipnUrls = $this->_getIpnUrls();
121
+ $ipnUrlsCount = count($ipnUrls);
122
+ foreach ($ipnUrls as $merchantId => $ipnUrl) {
123
+
124
+ $html .= '<div class="section-config">';
125
+ if ($ipnUrlsCount > 1) {
126
+ $html .= sprintf('<div class="entry-edit-head collapseable"><a id="%s-head" href="#" onclick="Fieldset.toggleCollapse(\'%s\'); return false;">%s</a></div>',
127
+ $htmlId . '_' . $merchantId,
128
+ $htmlId . '_' . $merchantId,
129
+ $this->helper('amazonpayments')->__('<span class="close">Click to reveal config for </span>%s', $merchantId)
130
+ );
131
+ $html .= sprintf('<input id="%s-state" name="config_state[%s]" type="hidden" value="0">',
132
+ $htmlId . '_' . $merchantId,
133
+ $htmlId . '_' . $merchantId
134
+ );
135
+ $html .= '<div class="fieldset config" id="' . $htmlId . '_' . $merchantId . '">';
136
+ } else {
137
+ $html .= '<div class="fieldset">';
138
+ }
139
+ $html .= sprintf('<a class="nobr" href="%s">%s</a>', $ipnUrl, $ipnUrl);
140
+ $html .= '</div>';
141
+ $html .= '</div>';
142
+ if ($ipnUrlsCount > 1) {
143
+ $html .= '<script type="text/javascript">//<![CDATA[' . "\n";
144
+ $html .= 'Fieldset.applyCollapse(\'' . $htmlId . '_' . $merchantId . '\');' . "\n";
145
+ $html .= '//]]></script>' . "\n";
146
+ }
147
+ }
148
+ return $html ? $html : $placeholder;
149
+ }
150
+
151
+ protected function _getJavascriptOrigins() {
152
+ if (null === $this->_jsOrigins) {
153
+ $this->_jsOrigins = array();
154
+ foreach ($this->_getStoreCollection() as $store) {
155
+ if ($this->_getConfig()->isActive($store->getId()) & Creativestyle_AmazonPayments_Model_Config::LOGIN_WITH_AMAZON_ACTIVE) {
156
+ $secureUrl = Mage::getModel('core/url')
157
+ ->setStore($store->getId())
158
+ ->getUrl('/', array(
159
+ '_current' => false, '_secure' => true, '_nosid' => true, '_store' => $store->getId()
160
+ )
161
+ );
162
+ $scheme = parse_url($secureUrl, PHP_URL_SCHEME);
163
+ if ($scheme == 'https') {
164
+ $host = parse_url($secureUrl, PHP_URL_HOST);
165
+ $origin = 'https://' . $host;
166
+ $port = parse_url($secureUrl, PHP_URL_PORT);
167
+ if ($port) {
168
+ $origin .= ':' . $port;
169
+ }
170
+ $merchantId = $this->_getMerchantId($store->getId());
171
+ if (!isset($this->_jsOrigins[$merchantId])) {
172
+ $this->_jsOrigins[$merchantId] = array();
173
+ }
174
+ if (array_search($origin, $this->_jsOrigins[$merchantId]) === false) {
175
+ $this->_jsOrigins[$merchantId][] = $origin;
176
+ }
177
+ }
178
+ }
179
+ }
180
+ }
181
+ return $this->_jsOrigins;
182
+ }
183
+
184
+ protected function _getJavascriptOriginsHtml($htmlId) {
185
+ $placeholder = <<<EOH
186
+ <em>I couldn't find any JS origin URL :( Please double check if following conditions set is met in any store view:
187
+ <ul>
188
+ <li><strong>Amazon Payments > Login with Amazon > Enable Login with Amazon</strong> is set to <strong>Yes</strong></li>
189
+ <li><strong>General > Web > Secure > Base URL</strong> starts with <strong>https</strong> and <strong>General > Web > Secure > Use Secure URLs in Frontend</strong> is set to <strong>Yes</strong></li>
190
+ </ul>
191
+ </em>
192
+ EOH;
193
+
194
+ $html = '';
195
+ $jsOrigins = $this->_getJavascriptOrigins();
196
+ $jsOriginsCount = count($jsOrigins);
197
+ foreach ($jsOrigins as $merchantId => $origins) {
198
+ $html .= '<div class="section-config">';
199
+ if ($jsOriginsCount > 1) {
200
+ $html .= sprintf('<div class="entry-edit-head collapseable"><a id="%s-head" href="#" onclick="Fieldset.toggleCollapse(\'%s\'); return false;">%s</a></div>',
201
+ $htmlId . '_' . $merchantId,
202
+ $htmlId . '_' . $merchantId,
203
+ $this->helper('amazonpayments')->__('<span class="close">Click to reveal config for </span>%s', $merchantId)
204
+ );
205
+ $html .= sprintf('<input id="%s-state" name="config_state[%s]" type="hidden" value="0">',
206
+ $htmlId . '_' . $merchantId,
207
+ $htmlId . '_' . $merchantId
208
+ );
209
+ $html .= '<div class="fieldset config" id="' . $htmlId . '_' . $merchantId . '">';
210
+ } else {
211
+ $html .= '<div class="fieldset">';
212
+ }
213
+ $jsOriginsHtml = array();
214
+ foreach ($origins as $origin) {
215
+ $jsOriginsHtml[] = sprintf('<a class="nobr" href="%s">%s</a>', $origin, $origin);
216
+ }
217
+ $html .= implode('<br/>', $jsOriginsHtml);
218
+ $html .= '</div>';
219
+ $html .= '</div>';
220
+ if ($jsOriginsCount > 1) {
221
+ $html .= '<script type="text/javascript">//<![CDATA[' . "\n";
222
+ $html .= 'Fieldset.applyCollapse(\'' . $htmlId . '_' . $merchantId . '\');' . "\n";
223
+ $html .= '//]]></script>' . "\n";
224
+ }
225
+ }
226
+ return $html ? $html : $placeholder;
227
+ }
228
+
229
+ protected function _getReturnUrls() {
230
+ if (null === $this->_returnUrls) {
231
+ $this->_returnUrls = array();
232
+ foreach ($this->_getStoreCollection() as $store) {
233
+ if (($this->_getConfig()->isActive($store->getId()) & Creativestyle_AmazonPayments_Model_Config::LOGIN_WITH_AMAZON_ACTIVE) && !$this->_getConfig()->isPopupAuthenticationExperience($store->getId())) {
234
+ $urlModel = Mage::getModel('core/url');
235
+ $urls = array(
236
+ $urlModel->setStore($store->getId())->getUrl('amazonpayments/advanced_login/redirect', array(
237
+ '_current' => false, '_secure' => true, '_nosid' => true, '_store' => $store->getId()
238
+ )),
239
+ $urlModel->setStore($store->getId())->getUrl('amazonpayments/advanced_login/redirect', array(
240
+ 'target' => 'checkout', '_current' => false, '_secure' => true, '_nosid' => true, '_store' => $store->getId()
241
+ ))
242
+ );
243
+ foreach ($urls as $url) {
244
+ $scheme = parse_url($url, PHP_URL_SCHEME);
245
+ if ($scheme == 'https') {
246
+ $host = parse_url($url, PHP_URL_HOST);
247
+ $origin = 'https://' . $host;
248
+ $port = parse_url($url, PHP_URL_PORT);
249
+ if ($port) {
250
+ $origin .= ':' . $port;
251
+ }
252
+ $merchantId = $this->_getMerchantId($store->getId());
253
+ if (!isset($this->_returnUrls[$merchantId])) {
254
+ $this->_returnUrls[$merchantId] = array();
255
+ }
256
+ if (array_search($url, $this->_returnUrls[$merchantId]) === false) {
257
+ $this->_returnUrls[$merchantId][] = $url;
258
+ }
259
+ }
260
+ }
261
+ }
262
+ }
263
+ }
264
+ return $this->_returnUrls;
265
+ }
266
+
267
+ protected function _getReturnUrlsHtml($htmlId) {
268
+ $placeholder = <<<EOH
269
+ <em>I couldn't find any return URL :( Please double check if following conditions set is met in any store view:
270
+ <ul>
271
+ <li><strong>Amazon Payments > Login with Amazon > Enable Login with Amazon</strong> is set to <strong>Yes</strong></li>
272
+ <li><strong>Amazon Payments > Login with Amazon > Authentication Experience</strong> is set to <strong>Auto</strong> or <strong>Redirect</strong></li>
273
+ <li><strong>General > Web > Secure > Base URL</strong> starts with <strong>https</strong> and <strong>General > Web > Secure > Use Secure URLs in Frontend</strong> is set to <strong>Yes</strong></li>
274
+ </ul>
275
+ </em>
276
+ EOH;
277
+
278
+ $html = '';
279
+ $returnUrls = $this->_getReturnUrls();
280
+ $returnUrlsCount = count($returnUrls);
281
+ foreach ($returnUrls as $merchantId => $urls) {
282
+ $html .= '<div class="section-config">';
283
+ if ($returnUrlsCount > 1) {
284
+ $html .= sprintf('<div class="entry-edit-head collapseable"><a id="%s-head" href="#" onclick="Fieldset.toggleCollapse(\'%s\'); return false;">%s</a></div>',
285
+ $htmlId . '_' . $merchantId,
286
+ $htmlId . '_' . $merchantId,
287
+ $this->helper('amazonpayments')->__('<span class="close">Click to reveal config for </span>%s', $merchantId)
288
+ );
289
+ $html .= sprintf('<input id="%s-state" name="config_state[%s]" type="hidden" value="0">',
290
+ $htmlId . '_' . $merchantId,
291
+ $htmlId . '_' . $merchantId
292
+ );
293
+ $html .= '<div class="fieldset config" id="' . $htmlId . '_' . $merchantId . '">';
294
+ } else {
295
+ $html .= '<div class="fieldset">';
296
+ }
297
+ $returnUrlsHtml = array();
298
+ foreach ($urls as $url) {
299
+ $returnUrlsHtml[] = sprintf('<a class="nobr" href="%s">%s</a>', $url, $url);
300
+ }
301
+ $html .= implode('<br/>', $returnUrlsHtml);
302
+ $html .= '</div>';
303
+ $html .= '</div>';
304
+ if ($returnUrlsCount > 1) {
305
+ $html .= '<script type="text/javascript">//<![CDATA[' . "\n";
306
+ $html .= 'Fieldset.applyCollapse(\'' . $htmlId . '_' . $merchantId . '\');' . "\n";
307
+ $html .= '//]]></script>' . "\n";
308
+ }
309
+ }
310
+ return $html ? $html : $placeholder;
311
+ }
312
+
313
+ public function getSellerCentralConfigOptions() {
314
+ if (null === $this->_configOptions) {
315
+ $ipnUrls = $this->_getIpnUrlsHtml($this->getHtmlId() . '_ipn_urls');
316
+ $javascriptOrigins = $this->_getJavascriptOriginsHtml($this->getHtmlId() . '_allowed_javascript_origins');
317
+ $returnUrls = $this->_getReturnUrlsHtml($this->getHtmlId() . '_allowed_return_urls');
318
+ $this->_configOptions = array(
319
+ new Varien_Object(array(
320
+ 'id' => 'ipn_url',
321
+ 'label' => $this->helper('amazonpayments')->__('IPN endpoint URL'),
322
+ 'value' => $ipnUrls,
323
+ 'comment' => (count($this->_getIpnUrls()) ? (count($this->_getIpnUrls()) > 1
324
+ ? $this->helper('amazonpayments')->__('Please enter those URLs in the <strong>Merchant URL</strong> field of the <a target="_blank" href="https://sellercentral-europe.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html">Integration Settings</a> in your Amazon Seller Central.')
325
+ : $this->helper('amazonpayments')->__('Please enter this URL in the <strong>Merchant URL</strong> field of the <a target="_blank" href="https://sellercentral-europe.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html">Integration Settings</a> in your Amazon Seller Central.'))
326
+ : null
327
+ ),
328
+ 'depends' => array(
329
+ 'amazonpayments_general_active' => 1,
330
+ 'amazonpayments_general_ipn_active' => 1
331
+ )
332
+ )),
333
+ new Varien_Object(array(
334
+ 'id' => 'allowed_javascript_origins',
335
+ 'label' => $this->helper('amazonpayments')->__('Allowed JavaScript Origins'),
336
+ 'value' => $javascriptOrigins,
337
+ 'comment' => (count($this->_getJavascriptOrigins()) ? (count($this->_getJavascriptOrigins()) > 1
338
+ ? $this->helper('amazonpayments')->__('Please enter those URLs in the <strong>Allowed JavaScript Origins</strong> field of the <a target="_blank" href="https://sellercentral-europe.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html">Control Panel</a> in your Amazon Seller Central.')
339
+ : $this->helper('amazonpayments')->__('Please enter this URL in the <strong>Allowed JavaScript Origins</strong> field of the <a target="_blank" href="https://sellercentral-europe.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html">Control Panel</a> in your Amazon Seller Central.'))
340
+ : null
341
+ ),
342
+ 'depends' => array(
343
+ 'amazonpayments_login_active' => 1
344
+ )
345
+ )),
346
+ new Varien_Object(array(
347
+ 'id' => 'allowed_return_urls',
348
+ 'label' => $this->helper('amazonpayments')->__('Allowed Return URLs'),
349
+ 'value' => $returnUrls,
350
+ 'comment' => (count($this->_getReturnUrls()) ? (count($this->_getReturnUrls()) > 1
351
+ ? $this->helper('amazonpayments')->__('Please enter those URLs in the <strong>Allowed Return URLs</strong> field of the <a target="_blank" href="https://sellercentral-europe.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html">Control Panel</a> in your Amazon Seller Central.')
352
+ : $this->helper('amazonpayments')->__('Please enter this URL in the <strong>Allowed Return URLs</strong> field of the <a target="_blank" href="https://sellercentral-europe.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html">Control Panel</a> in your Amazon Seller Central.'))
353
+ : null
354
+ ),
355
+ 'depends' => array(
356
+ 'amazonpayments_login_active' => 1
357
+ )
358
+ ))
359
+ );
360
+ }
361
+ return $this->_configOptions;
362
+ }
363
+
364
+ public function getDependencyJs() {
365
+ return '<script type="text/javascript">new FormElementDependenceController(' . $this->_getDependsJson() . ');</script>';
366
+ }
367
+
368
+ }
app/code/community/Creativestyle/AmazonPayments/Block/Login/Abstract.php CHANGED
@@ -10,7 +10,7 @@
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
- * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
  abstract class Creativestyle_AmazonPayments_Block_Login_Abstract extends Creativestyle_AmazonPayments_Block_Abstract {
@@ -21,7 +21,7 @@ abstract class Creativestyle_AmazonPayments_Block_Login_Abstract extends Creativ
21
  return ($this->_getConfig()->isActive() & Creativestyle_AmazonPayments_Model_Config::LOGIN_WITH_AMAZON_ACTIVE)
22
  && $this->_getConfig()->isCurrentIpAllowed()
23
  && $this->_getConfig()->isCurrentLocaleAllowed()
24
- && $this->_isConnectionSecure();
25
  }
26
 
27
  }
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
+ * @copyright Copyright (c) 2014 - 2016 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
  abstract class Creativestyle_AmazonPayments_Block_Login_Abstract extends Creativestyle_AmazonPayments_Block_Abstract {
21
  return ($this->_getConfig()->isActive() & Creativestyle_AmazonPayments_Model_Config::LOGIN_WITH_AMAZON_ACTIVE)
22
  && $this->_getConfig()->isCurrentIpAllowed()
23
  && $this->_getConfig()->isCurrentLocaleAllowed()
24
+ && ($this->_isConnectionSecure() || !$this->isPopup());
25
  }
26
 
27
  }
app/code/community/Creativestyle/AmazonPayments/Block/Pay/Abstract.php CHANGED
@@ -10,7 +10,7 @@
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
- * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
  abstract class Creativestyle_AmazonPayments_Block_Pay_Abstract extends Creativestyle_AmazonPayments_Block_Abstract {
@@ -21,7 +21,7 @@ abstract class Creativestyle_AmazonPayments_Block_Pay_Abstract extends Creatives
21
  if (($this->_getConfig()->isActive() & Creativestyle_AmazonPayments_Model_Config::PAY_WITH_AMAZON_ACTIVE)
22
  && $this->_getConfig()->isCurrentIpAllowed()
23
  && $this->_getConfig()->isCurrentLocaleAllowed()
24
- && $this->_isConnectionSecure())
25
  {
26
  if (!$this->isLoginActive() && $this->_quoteHasVirtualItems()) {
27
  return false;
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
+ * @copyright Copyright (c) 2014 - 2016 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
  abstract class Creativestyle_AmazonPayments_Block_Pay_Abstract extends Creativestyle_AmazonPayments_Block_Abstract {
21
  if (($this->_getConfig()->isActive() & Creativestyle_AmazonPayments_Model_Config::PAY_WITH_AMAZON_ACTIVE)
22
  && $this->_getConfig()->isCurrentIpAllowed()
23
  && $this->_getConfig()->isCurrentLocaleAllowed()
24
+ && ($this->_isConnectionSecure() || !$this->isPopup()))
25
  {
26
  if (!$this->isLoginActive() && $this->_quoteHasVirtualItems()) {
27
  return false;
app/code/community/Creativestyle/AmazonPayments/Helper/Data.php CHANGED
@@ -67,8 +67,6 @@ class Creativestyle_AmazonPayments_Helper_Data extends Mage_Core_Helper_Abstract
67
  }
68
 
69
  /**
70
- * @deprecated deprecated since 1.2.6
71
- *
72
  * Check if the current User Agent is specific for any mobile device
73
  *
74
  * @return bool
67
  }
68
 
69
  /**
 
 
70
  * Check if the current User Agent is specific for any mobile device
71
  *
72
  * @return bool
app/code/community/Creativestyle/AmazonPayments/Model/Checkout.php CHANGED
@@ -26,6 +26,14 @@ class Creativestyle_AmazonPayments_Model_Checkout extends Mage_Checkout_Model_Ty
26
  return array('method' => 'amazonpayments_advanced');
27
  }
28
 
 
 
 
 
 
 
 
 
29
  public function savePayment($data) {
30
  $data = $this->_getPaymentMethod();
31
  if ($this->getQuote()->isVirtual()) {
@@ -41,8 +49,8 @@ class Creativestyle_AmazonPayments_Model_Checkout extends Mage_Checkout_Model_Ty
41
 
42
  $data['checks'] = Creativestyle_AmazonPayments_Model_Payment_Abstract::CHECK_USE_FOR_COUNTRY
43
  | Creativestyle_AmazonPayments_Model_Payment_Abstract::CHECK_USE_FOR_CURRENCY
44
- | Creativestyle_AmazonPayments_Model_Payment_Abstract::CHECK_ORDER_TOTAL_MIN_MAX;
45
- // | Creativestyle_AmazonPayments_Model_Payment_Abstract::CHECK_ZERO_TOTAL
46
 
47
 
48
  $payment = $this->getQuote()->getPayment();
@@ -62,6 +70,8 @@ class Creativestyle_AmazonPayments_Model_Checkout extends Mage_Checkout_Model_Ty
62
  return array('error' => -1, 'message' => Mage::helper('checkout')->__('Invalid data.'));
63
  }
64
 
 
 
65
  unset($data['address_id']);
66
  $address = $this->getQuote()->getBillingAddress();
67
  $address->setCustomerAddressId(null);
26
  return array('method' => 'amazonpayments_advanced');
27
  }
28
 
29
+ protected function _sanitizeShippingAddress($addressData) {
30
+ $allowedCountries = explode(',', (string)Mage::getStoreConfig('general/country/allow'));
31
+ if (!(isset($addressData['country_id']) && in_array($addressData['country_id'], $allowedCountries))) {
32
+ $addressData['country_id'] = null;
33
+ }
34
+ return $addressData;
35
+ }
36
+
37
  public function savePayment($data) {
38
  $data = $this->_getPaymentMethod();
39
  if ($this->getQuote()->isVirtual()) {
49
 
50
  $data['checks'] = Creativestyle_AmazonPayments_Model_Payment_Abstract::CHECK_USE_FOR_COUNTRY
51
  | Creativestyle_AmazonPayments_Model_Payment_Abstract::CHECK_USE_FOR_CURRENCY
52
+ | Creativestyle_AmazonPayments_Model_Payment_Abstract::CHECK_ORDER_TOTAL_MIN_MAX
53
+ | Creativestyle_AmazonPayments_Model_Payment_Abstract::CHECK_ZERO_TOTAL;
54
 
55
 
56
  $payment = $this->getQuote()->getPayment();
70
  return array('error' => -1, 'message' => Mage::helper('checkout')->__('Invalid data.'));
71
  }
72
 
73
+ $data = $this->_sanitizeShippingAddress($data);
74
+
75
  unset($data['address_id']);
76
  $address = $this->getQuote()->getBillingAddress();
77
  $address->setCustomerAddressId(null);
app/code/community/Creativestyle/AmazonPayments/Model/Config.php CHANGED
@@ -10,7 +10,7 @@
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
- * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
  class Creativestyle_AmazonPayments_Model_Config {
@@ -77,7 +77,7 @@ class Creativestyle_AmazonPayments_Model_Config {
77
  'environment' => $this->isSandbox($store) ? 'sandbox' : 'live',
78
  'serviceURL' => '',
79
  'widgetURL' => '',
80
- 'caBundleFile' => '',
81
  'clientId' => '',
82
  'cnName' => 'sns.amazonaws.com'
83
  );
@@ -153,7 +153,7 @@ class Creativestyle_AmazonPayments_Model_Config {
153
  }
154
 
155
  public function getMerchantId($store = null) {
156
- return trim(Mage::getStoreConfig(self::XML_PATH_ACCOUNT_MERCHANT_ID, $store));
157
  }
158
 
159
  public function getRegion($store = null) {
@@ -176,6 +176,14 @@ class Creativestyle_AmazonPayments_Model_Config {
176
  return $this->getAuthenticationExperience($store) == Creativestyle_AmazonPayments_Model_Lookup_Authentication::POPUP_EXPERIENCE;
177
  }
178
 
 
 
 
 
 
 
 
 
179
  public function getAuthorizationMode($store = null) {
180
  return Mage::getStoreConfig(self::XML_PATH_GENERAL_AUTHORIZATION_MODE, $store);
181
  }
@@ -379,4 +387,10 @@ class Creativestyle_AmazonPayments_Model_Config {
379
  return $displayLanguage;
380
  }
381
 
 
 
 
 
 
 
382
  }
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
+ * @copyright Copyright (c) 2014 - 2016 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
  class Creativestyle_AmazonPayments_Model_Config {
77
  'environment' => $this->isSandbox($store) ? 'sandbox' : 'live',
78
  'serviceURL' => '',
79
  'widgetURL' => '',
80
+ 'caBundleFile' => $this->getCaBundleFile(),
81
  'clientId' => '',
82
  'cnName' => 'sns.amazonaws.com'
83
  );
153
  }
154
 
155
  public function getMerchantId($store = null) {
156
+ return trim(strtoupper(Mage::getStoreConfig(self::XML_PATH_ACCOUNT_MERCHANT_ID, $store)));
157
  }
158
 
159
  public function getRegion($store = null) {
176
  return $this->getAuthenticationExperience($store) == Creativestyle_AmazonPayments_Model_Lookup_Authentication::POPUP_EXPERIENCE;
177
  }
178
 
179
+ public function isAutoAuthenticationExperience($store = null) {
180
+ return $this->getAuthenticationExperience($store) == Creativestyle_AmazonPayments_Model_Lookup_Authentication::AUTO_EXPERIENCE;
181
+ }
182
+
183
+ public function isRedirectAuthenticationExperience($store = null) {
184
+ return $this->getAuthenticationExperience($store) == Creativestyle_AmazonPayments_Model_Lookup_Authentication::REDIRECT_EXPERIENCE;
185
+ }
186
+
187
  public function getAuthorizationMode($store = null) {
188
  return Mage::getStoreConfig(self::XML_PATH_GENERAL_AUTHORIZATION_MODE, $store);
189
  }
387
  return $displayLanguage;
388
  }
389
 
390
+ public function getCaBundleFile() {
391
+ $caBundlePath = $this->getGlobalDataValue('ca_bundle');
392
+ if ($caBundlePath && file_exists($caBundlePath)) return $caBundlePath;
393
+ return '';
394
+ }
395
+
396
  }
app/code/community/Creativestyle/AmazonPayments/Model/Lookup/Authentication.php CHANGED
@@ -15,12 +15,14 @@
15
  */
16
  class Creativestyle_AmazonPayments_Model_Lookup_Authentication extends Creativestyle_AmazonPayments_Model_Lookup_Abstract {
17
 
 
18
  const POPUP_EXPERIENCE = 'popup';
19
  const REDIRECT_EXPERIENCE = 'redirect';
20
 
21
  public function toOptionArray() {
22
  if (null === $this->_options) {
23
  $this->_options = array(
 
24
  array('value' => self::POPUP_EXPERIENCE, 'label' => Mage::helper('amazonpayments')->__('Pop-up')),
25
  array('value' => self::REDIRECT_EXPERIENCE, 'label' => Mage::helper('amazonpayments')->__('Redirect')),
26
  );
15
  */
16
  class Creativestyle_AmazonPayments_Model_Lookup_Authentication extends Creativestyle_AmazonPayments_Model_Lookup_Abstract {
17
 
18
+ const AUTO_EXPERIENCE = 'auto';
19
  const POPUP_EXPERIENCE = 'popup';
20
  const REDIRECT_EXPERIENCE = 'redirect';
21
 
22
  public function toOptionArray() {
23
  if (null === $this->_options) {
24
  $this->_options = array(
25
+ array('value' => self::AUTO_EXPERIENCE, 'label' => Mage::helper('amazonpayments')->__('Auto')),
26
  array('value' => self::POPUP_EXPERIENCE, 'label' => Mage::helper('amazonpayments')->__('Pop-up')),
27
  array('value' => self::REDIRECT_EXPERIENCE, 'label' => Mage::helper('amazonpayments')->__('Redirect')),
28
  );
app/code/community/Creativestyle/AmazonPayments/Model/Observer.php CHANGED
@@ -10,7 +10,7 @@
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
- * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
  class Creativestyle_AmazonPayments_Model_Observer {
@@ -176,7 +176,8 @@ class Creativestyle_AmazonPayments_Model_Observer {
176
  try {
177
  $order = Mage::registry('sales_order');
178
  // check if object instance exists and whether manual authorization is enabled
179
- if (is_object($order) && $order->getId() && $this->_getConfig()->isManualAuthorizationAllowed()) {
 
180
  $payment = $order->getPayment();
181
  if (in_array($payment->getMethod(), Mage::helper('amazonpayments')->getAvailablePaymentMethods())) {
182
  // check if payment wasn't authorized already
@@ -186,7 +187,7 @@ class Creativestyle_AmazonPayments_Model_Observer {
186
  if ($orderTransaction && !$orderTransaction->getIsClosed() && (!$authTransaction || $authTransaction->getIsClosed())) {
187
  $block = Mage::getSingleton('core/layout')->getBlock('sales_order_edit');
188
  if ($block) {
189
- $url = Mage::getModel('adminhtml/url')->getUrl('admin_amazonpayments/adminhtml_order/authorize', array('order_id' => $order->getId()));
190
  $message = Mage::helper('amazonpayments')->__('Are you sure you want to authorize payment for this order?');
191
  $block->addButton('payment_authorize', array(
192
  'label' => Mage::helper('amazonpayments')->__('Authorize payment'),
@@ -267,7 +268,7 @@ class Creativestyle_AmazonPayments_Model_Observer {
267
  try {
268
  $secureUrlsConfigNode = Mage::getConfig()->getNode('frontend/secure_url');
269
  if ($this->_getConfig()->isActive() & Creativestyle_AmazonPayments_Model_Config::LOGIN_WITH_AMAZON_ACTIVE
270
- && $this->_getConfig()->isPopupAuthenticationExperience())
271
  {
272
  $secureUrlsConfigNode->addChild('amazonpayments_cart', '/checkout/cart');
273
  }
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
+ * @copyright Copyright (c) 2014 - 2016 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
  class Creativestyle_AmazonPayments_Model_Observer {
176
  try {
177
  $order = Mage::registry('sales_order');
178
  // check if object instance exists and whether manual authorization is enabled
179
+ if (is_object($order) && $order->getId() && $this->_getConfig()->isManualAuthorizationAllowed()
180
+ && Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/amazonpayments_authorize')) {
181
  $payment = $order->getPayment();
182
  if (in_array($payment->getMethod(), Mage::helper('amazonpayments')->getAvailablePaymentMethods())) {
183
  // check if payment wasn't authorized already
187
  if ($orderTransaction && !$orderTransaction->getIsClosed() && (!$authTransaction || $authTransaction->getIsClosed())) {
188
  $block = Mage::getSingleton('core/layout')->getBlock('sales_order_edit');
189
  if ($block) {
190
+ $url = Mage::getModel('adminhtml/url')->getUrl('adminhtml/amazonpayments_order/authorize', array('order_id' => $order->getId()));
191
  $message = Mage::helper('amazonpayments')->__('Are you sure you want to authorize payment for this order?');
192
  $block->addButton('payment_authorize', array(
193
  'label' => Mage::helper('amazonpayments')->__('Authorize payment'),
268
  try {
269
  $secureUrlsConfigNode = Mage::getConfig()->getNode('frontend/secure_url');
270
  if ($this->_getConfig()->isActive() & Creativestyle_AmazonPayments_Model_Config::LOGIN_WITH_AMAZON_ACTIVE
271
+ && !$this->_getConfig()->isRedirectAuthenticationExperience())
272
  {
273
  $secureUrlsConfigNode->addChild('amazonpayments_cart', '/checkout/cart');
274
  }
app/code/community/Creativestyle/AmazonPayments/Model/Payment/Abstract.php CHANGED
@@ -586,6 +586,9 @@ abstract class Creativestyle_AmazonPayments_Model_Payment_Abstract extends Mage_
586
  if ($quote && !$quote->validateMinimumAmount()) {
587
  $isActive = false;
588
  }
 
 
 
589
  $checkResult->isAvailable = $isActive;
590
  $checkResult->isDeniedInConfig = !$isActive;
591
  Mage::dispatchEvent('payment_method_is_active', array(
586
  if ($quote && !$quote->validateMinimumAmount()) {
587
  $isActive = false;
588
  }
589
+ if (Mage::app()->getStore()->roundPrice($quote->getGrandTotal()) == 0) {
590
+ $isActive = false;
591
+ }
592
  $checkResult->isAvailable = $isActive;
593
  $checkResult->isDeniedInConfig = !$isActive;
594
  Mage::dispatchEvent('payment_method_is_active', array(
app/code/community/Creativestyle/AmazonPayments/Model/Processor/Order.php CHANGED
@@ -401,21 +401,23 @@ class Creativestyle_AmazonPayments_Model_Processor_Order {
401
  * @return Creativestyle_AmazonPayments_Model_Processor_Order
402
  */
403
  protected function _updateOrderData($transactionAdapter, &$stateObject) {
404
- $orderData = $this->_mapTransactionDetails($transactionAdapter->getTransactionDetails());
405
- if ($orderData->hasCustomerEmail() && $this->getOrder()->getCustomerEmail() != $orderData->getCustomerEmail()) {
406
- $this->getOrder()->setCustomerEmail($orderData->getCustomerEmail());
407
- }
408
- if ($orderData->hasCustomerFirstname() && $this->getOrder()->getCustomerFirstname() != $orderData->getCustomerFirstname()) {
409
- $this->getOrder()->setCustomerFirstname($orderData->getCustomerFirstname());
410
- }
411
- if ($orderData->hasCustomerLastname() && $this->getOrder()->getCustomerLastname() != $orderData->getCustomerLastname()) {
412
- $this->getOrder()->setCustomerLastname($orderData->getCustomerLastname());
413
- }
414
- if ($orderData->hasBillingAddress()) {
415
- $this->_updateAddress($this->getOrder()->getBillingAddress(), $orderData->getBillingAddress());
416
- }
417
- if ($orderData->hasShippingAddress()) {
418
- $this->_updateAddress($this->getOrder()->getShippingAddress(), $orderData->getShippingAddress());
 
 
419
  }
420
 
421
  $this->_mapTransactionStatus($transactionAdapter, $stateObject);
401
  * @return Creativestyle_AmazonPayments_Model_Processor_Order
402
  */
403
  protected function _updateOrderData($transactionAdapter, &$stateObject) {
404
+ if ($transactionAdapter->shouldUpdateOrderData()) {
405
+ $orderData = $this->_mapTransactionDetails($transactionAdapter->getTransactionDetails());
406
+ if ($orderData->hasCustomerEmail() && $this->getOrder()->getCustomerEmail() != $orderData->getCustomerEmail()) {
407
+ $this->getOrder()->setCustomerEmail($orderData->getCustomerEmail());
408
+ }
409
+ if ($orderData->hasCustomerFirstname() && $this->getOrder()->getCustomerFirstname() != $orderData->getCustomerFirstname()) {
410
+ $this->getOrder()->setCustomerFirstname($orderData->getCustomerFirstname());
411
+ }
412
+ if ($orderData->hasCustomerLastname() && $this->getOrder()->getCustomerLastname() != $orderData->getCustomerLastname()) {
413
+ $this->getOrder()->setCustomerLastname($orderData->getCustomerLastname());
414
+ }
415
+ if ($orderData->hasBillingAddress()) {
416
+ $this->_updateAddress($this->getOrder()->getBillingAddress(), $orderData->getBillingAddress());
417
+ }
418
+ if ($orderData->hasShippingAddress()) {
419
+ $this->_updateAddress($this->getOrder()->getShippingAddress(), $orderData->getShippingAddress());
420
+ }
421
  }
422
 
423
  $this->_mapTransactionStatus($transactionAdapter, $stateObject);
app/code/community/Creativestyle/AmazonPayments/Model/Processor/TransactionAdapter.php CHANGED
@@ -461,4 +461,25 @@ class Creativestyle_AmazonPayments_Model_Processor_TransactionAdapter {
461
  throw new Creativestyle_AmazonPayments_Exception('Invalid transaction status');
462
  }
463
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
464
  }
461
  throw new Creativestyle_AmazonPayments_Exception('Invalid transaction status');
462
  }
463
 
464
+ public function shouldUpdateOrderData() {
465
+ $transactionStatus = $this->getStatusChange();
466
+ if (is_array($transactionStatus)) {
467
+ $state = array_key_exists(self::TRANSACTION_STATE_KEY, $transactionStatus) ? $transactionStatus[self::TRANSACTION_STATE_KEY] : null;
468
+ switch ($this->getTransactionType()) {
469
+ case Mage_Sales_Model_Order_Payment_Transaction::TYPE_ORDER:
470
+ switch ($state) {
471
+ case self::TRANSACTION_STATE_CLOSED:
472
+ return false;
473
+ default:
474
+ return true;
475
+ }
476
+ return true;
477
+ case Mage_Sales_Model_Order_Payment_Transaction::TYPE_AUTH:
478
+ return true;
479
+ default:
480
+ return false;
481
+ }
482
+ }
483
+ return false;
484
+ }
485
  }
app/code/community/Creativestyle/AmazonPayments/Model/Service/Login.php CHANGED
@@ -49,6 +49,11 @@ class Creativestyle_AmazonPayments_Model_Service_Login {
49
  }
50
 
51
  protected function _getCustomer() {
 
 
 
 
 
52
  if (null === $this->_customer) {
53
  $customer = Mage::getModel('customer/customer');
54
  $collection = $customer->getCollection()
49
  }
50
 
51
  protected function _getCustomer() {
52
+ $amazonUserIdAttr = Mage::getResourceModel('catalog/eav_attribute')->loadByCode('customer', 'amazon_user_id');
53
+ if (!$amazonUserIdAttr->getId()) {
54
+ throw new Creativestyle_AmazonPayments_Exception('[LWA-service] amazon_user_id customer attribute does not exist');
55
+ }
56
+
57
  if (null === $this->_customer) {
58
  $customer = Mage::getModel('customer/customer');
59
  $collection = $customer->getCollection()
app/code/community/Creativestyle/AmazonPayments/controllers/Adminhtml/{DebugController.php → Amazonpayments/DebugController.php} RENAMED
@@ -10,22 +10,23 @@
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
- * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
- class Creativestyle_AmazonPayments_Adminhtml_DebugController extends Mage_Adminhtml_Controller_Action {
17
 
18
- protected function _initAction() {
19
- $this->loadLayout()
20
- ->_setActiveMenu('creativestyle/amazonpayments/debug')
21
- ->_addBreadcrumb($this->__('Pay with Amazon'), $this->__('Pay with Amazon'))
22
- ->_addBreadcrumb($this->__('Debug data'), $this->__('Debug data'));
 
23
  return $this;
24
  }
25
 
26
  public function indexAction() {
27
- $this->_title($this->__('Pay with Amazon'))->_title($this->__('Debug data'));
28
- $this->_initAction()
29
  ->renderLayout();
30
  }
31
 
@@ -39,4 +40,8 @@ class Creativestyle_AmazonPayments_Adminhtml_DebugController extends Mage_Adminh
39
  Mage::app()->getResponse()->setBody($debugData);
40
  }
41
 
 
 
 
 
42
  }
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
+ * @copyright Copyright (c) 2015 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
+ class Creativestyle_AmazonPayments_Adminhtml_Amazonpayments_DebugController extends Mage_Adminhtml_Controller_Action {
17
 
18
+ protected function _initAction($actionMenuItem, $actionBreadcrumbs) {
19
+ $this->_setActiveMenu('creativestyle/amazonpayments/' . $actionMenuItem);
20
+ foreach ($actionBreadcrumbs as $breadcrumb) {
21
+ $this->_addBreadcrumb($this->__($breadcrumb), $this->__($breadcrumb))
22
+ ->_title($breadcrumb);
23
+ }
24
  return $this;
25
  }
26
 
27
  public function indexAction() {
28
+ $this->loadLayout()
29
+ ->_initAction('debug', array('Login and Pay with Amazon', 'Debug data'))
30
  ->renderLayout();
31
  }
32
 
40
  Mage::app()->getResponse()->setBody($debugData);
41
  }
42
 
43
+ protected function _isAllowed() {
44
+ return Mage::getSingleton('admin/session')->isAllowed('admin/creativestyle/amazonpayments/debug');
45
+ }
46
+
47
  }
app/code/community/Creativestyle/AmazonPayments/controllers/Adminhtml/{Log → Amazonpayments/Log}/ApiController.php RENAMED
@@ -10,10 +10,10 @@
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
- * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
- class Creativestyle_AmazonPayments_Adminhtml_Log_ApiController extends Mage_Adminhtml_Controller_Action {
17
 
18
  protected function _getConfig() {
19
  return Mage::getSingleton('amazonpayments/config');
@@ -66,4 +66,8 @@ class Creativestyle_AmazonPayments_Adminhtml_Log_ApiController extends Mage_Admi
66
  }
67
  }
68
 
 
 
 
 
69
  }
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
+ * @copyright Copyright (c) 2014 - 2015 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
+ class Creativestyle_AmazonPayments_Adminhtml_Amazonpayments_Log_ApiController extends Mage_Adminhtml_Controller_Action {
17
 
18
  protected function _getConfig() {
19
  return Mage::getSingleton('amazonpayments/config');
66
  }
67
  }
68
 
69
+ protected function _isAllowed() {
70
+ return Mage::getSingleton('admin/session')->isAllowed('admin/creativestyle/amazonpayments/log/api');
71
+ }
72
+
73
  }
app/code/community/Creativestyle/AmazonPayments/controllers/Adminhtml/{Log → Amazonpayments/Log}/ExceptionController.php RENAMED
@@ -10,10 +10,10 @@
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
- * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
- class Creativestyle_AmazonPayments_Adminhtml_Log_ExceptionController extends Mage_Adminhtml_Controller_Action {
17
 
18
  protected function _getConfig() {
19
  return Mage::getSingleton('amazonpayments/config');
@@ -66,4 +66,8 @@ class Creativestyle_AmazonPayments_Adminhtml_Log_ExceptionController extends Mag
66
  }
67
  }
68
 
 
 
 
 
69
  }
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
+ * @copyright Copyright (c) 2014 - 2015 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
+ class Creativestyle_AmazonPayments_Adminhtml_Amazonpayments_Log_ExceptionController extends Mage_Adminhtml_Controller_Action {
17
 
18
  protected function _getConfig() {
19
  return Mage::getSingleton('amazonpayments/config');
66
  }
67
  }
68
 
69
+ protected function _isAllowed() {
70
+ return Mage::getSingleton('admin/session')->isAllowed('admin/creativestyle/amazonpayments/log/exception');
71
+ }
72
+
73
  }
app/code/community/Creativestyle/AmazonPayments/controllers/Adminhtml/{Log → Amazonpayments/Log}/IpnController.php RENAMED
@@ -10,10 +10,10 @@
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
- * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
- class Creativestyle_AmazonPayments_Adminhtml_Log_IpnController extends Mage_Adminhtml_Controller_Action {
17
 
18
  protected function _getConfig() {
19
  return Mage::getSingleton('amazonpayments/config');
@@ -66,4 +66,8 @@ class Creativestyle_AmazonPayments_Adminhtml_Log_IpnController extends Mage_Admi
66
  }
67
  }
68
 
 
 
 
 
69
  }
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
+ * @copyright Copyright (c) 2014 - 2015 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
+ class Creativestyle_AmazonPayments_Adminhtml_Amazonpayments_Log_IpnController extends Mage_Adminhtml_Controller_Action {
17
 
18
  protected function _getConfig() {
19
  return Mage::getSingleton('amazonpayments/config');
66
  }
67
  }
68
 
69
+ protected function _isAllowed() {
70
+ return Mage::getSingleton('admin/session')->isAllowed('admin/creativestyle/amazonpayments/log/ipn');
71
+ }
72
+
73
  }
app/code/community/Creativestyle/AmazonPayments/controllers/Adminhtml/{OrderController.php → Amazonpayments/OrderController.php} RENAMED
@@ -10,24 +10,10 @@
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
- * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
- class Creativestyle_AmazonPayments_Adminhtml_OrderController extends Mage_Adminhtml_Controller_Action {
17
-
18
- protected function _initAction() {
19
- $this->loadLayout()
20
- ->_setActiveMenu('amazonpayments/orders')
21
- ->_addBreadcrumb($this->__('Pay with Amazon'), $this->__('Pay with Amazon'))
22
- ->_addBreadcrumb($this->__('Orders'), $this->__('Orders'));
23
- return $this;
24
- }
25
-
26
- public function indexAction() {
27
- $this->_title($this->__('Pay with Amazon'))->_title($this->__('Orders'));
28
- $this->_initAction()
29
- ->renderLayout();
30
- }
31
 
32
  public function authorizeAction() {
33
  $orderId = $this->getRequest()->getParam('order_id', null);
@@ -53,7 +39,10 @@ class Creativestyle_AmazonPayments_Adminhtml_OrderController extends Mage_Adminh
53
  $this->_redirect('adminhtml/sales_order/view', array('order_id' => $orderId));
54
  return;
55
  }
56
- $this->_redirect('*/*/index');
57
  }
58
 
 
 
 
59
  }
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
+ * @copyright Copyright (c) 2014 - 2015 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
+ class Creativestyle_AmazonPayments_Adminhtml_Amazonpayments_OrderController extends Mage_Adminhtml_Controller_Action {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
  public function authorizeAction() {
19
  $orderId = $this->getRequest()->getParam('order_id', null);
39
  $this->_redirect('adminhtml/sales_order/view', array('order_id' => $orderId));
40
  return;
41
  }
42
+ $this->_redirect('adminhtml/sales_order');
43
  }
44
 
45
+ protected function _isAllowed() {
46
+ return Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/amazonpayments_authorize');
47
+ }
48
  }
app/code/community/Creativestyle/AmazonPayments/controllers/Adminhtml/{SystemController.php → Amazonpayments/SystemController.php} RENAMED
@@ -10,10 +10,10 @@
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
- * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
- class Creativestyle_AmazonPayments_Adminhtml_SystemController extends Mage_Adminhtml_Controller_Action {
17
 
18
  protected function _checkCredentials($merchantId, $accessKey, $secretKey, $region, $sandbox) {
19
  if (!($merchantId && $accessKey && $secretKey)) {
@@ -85,4 +85,8 @@ class Creativestyle_AmazonPayments_Adminhtml_SystemController extends Mage_Admin
85
  $this->getResponse()->setBody($response);
86
  }
87
 
 
 
 
 
88
  }
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
+ * @copyright Copyright (c) 2015 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
+ class Creativestyle_AmazonPayments_Adminhtml_Amazonpayments_SystemController extends Mage_Adminhtml_Controller_Action {
17
 
18
  protected function _checkCredentials($merchantId, $accessKey, $secretKey, $region, $sandbox) {
19
  if (!($merchantId && $accessKey && $secretKey)) {
85
  $this->getResponse()->setBody($response);
86
  }
87
 
88
+ protected function _isAllowed() {
89
+ return Mage::getSingleton('admin/session')->isAllowed('admin/system/config/amazonpayments');
90
+ }
91
+
92
  }
app/code/community/Creativestyle/AmazonPayments/controllers/Adminhtml/DocumentationController.php DELETED
@@ -1,31 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * This file is part of the official Amazon Payments Advanced extension
5
- * for Magento (c) creativestyle GmbH <amazon@creativestyle.de>
6
- * All rights reserved
7
- *
8
- * Reuse or modification of this source code is not allowed
9
- * without written permission from creativestyle GmbH
10
- *
11
- * @category Creativestyle
12
- * @package Creativestyle_AmazonPayments
13
- * @copyright Copyright (c) 2014 creativestyle GmbH
14
- * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
- */
16
- class Creativestyle_AmazonPayments_Adminhtml_DocumentationController extends Mage_Adminhtml_Controller_Action {
17
-
18
- protected function _initAction() {
19
- $this->loadLayout()
20
- ->_setActiveMenu('amazonpayments/documentation')
21
- ->_addBreadcrumb($this->__('Pay with Amazon'), $this->__('Pay with Amazon'))
22
- ->_addBreadcrumb($this->__('Documentation'), $this->__('Documentation'));
23
- return $this;
24
- }
25
-
26
- public function indexAction() {
27
- $this->_title($this->__('Pay with Amazon'))->_title($this->__('Documentation'));
28
- $this->_initAction()->renderLayout();
29
- }
30
-
31
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Creativestyle/AmazonPayments/etc/adminhtml.xml CHANGED
@@ -10,7 +10,7 @@
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
- * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
  -->
@@ -24,22 +24,10 @@
24
  <title>Login and Pay with Amazon</title>
25
  <sort_order>1</sort_order>
26
  <children>
27
- <!--
28
- <orders translate="title" module="adminhtml">
29
- <title>Pay with Amazon orders</title>
30
- <action>amazonpayments/adminhtml_order</action>
31
- <sort_order>10</sort_order>
32
- </orders>
33
- <documentation translate="title">
34
- <title>Documentation</title>
35
- <sort_order>200</sort_order>
36
- <action>admin_amazonpayments/adminhtml_documentation</action>
37
- </documentation>
38
- -->
39
  <debug translate="title">
40
  <title>Debug data</title>
41
  <sort_order>800</sort_order>
42
- <action>admin_amazonpayments/adminhtml_debug</action>
43
  </debug>
44
  <log translate="title">
45
  <title>Log preview</title>
@@ -48,17 +36,17 @@
48
  <exception translate="title">
49
  <title>Exceptions</title>
50
  <sort_order>10</sort_order>
51
- <action>admin_amazonpayments/adminhtml_log_exception</action>
52
  </exception>
53
  <api translate="title">
54
  <title>API Calls</title>
55
  <sort_order>100</sort_order>
56
- <action>admin_amazonpayments/adminhtml_log_api</action>
57
  </api>
58
  <ipn translate="title">
59
  <title>IPN Notifications</title>
60
  <sort_order>200</sort_order>
61
- <action>admin_amazonpayments/adminhtml_log_ipn</action>
62
  </ipn>
63
  </children>
64
  </log>
@@ -81,15 +69,11 @@
81
  <admin>
82
  <children>
83
  <creativestyle>
 
84
  <children>
85
  <amazonpayments translate="title" module="amazonpayments">
86
  <title>Login and Pay with Amazon</title>
87
  <children>
88
- <!--
89
- <orders translate="title">
90
- <title>Orders</title>
91
- </orders>
92
- -->
93
  <debug translate="title">
94
  <title>Debug data</title>
95
  </debug>
@@ -111,6 +95,21 @@
111
  </amazonpayments>
112
  </children>
113
  </creativestyle>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  <system>
115
  <children>
116
  <config>
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
+ * @copyright Copyright (c) 2014 - 2015 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
  -->
24
  <title>Login and Pay with Amazon</title>
25
  <sort_order>1</sort_order>
26
  <children>
 
 
 
 
 
 
 
 
 
 
 
 
27
  <debug translate="title">
28
  <title>Debug data</title>
29
  <sort_order>800</sort_order>
30
+ <action>adminhtml/amazonpayments_debug</action>
31
  </debug>
32
  <log translate="title">
33
  <title>Log preview</title>
36
  <exception translate="title">
37
  <title>Exceptions</title>
38
  <sort_order>10</sort_order>
39
+ <action>adminhtml/amazonpayments_log_exception</action>
40
  </exception>
41
  <api translate="title">
42
  <title>API Calls</title>
43
  <sort_order>100</sort_order>
44
+ <action>adminhtml/amazonpayments_log_api</action>
45
  </api>
46
  <ipn translate="title">
47
  <title>IPN Notifications</title>
48
  <sort_order>200</sort_order>
49
+ <action>adminhtml/amazonpayments_log_ipn</action>
50
  </ipn>
51
  </children>
52
  </log>
69
  <admin>
70
  <children>
71
  <creativestyle>
72
+ <title>creativestyle Extensions</title>
73
  <children>
74
  <amazonpayments translate="title" module="amazonpayments">
75
  <title>Login and Pay with Amazon</title>
76
  <children>
 
 
 
 
 
77
  <debug translate="title">
78
  <title>Debug data</title>
79
  </debug>
95
  </amazonpayments>
96
  </children>
97
  </creativestyle>
98
+ <sales>
99
+ <children>
100
+ <order>
101
+ <children>
102
+ <actions>
103
+ <children>
104
+ <amazonpayments_authorize translate="title" module="amazonpayments">
105
+ <title>Authorize Amazon Payments</title>
106
+ </amazonpayments_authorize>
107
+ </children>
108
+ </actions>
109
+ </children>
110
+ </order>
111
+ </children>
112
+ </sales>
113
  <system>
114
  <children>
115
  <config>
app/code/community/Creativestyle/AmazonPayments/etc/config.xml CHANGED
@@ -10,14 +10,14 @@
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
- * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
  -->
17
  <config>
18
  <modules>
19
  <Creativestyle_AmazonPayments>
20
- <version>1.7.4</version>
21
  </Creativestyle_AmazonPayments>
22
  </modules>
23
  <global>
@@ -363,13 +363,13 @@
363
  </frontend>
364
  <admin>
365
  <routers>
366
- <admin_amazonpayments>
367
- <use>admin</use>
368
  <args>
369
- <module>Creativestyle_AmazonPayments</module>
370
- <frontName>admin_amazonpayments</frontName>
 
371
  </args>
372
- </admin_amazonpayments>
373
  </routers>
374
  </admin>
375
  <adminhtml>
@@ -436,7 +436,7 @@
436
  </general>
437
  <login>
438
  <active>0</active>
439
- <authentication>popup</authentication>
440
  </login>
441
  <email>
442
  <order_confirmation>1</order_confirmation>
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
+ * @copyright Copyright (c) 2014 - 2015 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
  -->
17
  <config>
18
  <modules>
19
  <Creativestyle_AmazonPayments>
20
+ <version>1.7.6</version>
21
  </Creativestyle_AmazonPayments>
22
  </modules>
23
  <global>
363
  </frontend>
364
  <admin>
365
  <routers>
366
+ <adminhtml>
 
367
  <args>
368
+ <modules>
369
+ <amazonpayments after="Mage_Adminhtml">Creativestyle_AmazonPayments_Adminhtml</amazonpayments>
370
+ </modules>
371
  </args>
372
+ </adminhtml>
373
  </routers>
374
  </admin>
375
  <adminhtml>
436
  </general>
437
  <login>
438
  <active>0</active>
439
+ <authentication>auto</authentication>
440
  </login>
441
  <email>
442
  <order_confirmation>1</order_confirmation>
app/code/community/Creativestyle/AmazonPayments/etc/system.xml CHANGED
@@ -164,19 +164,6 @@
164
  <show_in_store>0</show_in_store>
165
  <depends><active>1</active></depends>
166
  </ipn_active>
167
- <ipn_url>
168
- <label>IPN endpoint URL</label>
169
- <comment><![CDATA[Please enter this URL in the <strong>Merchant URL</strong> field of the <a target="_blank" href="https://sellercentral-europe.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html">Integration Settings</a> in your Amazon Seller Central.]]></comment>
170
- <frontend_model>amazonpayments/adminhtml_ipnUrl</frontend_model>
171
- <sort_order>60</sort_order>
172
- <show_in_default>1</show_in_default>
173
- <show_in_website>1</show_in_website>
174
- <show_in_store>1</show_in_store>
175
- <depends>
176
- <active>1</active>
177
- <ipn_active>1</ipn_active>
178
- </depends>
179
- </ipn_url>
180
  <polling_frequency>
181
  <label>Data polling frequency</label>
182
  <frontend_type>select</frontend_type>
164
  <show_in_store>0</show_in_store>
165
  <depends><active>1</active></depends>
166
  </ipn_active>
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  <polling_frequency>
168
  <label>Data polling frequency</label>
169
  <frontend_type>select</frontend_type>
app/code/community/Creativestyle/AmazonPayments/sql/amazonpayments_setup/mysql4-upgrade-1.7.4-1.7.6.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * This file is part of the official Amazon Payments Advanced extension
5
+ * for Magento (c) creativestyle GmbH <amazon@creativestyle.de>
6
+ * All rights reserved
7
+ *
8
+ * Reuse or modification of this source code is not allowed
9
+ * without written permission from creativestyle GmbH
10
+ *
11
+ * @category Creativestyle
12
+ * @package Creativestyle_AmazonPayments
13
+ * @copyright Copyright (c) 2016 creativestyle GmbH
14
+ * @author Marek Zabrowarny / creativestyle GmbH
15
+ */
16
+
17
+ $installer = $this;
18
+ $installer->startSetup();
19
+
20
+ $amazonUserIdAttr = Mage::getResourceModel('catalog/eav_attribute')->loadByCode('customer', 'amazon_user_id');
21
+
22
+ if (!$amazonUserIdAttr->getId()) {
23
+ $installer->addAttribute('customer', 'amazon_user_id', array(
24
+ 'type' => 'varchar',
25
+ 'label' => 'Amazon UID',
26
+ 'visible' => false,
27
+ 'required' => false,
28
+ 'unique' => true
29
+ ));
30
+ }
31
+
32
+ $installer->endSetup();
app/design/adminhtml/default/default/layout/amazonpayments.xml CHANGED
@@ -10,7 +10,7 @@
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
- * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
  -->
@@ -23,58 +23,48 @@
23
  <block type="core/template" template="creativestyle/amazonpayments/init.phtml" />
24
  </reference>
25
  </default>
26
- <admin_amazonpayments_adminhtml_documentation_index>
27
- <reference name="content">
28
- <block type="core/template" name="amazonpayments_documentation" template="creativestyle/amazonpayments/advanced/documentation.phtml"/>
29
- </reference>
30
- </admin_amazonpayments_adminhtml_documentation_index>
31
- <admin_amazonpayments_adminhtml_order_index>
32
- <reference name="content">
33
- <block type="amazonpayments/adminhtml_sales_order" name="sales_order.grid.container"></block>
34
- </reference>
35
- </admin_amazonpayments_adminhtml_order_index>
36
- <admin_amazonpayments_adminhtml_debug_index>
37
  <reference name="content">
38
  <block type="amazonpayments/adminhtml_debug" name="amazonpayments_debug_data" />
39
  </reference>
40
- </admin_amazonpayments_adminhtml_debug_index>
41
- <admin_amazonpayments_adminhtml_log_api_index>
42
  <reference name="content">
43
  <block type="amazonpayments/adminhtml_log_api" name="amazonpayments_log_api"/>
44
  </reference>
45
- </admin_amazonpayments_adminhtml_log_api_index>
46
- <admin_amazonpayments_adminhtml_log_exception_index>
47
  <reference name="content">
48
  <block type="amazonpayments/adminhtml_log_exception" name="amazonpayments_log_exception"/>
49
  </reference>
50
- </admin_amazonpayments_adminhtml_log_exception_index>
51
- <admin_amazonpayments_adminhtml_log_ipn_index>
52
  <reference name="content">
53
  <block type="amazonpayments/adminhtml_log_ipn" name="amazonpayments_log_ipn"/>
54
  </reference>
55
- </admin_amazonpayments_adminhtml_log_ipn_index>
56
- <admin_amazonpayments_adminhtml_log_api_view>
57
  <reference name="head">
58
  <action method="addCss"><stylesheet>creativestyle/css/amazonpayments-highlight.css</stylesheet></action>
59
  </reference>
60
  <reference name="before_body_end">
61
  <block type="core/template" name="amazonpayments_log_api.js" template="creativestyle/amazonpayments/advanced/log/js.phtml"/>
62
  </reference>
63
- </admin_amazonpayments_adminhtml_log_api_view>
64
- <admin_amazonpayments_adminhtml_log_exception_view>
65
  <reference name="head">
66
  <action method="addCss"><stylesheet>creativestyle/css/amazonpayments-highlight.css</stylesheet></action>
67
  </reference>
68
  <reference name="before_body_end">
69
  <block type="core/template" name="amazonpayments_log_api.js" template="creativestyle/amazonpayments/advanced/log/js.phtml"/>
70
  </reference>
71
- </admin_amazonpayments_adminhtml_log_exception_view>
72
- <admin_amazonpayments_adminhtml_log_ipn_view>
73
  <reference name="head">
74
  <action method="addCss"><stylesheet>creativestyle/css/amazonpayments-highlight.css</stylesheet></action>
75
  </reference>
76
  <reference name="before_body_end">
77
  <block type="core/template" name="amazonpayments_log_api.js" template="creativestyle/amazonpayments/advanced/log/js.phtml"/>
78
  </reference>
79
- </admin_amazonpayments_adminhtml_log_ipn_view>
80
  </layout>
10
  *
11
  * @category Creativestyle
12
  * @package Creativestyle_AmazonPayments
13
+ * @copyright Copyright (c) 2014 - 2015 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
  -->
23
  <block type="core/template" template="creativestyle/amazonpayments/init.phtml" />
24
  </reference>
25
  </default>
26
+ <adminhtml_amazonpayments_debug_index>
 
 
 
 
 
 
 
 
 
 
27
  <reference name="content">
28
  <block type="amazonpayments/adminhtml_debug" name="amazonpayments_debug_data" />
29
  </reference>
30
+ </adminhtml_amazonpayments_debug_index>
31
+ <adminhtml_amazonpayments_log_api_index>
32
  <reference name="content">
33
  <block type="amazonpayments/adminhtml_log_api" name="amazonpayments_log_api"/>
34
  </reference>
35
+ </adminhtml_amazonpayments_log_api_index>
36
+ <adminhtml_amazonpayments_log_exception_index>
37
  <reference name="content">
38
  <block type="amazonpayments/adminhtml_log_exception" name="amazonpayments_log_exception"/>
39
  </reference>
40
+ </adminhtml_amazonpayments_log_exception_index>
41
+ <adminhtml_amazonpayments_log_ipn_index>
42
  <reference name="content">
43
  <block type="amazonpayments/adminhtml_log_ipn" name="amazonpayments_log_ipn"/>
44
  </reference>
45
+ </adminhtml_amazonpayments_log_ipn_index>
46
+ <adminhtml_amazonpayments_log_api_view>
47
  <reference name="head">
48
  <action method="addCss"><stylesheet>creativestyle/css/amazonpayments-highlight.css</stylesheet></action>
49
  </reference>
50
  <reference name="before_body_end">
51
  <block type="core/template" name="amazonpayments_log_api.js" template="creativestyle/amazonpayments/advanced/log/js.phtml"/>
52
  </reference>
53
+ </adminhtml_amazonpayments_log_api_view>
54
+ <adminhtml_amazonpayments_log_exception_view>
55
  <reference name="head">
56
  <action method="addCss"><stylesheet>creativestyle/css/amazonpayments-highlight.css</stylesheet></action>
57
  </reference>
58
  <reference name="before_body_end">
59
  <block type="core/template" name="amazonpayments_log_api.js" template="creativestyle/amazonpayments/advanced/log/js.phtml"/>
60
  </reference>
61
+ </adminhtml_amazonpayments_log_exception_view>
62
+ <adminhtml_amazonpayments_log_ipn_view>
63
  <reference name="head">
64
  <action method="addCss"><stylesheet>creativestyle/css/amazonpayments-highlight.css</stylesheet></action>
65
  </reference>
66
  <reference name="before_body_end">
67
  <block type="core/template" name="amazonpayments_log_api.js" template="creativestyle/amazonpayments/advanced/log/js.phtml"/>
68
  </reference>
69
+ </adminhtml_amazonpayments_log_ipn_view>
70
  </layout>
app/design/adminhtml/default/default/template/creativestyle/amazonpayments/advanced/log/api/view.phtml CHANGED
@@ -31,7 +31,7 @@
31
  <tr>
32
  <td class="label"><label><?php echo $this->__('Error message'); ?></label></td>
33
  <td class="value"><?php echo $this->htmlEscape($this->getResponseError()); ?></td>
34
- </tr>
35
  <?php endif; ?>
36
  </tbody>
37
  </table>
31
  <tr>
32
  <td class="label"><label><?php echo $this->__('Error message'); ?></label></td>
33
  <td class="value"><?php echo $this->htmlEscape($this->getResponseError()); ?></td>
34
+ </tr>
35
  <?php endif; ?>
36
  </tbody>
37
  </table>
app/design/adminhtml/default/default/template/creativestyle/amazonpayments/info.phtml CHANGED
@@ -13,17 +13,18 @@
13
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
14
  */
15
  ?>
16
- <div class="creativestyle-info">
17
- <a class="creativestyle-logo" href="http://www.creativestyle.de" target="_blank">
18
- <img src="<?php echo $this->getSkinUrl('creativestyle/images/amazon-payments-advanced-creativestyle-logo.png'); ?>" alt="creativestyle" />
19
- </a>
20
- <h3><?php echo $this->__('Login and Pay with Amazon'); ?><small> (v. <?php echo $this->getExtensionVersion(); ?>)</small></h3>
21
- <p style="clear:both;"><?php echo $this->__('This extension integrates easily your Magento shop with Pay with Amazon service.'); ?></p>
22
- <p>--------------------------------------------------------<br />
23
- <?php echo $this->helper('amazonpayments')->__(
24
- 'Visit <a href="%s" target="_blank">%s</a> to get more information.',
25
- $this->helper('amazonpayments')->__('http://www.creativestyle.net/services/magento.html'),
26
- $this->helper('amazonpayments')->__('http://www.creativestyle.net/services/magento.html'));
27
- ?>
28
- </p>
 
29
  </div>
13
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
14
  */
15
  ?>
16
+ <div class="creativestyle-info section-config">
17
+ <div class="section-config">
18
+ <div class="entry-edit-head a-right">
19
+ <a style="background:0;" href="https://sellercentral-europe.amazon.com" target="_blank"><?php echo $this->helper('amazonpayments')->__('Amazon Seller Central'); ?></a> |
20
+ <a style="background:0;" href="http://amazon.creativestyle.de" target="_blank"><?php echo $this->helper('amazonpayments')->__('Extension documentation'); ?></a> |
21
+ <a style="background:0;" href="<?php echo $this->helper('amazonpayments')->__('http://www.creativestyle.net/services/magento.html'); ?>" target="_blank"><?php echo $this->helper('amazonpayments')->__('More about <em>creativestyle</em>'); ?></a>
22
+ </div>
23
+ <div class="fieldset config">
24
+ <img class="creativestyle-logo" src="<?php echo $this->getSkinUrl('creativestyle/images/amazon-payments-advanced-creativestyle-logo.png'); ?>" alt="Amazon Payments" />
25
+ <h3><?php echo $this->__('Login and Pay with Amazon'); ?><small> (v. <?php echo $this->getExtensionVersion(); ?>)</small></h3>
26
+ <p style="clear:both;"><?php echo $this->__('This extension integrates easily your Magento shop with Pay with Amazon service.'); ?></p>
27
+ </div>
28
+ </div>
29
+ <?php echo $this->getSellerCentralConfigHtml(); ?>
30
  </div>
app/design/adminhtml/default/default/template/creativestyle/amazonpayments/seller_central.phtml ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the official Amazon Payments Advanced extension
4
+ * for Magento (c) creativestyle GmbH <amazon@creativestyle.de>
5
+ * All rights reserved
6
+ *
7
+ * Reuse or modification of this source code is not allowed
8
+ * without written permission from creativestyle GmbH
9
+ *
10
+ * @category Creativestyle
11
+ * @package Creativestyle_AmazonPayments
12
+ * @copyright Copyright (c) 2015 creativestyle GmbH
13
+ * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
14
+ */
15
+ ?>
16
+ <div class="section-config">
17
+ <div class="entry-edit-head collapseable">
18
+ <a id="<?php echo $this->getHtmlId(); ?>-head" href="#" onclick="Fieldset.toggleCollapse('<?php echo $this->getHtmlId(); ?>'); return false;"><?php echo $this->helper('amazonpayments')->__('<span class="close">Click to reveal your </span>Amazon Seller Central config') ?></a>
19
+ </div>
20
+ <input id="<?php echo $this->getHtmlId(); ?>-state" name="config_state[<?php echo $this->getHtmlId(); ?>]" type="hidden" value="0">
21
+ <div class="fieldset config" id="<?php echo $this->getHtmlId(); ?>">
22
+ <table cellspacing="0" class="form-list">
23
+ <colgroup class="label"></colgroup>
24
+ <colgroup class="value"></colgroup>
25
+ <tbody>
26
+ <?php foreach ($this->getSellerCentralConfigOptions() as $option): ?>
27
+ <tr>
28
+ <td class="label"><?php echo $option->getLabel(); ?></td>
29
+ <td class="value" style="width:auto;">
30
+ <span id="<?php echo $this->getHtmlId() . '_' . $option->getId(); ?>"><?php echo $option->getValue(); ?></span>
31
+ <?php if ($option->hasComment() && $option->getComment()): ?>
32
+ <p style="width:auto;" class="note"><span><?php echo $option->getComment(); ?></span></p>
33
+ <?php endif; ?>
34
+ </td>
35
+ </tr>
36
+ <?php endforeach; ?>
37
+ </tbody>
38
+ </table>
39
+ </div>
40
+ </div>
41
+ <script type="text/javascript">//<![CDATA[
42
+ Fieldset.applyCollapse('<?php echo $this->getHtmlId(); ?>');
43
+ //]]></script>
app/design/frontend/base/default/layout/amazonpayments.xml CHANGED
@@ -25,6 +25,7 @@
25
  <reference name="cart_sidebar.extra_actions">
26
  <block type="amazonpayments/pay_button" name="top_cart.amazonpayments.pay_button" before="-">
27
  <action method="setIdSuffix"><value>sidebar</value></action>
 
28
  </block>
29
  </reference>
30
  <reference name="before_body_end">
@@ -53,11 +54,9 @@
53
  <block type="amazonpayments/onepage_button" name="onepage.amazonpayments.button">
54
  <block type="amazonpayments/pay_button" name="onepage.amazonpayments.button.pay" template="creativestyle/amazonpayments/onepage/button.phtml">
55
  <action method="setIdSuffix"><value>onepage</value></action>
56
- <block type="core/template" name="onepage.amazonpayments.button.tooltip" as="amazonpayments_button_tooltip" template="creativestyle/amazonpayments/button/tooltip.phtml"/>
57
  </block>
58
  <block type="amazonpayments/login_button" name="onepage.amazonpayments.button.login" template="creativestyle/amazonpayments/onepage/button.phtml">
59
  <action method="setIdSuffix"><value>onepage</value></action>
60
- <block type="core/template" name="onepage.amazonpayments.button.tooltip" as="amazonpayments_button_tooltip" template="creativestyle/amazonpayments/button/tooltip.phtml"/>
61
  </block>
62
  </block>
63
  </reference>
25
  <reference name="cart_sidebar.extra_actions">
26
  <block type="amazonpayments/pay_button" name="top_cart.amazonpayments.pay_button" before="-">
27
  <action method="setIdSuffix"><value>sidebar</value></action>
28
+ <action method="setEnableOr"><value>1</value></action>
29
  </block>
30
  </reference>
31
  <reference name="before_body_end">
54
  <block type="amazonpayments/onepage_button" name="onepage.amazonpayments.button">
55
  <block type="amazonpayments/pay_button" name="onepage.amazonpayments.button.pay" template="creativestyle/amazonpayments/onepage/button.phtml">
56
  <action method="setIdSuffix"><value>onepage</value></action>
 
57
  </block>
58
  <block type="amazonpayments/login_button" name="onepage.amazonpayments.button.login" template="creativestyle/amazonpayments/onepage/button.phtml">
59
  <action method="setIdSuffix"><value>onepage</value></action>
 
60
  </block>
61
  </block>
62
  </reference>
app/design/frontend/base/default/template/creativestyle/amazonpayments/onepage/button.phtml CHANGED
@@ -15,7 +15,11 @@
15
  ?>
16
  <div class="pay-with-amazon-onepage-shortcut">
17
  <h3><?php echo $this->__('Pay with Amazon'); ?></h3>
18
- <p><?php echo $this->getChildHtml('amazonpayments_button_tooltip'); ?></p>
 
 
 
 
19
  <div id="<?php echo $this->getWidgetHtmlId(); ?>" class="<?php echo $this->getWidgetClass(); ?>">
20
  <?php if ($buttonImgUrl = $this->getButtonWidgetUrl()): ?>
21
  <img src="<?php echo $buttonImgUrl; ?>"/>
15
  ?>
16
  <div class="pay-with-amazon-onepage-shortcut">
17
  <h3><?php echo $this->__('Pay with Amazon'); ?></h3>
18
+ <?php if ($this->isVirtual()): ?>
19
+ <p><?php echo $this->__('<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details.'); ?></p>
20
+ <?php else: ?>
21
+ <p><?php echo $this->__('<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details. All Amazon transactions are protected by Amazon&apos;s A-to-z Guarantee.'); ?></p>
22
+ <?php endif; ?>
23
  <div id="<?php echo $this->getWidgetHtmlId(); ?>" class="<?php echo $this->getWidgetClass(); ?>">
24
  <?php if ($buttonImgUrl = $this->getButtonWidgetUrl()): ?>
25
  <img src="<?php echo $buttonImgUrl; ?>"/>
app/locale/de_DE/Creativestyle_AmazonPayments.csv CHANGED
@@ -85,6 +85,7 @@
85
  "Exception code","Exception Code"
86
  "Exception details","Exception Details"
87
  "Exception message","Exception Nachricht"
 
88
  "Extracted XML message","Ausgelesene XML Nachricht"
89
  "French","Französich"
90
  "General Info","Allgemeine Infos"
@@ -115,6 +116,7 @@
115
  "Medium","Mittel"
116
  "Merchant ID","Händlernummer"
117
  "Message","Message"
 
118
  "New order status","Neuer Bestellstatus"
119
  "Next page","Nächste Seite"
120
  "No, use data polling instead","Nein, data polling anstelle benutzen"
@@ -179,7 +181,6 @@
179
  "Use your Amazon Account","Melden Sie sich mit ihrem Amazon Konto an"
180
  "Validate Amazon Payments account","Amazon Payments Konto validieren"
181
  "View","Ansicht"
182
- "Visit <a href=""%s"" target=""_blank"">%s</a> to get more information.","Besuchen Sie <a href=""%s"" target=""_blank"">%s</a> um mehr Informationen zu erhalten."
183
  "Wallet widget height","Höhe Zahlartenwidget"
184
  "Wallet widget width","Breite Zahlartenwidget"
185
  "Whether to show a toolbox in the checkout for simulating different payment scenarios.","Auswahl ob die Toolbox zum simulieren von verschiedenen Zahlungsscenarios (inklusive Ablehnungen) im Sandbox Modus angezeigt wird"
85
  "Exception code","Exception Code"
86
  "Exception details","Exception Details"
87
  "Exception message","Exception Nachricht"
88
+ "Extension documentation","Extension documentation"
89
  "Extracted XML message","Ausgelesene XML Nachricht"
90
  "French","Französich"
91
  "General Info","Allgemeine Infos"
116
  "Medium","Mittel"
117
  "Merchant ID","Händlernummer"
118
  "Message","Message"
119
+ "More about <em>creativestyle</em>","Mehr über <em>creativestyle</em>"
120
  "New order status","Neuer Bestellstatus"
121
  "Next page","Nächste Seite"
122
  "No, use data polling instead","Nein, data polling anstelle benutzen"
181
  "Use your Amazon Account","Melden Sie sich mit ihrem Amazon Konto an"
182
  "Validate Amazon Payments account","Amazon Payments Konto validieren"
183
  "View","Ansicht"
 
184
  "Wallet widget height","Höhe Zahlartenwidget"
185
  "Wallet widget width","Breite Zahlartenwidget"
186
  "Whether to show a toolbox in the checkout for simulating different payment scenarios.","Auswahl ob die Toolbox zum simulieren von verschiedenen Zahlungsscenarios (inklusive Ablehnungen) im Sandbox Modus angezeigt wird"
app/locale/en_GB/Creativestyle_AmazonPayments.csv CHANGED
@@ -85,6 +85,7 @@
85
  "Exception code","Exception code"
86
  "Exception details","Exception details"
87
  "Exception message","Exception message"
 
88
  "Extracted XML message","Extracted XML message"
89
  "French","French"
90
  "General Info","General Info"
@@ -115,6 +116,7 @@
115
  "Medium","Medium"
116
  "Merchant ID","Merchant ID"
117
  "Message","Message"
 
118
  "New order status","New order status"
119
  "Next page","Next page"
120
  "No, use data polling instead","No, use data polling instead"
@@ -179,7 +181,6 @@
179
  "Use your Amazon Account","Use your Amazon Account"
180
  "Validate Amazon Payments account","Validate Amazon Payments account"
181
  "View","View"
182
- "Visit <a href=""%s"" target=""_blank"">%s</a> to get more information.","Visit <a href=""%s"" target=""_blank"">%s</a> to get more information."
183
  "Wallet widget height","Wallet widget height"
184
  "Wallet widget width","Wallet widget width"
185
  "Whether to show a toolbox in the checkout for simulating different payment scenarios.","Whether to show a toolbox in the checkout for simulating different payment scenarios."
85
  "Exception code","Exception code"
86
  "Exception details","Exception details"
87
  "Exception message","Exception message"
88
+ "Extension documentation","Extension documentation"
89
  "Extracted XML message","Extracted XML message"
90
  "French","French"
91
  "General Info","General Info"
116
  "Medium","Medium"
117
  "Merchant ID","Merchant ID"
118
  "Message","Message"
119
+ "More about <em>creativestyle</em>","More about <em>creativestyle</em>"
120
  "New order status","New order status"
121
  "Next page","Next page"
122
  "No, use data polling instead","No, use data polling instead"
181
  "Use your Amazon Account","Use your Amazon Account"
182
  "Validate Amazon Payments account","Validate Amazon Payments account"
183
  "View","View"
 
184
  "Wallet widget height","Wallet widget height"
185
  "Wallet widget width","Wallet widget width"
186
  "Whether to show a toolbox in the checkout for simulating different payment scenarios.","Whether to show a toolbox in the checkout for simulating different payment scenarios."
app/locale/en_US/Creativestyle_AmazonPayments.csv CHANGED
@@ -85,6 +85,7 @@
85
  "Exception code","Exception code"
86
  "Exception details","Exception details"
87
  "Exception message","Exception message"
 
88
  "Extracted XML message","Extracted XML message"
89
  "French","French"
90
  "General Info","General Info"
@@ -115,6 +116,7 @@
115
  "Medium","Medium"
116
  "Merchant ID","Merchant ID"
117
  "Message","Message"
 
118
  "New order status","New order status"
119
  "Next page","Next page"
120
  "No, use data polling instead","No, use data polling instead"
@@ -179,7 +181,6 @@
179
  "Use your Amazon Account","Use your Amazon Account"
180
  "Validate Amazon Payments account","Validate Amazon Payments account"
181
  "View","View"
182
- "Visit <a href=""%s"" target=""_blank"">%s</a> to get more information.","Visit <a href=""%s"" target=""_blank"">%s</a> to get more information."
183
  "Wallet widget height","Wallet widget height"
184
  "Wallet widget width","Wallet widget width"
185
  "Whether to show a toolbox in the checkout for simulating different payment scenarios.","Whether to show a toolbox in the checkout for simulating different payment scenarios."
85
  "Exception code","Exception code"
86
  "Exception details","Exception details"
87
  "Exception message","Exception message"
88
+ "Extension documentation","Extension documentation"
89
  "Extracted XML message","Extracted XML message"
90
  "French","French"
91
  "General Info","General Info"
116
  "Medium","Medium"
117
  "Merchant ID","Merchant ID"
118
  "Message","Message"
119
+ "More about <em>creativestyle</em>","More about <em>creativestyle</em>"
120
  "New order status","New order status"
121
  "Next page","Next page"
122
  "No, use data polling instead","No, use data polling instead"
181
  "Use your Amazon Account","Use your Amazon Account"
182
  "Validate Amazon Payments account","Validate Amazon Payments account"
183
  "View","View"
 
184
  "Wallet widget height","Wallet widget height"
185
  "Wallet widget width","Wallet widget width"
186
  "Whether to show a toolbox in the checkout for simulating different payment scenarios.","Whether to show a toolbox in the checkout for simulating different payment scenarios."
app/locale/es_ES/Creativestyle_AmazonPayments.csv CHANGED
@@ -85,6 +85,7 @@
85
  "Exception code","Código de excepción"
86
  "Exception details","Detalles de excepción"
87
  "Exception message","Mensaje de excepción"
 
88
  "Extracted XML message","Mensaje XML extraído"
89
  "French","Francés"
90
  "General Info","Información General"
@@ -115,6 +116,7 @@
115
  "Medium","Medio"
116
  "Merchant ID","ID del vendedor"
117
  "Message","Mensaje"
 
118
  "New order status","Estado para pedidos nuevos"
119
  "Next page","Siguiente página"
120
  "No, use data polling instead","No, usar polling en su lugar"
@@ -179,7 +181,6 @@
179
  "Use your Amazon Account","Use your Amazon Account"
180
  "Validate Amazon Payments account","Validar cuenta de Amazon Payments"
181
  "View","Vista"
182
- "Visit <a href=""%s"" target=""_blank"">%s</a> to get more information.","Visita <a href=""%s"" target=""_blank"">%s</a> para recibir más información."
183
  "Wallet widget height","Altura del widget de pagos"
184
  "Wallet widget width","Anchura del widget de pagos"
185
  "Whether to show a toolbox in the checkout for simulating different payment scenarios.","Mostrar herramientas de test en el checkout para simular diferentes escenarios de pago."
85
  "Exception code","Código de excepción"
86
  "Exception details","Detalles de excepción"
87
  "Exception message","Mensaje de excepción"
88
+ "Extension documentation","Extension documentation"
89
  "Extracted XML message","Mensaje XML extraído"
90
  "French","Francés"
91
  "General Info","Información General"
116
  "Medium","Medio"
117
  "Merchant ID","ID del vendedor"
118
  "Message","Mensaje"
119
+ "More about <em>creativestyle</em>","More about <em>creativestyle</em>"
120
  "New order status","Estado para pedidos nuevos"
121
  "Next page","Siguiente página"
122
  "No, use data polling instead","No, usar polling en su lugar"
181
  "Use your Amazon Account","Use your Amazon Account"
182
  "Validate Amazon Payments account","Validar cuenta de Amazon Payments"
183
  "View","Vista"
 
184
  "Wallet widget height","Altura del widget de pagos"
185
  "Wallet widget width","Anchura del widget de pagos"
186
  "Whether to show a toolbox in the checkout for simulating different payment scenarios.","Mostrar herramientas de test en el checkout para simular diferentes escenarios de pago."
app/locale/fr_FR/Creativestyle_AmazonPayments.csv CHANGED
@@ -85,6 +85,7 @@
85
  "Exception code","Code Exception"
86
  "Exception details","Détails Exception"
87
  "Exception message","Message d'exception"
 
88
  "Extracted XML message","Extractation du message XML"
89
  "French","Français"
90
  "General Info","Informations générales"
@@ -115,6 +116,7 @@
115
  "Medium","Moyen"
116
  "Merchant ID","Numéro marchand"
117
  "Message","Message"
 
118
  "New order status","Nouvelle commande"
119
  "Next page","Prochaine page"
120
  "No, use data polling instead","Non, utiliser data polling"
@@ -179,7 +181,6 @@
179
  "Use your Amazon Account","Use your Amazon Account"
180
  "Validate Amazon Payments account","Valider le compte Amazon Payments"
181
  "View","Vue"
182
- "Visit <a href=""%s"" target=""_blank"">%s</a> to get more information.","Pour plus d'informations visitez <a href=""%s"" target=""_blank"">%s</a>."
183
  "Wallet widget height","Hauteur widget payements"
184
  "Wallet widget width","Largeur widget payements"
185
  "Whether to show a toolbox in the checkout for simulating different payment scenarios.","Option pour activer la Toolbox qui permet de simuler certains scénarios de payment (refus inclus) dans le mode Sandbox"
85
  "Exception code","Code Exception"
86
  "Exception details","Détails Exception"
87
  "Exception message","Message d'exception"
88
+ "Extension documentation","Extension documentation"
89
  "Extracted XML message","Extractation du message XML"
90
  "French","Français"
91
  "General Info","Informations générales"
116
  "Medium","Moyen"
117
  "Merchant ID","Numéro marchand"
118
  "Message","Message"
119
+ "More about <em>creativestyle</em>","More about <em>creativestyle</em>"
120
  "New order status","Nouvelle commande"
121
  "Next page","Prochaine page"
122
  "No, use data polling instead","Non, utiliser data polling"
181
  "Use your Amazon Account","Use your Amazon Account"
182
  "Validate Amazon Payments account","Valider le compte Amazon Payments"
183
  "View","Vue"
 
184
  "Wallet widget height","Hauteur widget payements"
185
  "Wallet widget width","Largeur widget payements"
186
  "Whether to show a toolbox in the checkout for simulating different payment scenarios.","Option pour activer la Toolbox qui permet de simuler certains scénarios de payment (refus inclus) dans le mode Sandbox"
app/locale/it_IT/Creativestyle_AmazonPayments.csv CHANGED
@@ -85,6 +85,7 @@
85
  "Exception code","Codice eccezione"
86
  "Exception details","Dettagli eccezione"
87
  "Exception message","Messaggio eccezione"
 
88
  "Extracted XML message","Messaggio XML estratto"
89
  "French","Francese"
90
  "General Info","Informazioni generali"
@@ -115,6 +116,7 @@
115
  "Medium","Medio"
116
  "Merchant ID","Merchant ID"
117
  "Message","Messaggio"
 
118
  "New order status","Nuovo stato ordine"
119
  "Next page","Pagina successiva"
120
  "No, use data polling instead","No, usa polling di dati"
@@ -179,7 +181,6 @@
179
  "Use your Amazon Account","Use your Amazon Account"
180
  "Validate Amazon Payments account","Convalida conto Amazon Payments"
181
  "View","Visualizza"
182
- "Visit <a href=""%s"" target=""_blank"">%s</a> to get more information.","Visita <a href=""%s"" target=""_blank"">%s</a> per maggiori informazioni."
183
  "Wallet widget height","Altezza widget portafoglio"
184
  "Wallet widget width","Larghezza widget portafoglio"
185
  "Whether to show a toolbox in the checkout for simulating different payment scenarios.","Scegli se mostrare uno strumento al checkout per simulare diverse situazioni di pagamento."
85
  "Exception code","Codice eccezione"
86
  "Exception details","Dettagli eccezione"
87
  "Exception message","Messaggio eccezione"
88
+ "Extension documentation","Extension documentation"
89
  "Extracted XML message","Messaggio XML estratto"
90
  "French","Francese"
91
  "General Info","Informazioni generali"
116
  "Medium","Medio"
117
  "Merchant ID","Merchant ID"
118
  "Message","Messaggio"
119
+ "More about <em>creativestyle</em>","More about <em>creativestyle</em>"
120
  "New order status","Nuovo stato ordine"
121
  "Next page","Pagina successiva"
122
  "No, use data polling instead","No, usa polling di dati"
181
  "Use your Amazon Account","Use your Amazon Account"
182
  "Validate Amazon Payments account","Convalida conto Amazon Payments"
183
  "View","Visualizza"
 
184
  "Wallet widget height","Altezza widget portafoglio"
185
  "Wallet widget width","Larghezza widget portafoglio"
186
  "Whether to show a toolbox in the checkout for simulating different payment scenarios.","Scegli se mostrare uno strumento al checkout per simulare diverse situazioni di pagamento."
js/creativestyle/apa_checkout.js CHANGED
@@ -152,7 +152,7 @@ var APA = {
152
  color: button.buttonColor || APA.design.payButton.color,
153
  authorization: function() {
154
  amazon.Login.authorize({
155
- scope: 'profile payments:widget payments:shipping_address',
156
  popup: APA.popup
157
  }, APA.urls.pay);
158
  },
@@ -170,7 +170,7 @@ var APA = {
170
  color: button.buttonColor || APA.design.loginButton.color,
171
  authorization: function() {
172
  amazon.Login.authorize({
173
- scope: 'profile payments:widget payments:shipping_address',
174
  popup: APA.popup
175
  }, APA.urls.login);
176
  },
152
  color: button.buttonColor || APA.design.payButton.color,
153
  authorization: function() {
154
  amazon.Login.authorize({
155
+ scope: 'profile payments:widget payments:shipping_address payments:billing_address',
156
  popup: APA.popup
157
  }, APA.urls.pay);
158
  },
170
  color: button.buttonColor || APA.design.loginButton.color,
171
  authorization: function() {
172
  amazon.Login.authorize({
173
+ scope: 'profile payments:widget payments:shipping_address payments:billing_address',
174
  popup: APA.popup
175
  }, APA.urls.login);
176
  },
js/creativestyle/apa_checkout.min.js CHANGED
@@ -1 +1 @@
1
- if(!window.Review){var Review=function(){}}var APA={submitAllowed:false,paymentSelected:false,reloaded:false,Widgets:{ShippingMethod:Class.create({initialize:function(a){this.layer=$(APA.layers.shippingMethod);Object.extend(this,a);Event.stopObserving(this.layer,"widget:update").observe("widget:update",this.onUpdate.bindAsEventListener(this))},update:function(b){try{Element.update(this.layer,b);if(!this.layer.down("input[type=radio]:checked")){var a=this.layer.down("input[type=radio]");if(a){a.checked=true}}Event.stopObserving(this.layer,"change").observe("change",this.onShippingMethodSelect.bindAsEventListener(this));Event.stopObserving(this.layer,"widget:checked").observe("widget:checked",this.onShippingMethodSelect.bindAsEventListener(this));Event.fire(this.layer,"widget:update")}catch(c){this.onError(c)}}}),Review:Class.create({initialize:function(a){this.layer=$(APA.layers.review);Object.extend(this,a)},update:function(a){try{Element.update(this.layer,a)}catch(b){this.onError(b)}}})},setLoadWaiting:function(){for(var b=0;b<arguments.length;b++){if($(arguments[b])){var a=$(arguments[b]).up("li");a.addClassName("loading")}}return this},unsetLoadWaiting:function(){for(var b=0;b<arguments.length;b++){if($(arguments[b])){var a=$(arguments[b]).up("li");a.removeClassName("loading")}}return this},setOrderSaveWaiting:function(){if($(APA.layers.review)){var a=$(APA.layers.review).down(".please-wait");if(a){Element.show(a)}}this.showOverlay();this.disableSubmit();return this},unsetOrderSaveWaiting:function(){if($(APA.layers.review)){var a=$(APA.layers.review).down(".please-wait");if(a){Element.hide(a)}}this.hideOverlay();return this},showOverlay:function(){if($("checkoutSteps")){$("checkoutSteps").insert({top:new Element("div",{"class":"amazon-widget-overlay"})})}return this},hideOverlay:function(){if($("checkoutSteps")&&$("checkoutSteps").down(".amazon-widget-overlay")){$("checkoutSteps").down(".amazon-widget-overlay").remove()}this.toggleSubmit();return this},initCheckout:function(){this.disableSubmit().scaffoldPaymentWidget();if(this.virtual){return this.setLoadWaiting(APA.layers.wallet).renderWalletWidget().allowSubmit(true)}if(!this.orderReferenceId){return this.setLoadWaiting(APA.layers.shippingMethod,APA.layers.wallet,APA.layers.review).renderAddressBookWidget()}return this.setLoadWaiting(APA.layers.shippingMethod,APA.layers.wallet,APA.layers.review).renderAddressBookWidget().renderWalletWidget()},scaffoldPaymentWidget:function(){if(typeof APA.design.wallet.size!="undefined"&&!APA.design.responsive){if(APA.design.wallet.size.width){$(APA.layers.wallet).up().setStyle({width:APA.design.wallet.size.width})}if(APA.design.wallet.size.height){$(APA.layers.wallet).up().setStyle({height:APA.design.wallet.size.height})}}return this},renderButtonWidget:function(c){if(APA.urls.login!=null){$$(APA.layers.payButtons).each(function(d){var e={type:d.buttonType||APA.design.payButton.type||"PwA",size:d.buttonSize||APA.design.payButton.size,color:d.buttonColor||APA.design.payButton.color,authorization:function(){amazon.Login.authorize({scope:"profile payments:widget payments:shipping_address",popup:APA.popup},APA.urls.pay)},onError:APA.amazonErrorCallback};if(APA.language){e.language=APA.language}new OffAmazonPayments.Button(d.identify(),APA.sellerId,e)});$$(APA.layers.loginButtons).each(function(d){var e={type:d.buttonType||APA.design.loginButton.type||"LwA",size:d.buttonSize||APA.design.loginButton.size,color:d.buttonColor||APA.design.loginButton.color,authorization:function(){amazon.Login.authorize({scope:"profile payments:widget payments:shipping_address",popup:APA.popup},APA.urls.login)},onError:APA.amazonErrorCallback};if(APA.language){e.language=APA.language}new OffAmazonPayments.Button(d.identify(),APA.sellerId,e)})}else{$$(APA.layers.payButtons).each(function(d){new OffAmazonPayments.Widgets.Button({sellerId:APA.sellerId,useAmazonAddressBook:!APA.virtual,onSignIn:APA.signInCallback,onError:APA.amazonErrorCallback}).bind(d.identify())})}if(c&&typeof Tooltip!="undefined"&&!APA.isMobileDevice()){var b=$$(APA.layers.payButtons+","+APA.layers.loginButtons).findAll(function(d){return d.hasClassName("with-tooltip")});if(b.length){var a=document.createElement("div");a.setAttribute("id","pay-with-amazon-tooltip");a.addClassName("pay-with-amazon-tooltip");a.setStyle({display:"none",zIndex:10});a.update(c);document.body.appendChild(a);b.each(function(d){var e=d.down("img");if(e){new Tooltip(e,a)}})}}},signInCallback:function(a){var c=document.createElement("input");c.setAttribute("type","hidden");c.setAttribute("name","orderReferenceId");c.setAttribute("value",a.getAmazonOrderReferenceId());var b=document.createElement("form");b.setAttribute("method","post");b.setAttribute("action",APA.urls.checkout);b.appendChild(c);document.body.appendChild(b);b.submit();return},renderAddressBookWidget:function(){APA.setLoadWaiting(APA.layers.shippingMethod,APA.layers.review);new OffAmazonPayments.Widgets.AddressBook({sellerId:APA.sellerId,onOrderReferenceCreate:APA.orderReferenceCreateCallback,amazonOrderReferenceId:APA.orderReferenceId,design:(APA.design.responsive?{designMode:"responsive"}:APA.design.addressBook),onAddressSelect:APA.addressSelectCallback,onError:APA.amazonErrorCallback}).bind(APA.layers.addressBook);return this},renderReadOnlyAddressBookWidget:function(){new OffAmazonPayments.Widgets.AddressBook({sellerId:APA.sellerId,amazonOrderReferenceId:APA.orderReferenceId,design:(APA.design.responsive?{designMode:"responsive"}:APA.design.addressBook),onError:APA.amazonErrorCallback,displayMode:"Read"}).bind(APA.layers.addressBook);return this},orderReferenceCreateCallback:function(a){if(!APA.orderReferenceId){APA.orderReferenceId=a.getAmazonOrderReferenceId();if(!APA.virtual){APA.renderWalletWidget()}}},addressSelectCallback:function(){APA.selectPayment(false);APA.setLoadWaiting(APA.layers.shippingMethod,APA.layers.review);new Ajax.Request(APA.urls.saveShipping,{method:"post",parameters:{orderReferenceId:APA.orderReferenceId},evalScripts:true,onSuccess:APA.successCallback,onFailure:APA.ajaxFailureCallback})},renderShippingMethodWidget:function(a){APA.setLoadWaiting(APA.layers.review);new APA.Widgets.ShippingMethod({onShippingMethodSelect:APA.shippingMethodSelectCallback,onUpdate:APA.shippingMethodUpdateCallback,onError:APA.magentoErrorCallback}).update(a);return this},shippingMethodSelectCallback:function(a){APA.setLoadWaiting(APA.layers.review);new Ajax.Request(APA.urls.saveShippingMethod,{method:"post",parameters:Form.serialize($("co-shipping-method-form")),evalScripts:true,onSuccess:APA.successCallback,onFailure:APA.ajaxFailureCallback})},shippingMethodUpdateCallback:function(b){var a=Event.element(b);Event.fire(a,"widget:checked")},renderWalletWidget:function(){new OffAmazonPayments.Widgets.Wallet({sellerId:APA.sellerId,onOrderReferenceCreate:APA.orderReferenceCreateCallback,amazonOrderReferenceId:APA.orderReferenceId,design:(APA.design.responsive?{designMode:"responsive"}:APA.design.wallet),onPaymentSelect:APA.paymentSelectCallback,onError:APA.amazonErrorCallback}).bind(APA.layers.wallet);return this},paymentSelectCallback:function(){APA.selectPayment(true)},reloadWallet:function(){this.renderReadOnlyAddressBookWidget().renderWalletWidget();return this},renderReviewWidget:function(a){new APA.Widgets.Review({onError:APA.magentoErrorCallback}).update(a);this.toggleSubmit();return this},successCallback:function(transport){response=eval("("+transport.responseText+")");if(response.error){APA.magentoErrorCallback(response.error_messages)}if(response.render_widget){$H(response.render_widget).each(function(pair){APA["render"+pair.key.capitalize().camelize()+"Widget"](pair.value);if(pair.value){APA.unsetLoadWaiting(APA.layers[pair.key.camelize()])}})}if(response.allow_submit){APA.allowSubmit(true)}else{APA.allowSubmit(false)}},saveOrderCallback:function(transport){response=eval("("+transport.responseText+")");if(response.success){window.location=APA.urls.success}if(response.redirect){window.location=response.redirect}if(response.error){APA.unsetOrderSaveWaiting();APA.magentoErrorCallback(response.error_messages);if(response.reload){APA.reloaded=false;APA.orderReferenceId=null;APA.initCheckout()}if(response.reload_wallet){APA.reloaded=true;APA.disableSubmit().reloadWallet()}}},ajaxFailureCallback:function(){window.location.href=APA.urls.failure},amazonErrorCallback:function(a){if(!APA.live){console.trace();alert(a.getErrorMessage())}var b=["BuyerNotAssociated","BuyerSessionExpired","StaleOrderReference","InvalidOrderReferenceId"];if(b.any(function(c){return c==a.getErrorCode()})){window.location.href=APA.urls.failure}},magentoErrorCallback:function(a){if(!APA.live){console.trace()}if(typeof(a)=="object"){a=a.join("\n")}if(a){alert(a)}},allowSubmit:function(a){this.submitAllowed=a;return this.toggleSubmit()},selectPayment:function(a){this.paymentSelected=a;return this.toggleSubmit()},toggleSubmit:function(){if(this.submitAllowed&&this.paymentSelected){return this.enableSubmit()}return this.disableSubmit()},disableSubmit:function(){var b=$("amazonpayments-checkout-place-order-button");if(b){b.disabled=true;var a=b.up("div.buttons-set");if(a){a.addClassName("disabled")}}return this},enableSubmit:function(){if(this.submitAllowed&&this.paymentSelected){var b=$("amazonpayments-checkout-place-order-button");if(b){b.disabled=false;var a=b.up("div.buttons-set");if(a){a.removeClassName("disabled")}}}return this},saveOrder:function(){APA.setOrderSaveWaiting();new Ajax.Request(APA.urls.saveOrder,{method:"post",parameters:APA.getSaveOrderParams(),onSuccess:APA.saveOrderCallback,onFailure:APA.ajaxFailureCallback})},getSaveOrderParams:function(){var a="";if(APA.virtual){a+=Object.toQueryString({orderReferenceId:APA.orderReferenceId});if($("checkout-agreements")){a+="&"+Form.serialize($("checkout-agreements"))}}else{a=Form.serialize($("co-shipping-method-form"));if($("checkout-agreements")){a+="&"+Form.serialize($("checkout-agreements"))}}if(APA.reloaded){a+="&"+Object.toQueryString({reloaded:1})}a.save=true;return a},isMobileDevice:function(){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(navigator.userAgent||navigator.vendor||window.opera)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test((navigator.userAgent||navigator.vendor||window.opera).substr(0,4))},initialize:function(c,a,d,g,f,e,b){return Object.extend(APA,{sellerId:c,orderReferenceId:a,live:d,virtual:g,urls:Object.extend({login:null,pay:null,checkout:null,saveShipping:null,saveShippingMethod:null,saveOrder:null,success:null,failure:null},f),layers:Object.extend({payButtons:".payButtonWidget",loginButtons:".loginButtonWidget",addressBook:"addressBookWidgetDiv",wallet:"walletWidgetDiv",shippingMethod:"shippingMethodWidgetDiv",review:"reviewWidgetDiv"},e),design:Object.extend({addressBook:{size:{width:"440px",height:"260px"}},wallet:{size:{width:"440px",height:"260px"}},payButton:{type:"PwA"},loginButton:{type:"LwA"}},b)})},setup:function(b,a){return Object.extend(APA,{sellerId:b,orderReferenceId:typeof a.orderReferenceId=="undefined"?null:a.orderReferenceId,language:typeof a.language=="undefined"?null:a.language,live:typeof a.live=="undefined"?true:a.live,popup:typeof a.popup=="undefined"?true:a.popup,virtual:typeof a.virtual=="undefined"?false:a.virtual,layers:Object.extend({payButtons:".payButtonWidget",loginButtons:".loginButtonWidget",addressBook:"addressBookWidgetDiv",wallet:"walletWidgetDiv",shippingMethod:"shippingMethodWidgetDiv",review:"reviewWidgetDiv"},a.layers),urls:Object.extend({login:null,pay:null,checkout:null,saveShipping:null,saveShippingMethod:null,saveOrder:null,success:null,failure:null},a.urls),design:Object.extend({responsive:true,addressBook:{size:{width:"440px",height:"260px"}},wallet:{size:{width:"440px",height:"260px"}},payButton:{type:"PwA"},loginButton:{type:"LwA"}},a.design)})}};
1
+ if(!window.Review){var Review=function(){}}var APA={submitAllowed:false,paymentSelected:false,reloaded:false,Widgets:{ShippingMethod:Class.create({initialize:function(a){this.layer=$(APA.layers.shippingMethod);Object.extend(this,a);Event.stopObserving(this.layer,"widget:update").observe("widget:update",this.onUpdate.bindAsEventListener(this))},update:function(b){try{Element.update(this.layer,b);if(!this.layer.down("input[type=radio]:checked")){var a=this.layer.down("input[type=radio]");if(a){a.checked=true}}Event.stopObserving(this.layer,"change").observe("change",this.onShippingMethodSelect.bindAsEventListener(this));Event.stopObserving(this.layer,"widget:checked").observe("widget:checked",this.onShippingMethodSelect.bindAsEventListener(this));Event.fire(this.layer,"widget:update")}catch(c){this.onError(c)}}}),Review:Class.create({initialize:function(a){this.layer=$(APA.layers.review);Object.extend(this,a)},update:function(a){try{Element.update(this.layer,a)}catch(b){this.onError(b)}}})},setLoadWaiting:function(){for(var b=0;b<arguments.length;b++){if($(arguments[b])){var a=$(arguments[b]).up("li");a.addClassName("loading")}}return this},unsetLoadWaiting:function(){for(var b=0;b<arguments.length;b++){if($(arguments[b])){var a=$(arguments[b]).up("li");a.removeClassName("loading")}}return this},setOrderSaveWaiting:function(){if($(APA.layers.review)){var a=$(APA.layers.review).down(".please-wait");if(a){Element.show(a)}}this.showOverlay();this.disableSubmit();return this},unsetOrderSaveWaiting:function(){if($(APA.layers.review)){var a=$(APA.layers.review).down(".please-wait");if(a){Element.hide(a)}}this.hideOverlay();return this},showOverlay:function(){if($("checkoutSteps")){$("checkoutSteps").insert({top:new Element("div",{"class":"amazon-widget-overlay"})})}return this},hideOverlay:function(){if($("checkoutSteps")&&$("checkoutSteps").down(".amazon-widget-overlay")){$("checkoutSteps").down(".amazon-widget-overlay").remove()}this.toggleSubmit();return this},initCheckout:function(){this.disableSubmit().scaffoldPaymentWidget();if(this.virtual){return this.setLoadWaiting(APA.layers.wallet).renderWalletWidget().allowSubmit(true)}if(!this.orderReferenceId){return this.setLoadWaiting(APA.layers.shippingMethod,APA.layers.wallet,APA.layers.review).renderAddressBookWidget()}return this.setLoadWaiting(APA.layers.shippingMethod,APA.layers.wallet,APA.layers.review).renderAddressBookWidget().renderWalletWidget()},scaffoldPaymentWidget:function(){if(typeof APA.design.wallet.size!="undefined"&&!APA.design.responsive){if(APA.design.wallet.size.width){$(APA.layers.wallet).up().setStyle({width:APA.design.wallet.size.width})}if(APA.design.wallet.size.height){$(APA.layers.wallet).up().setStyle({height:APA.design.wallet.size.height})}}return this},renderButtonWidget:function(c){if(APA.urls.login!=null){$$(APA.layers.payButtons).each(function(d){var e={type:d.buttonType||APA.design.payButton.type||"PwA",size:d.buttonSize||APA.design.payButton.size,color:d.buttonColor||APA.design.payButton.color,authorization:function(){amazon.Login.authorize({scope:"profile payments:widget payments:shipping_address payments:billing_address",popup:APA.popup},APA.urls.pay)},onError:APA.amazonErrorCallback};if(APA.language){e.language=APA.language}new OffAmazonPayments.Button(d.identify(),APA.sellerId,e)});$$(APA.layers.loginButtons).each(function(d){var e={type:d.buttonType||APA.design.loginButton.type||"LwA",size:d.buttonSize||APA.design.loginButton.size,color:d.buttonColor||APA.design.loginButton.color,authorization:function(){amazon.Login.authorize({scope:"profile payments:widget payments:shipping_address payments:billing_address",popup:APA.popup},APA.urls.login)},onError:APA.amazonErrorCallback};if(APA.language){e.language=APA.language}new OffAmazonPayments.Button(d.identify(),APA.sellerId,e)})}else{$$(APA.layers.payButtons).each(function(d){new OffAmazonPayments.Widgets.Button({sellerId:APA.sellerId,useAmazonAddressBook:!APA.virtual,onSignIn:APA.signInCallback,onError:APA.amazonErrorCallback}).bind(d.identify())})}if(c&&typeof Tooltip!="undefined"&&!APA.isMobileDevice()){var b=$$(APA.layers.payButtons+","+APA.layers.loginButtons).findAll(function(d){return d.hasClassName("with-tooltip")});if(b.length){var a=document.createElement("div");a.setAttribute("id","pay-with-amazon-tooltip");a.addClassName("pay-with-amazon-tooltip");a.setStyle({display:"none",zIndex:10});a.update(c);document.body.appendChild(a);b.each(function(d){var e=d.down("img");if(e){new Tooltip(e,a)}})}}},signInCallback:function(a){var c=document.createElement("input");c.setAttribute("type","hidden");c.setAttribute("name","orderReferenceId");c.setAttribute("value",a.getAmazonOrderReferenceId());var b=document.createElement("form");b.setAttribute("method","post");b.setAttribute("action",APA.urls.checkout);b.appendChild(c);document.body.appendChild(b);b.submit();return},renderAddressBookWidget:function(){APA.setLoadWaiting(APA.layers.shippingMethod,APA.layers.review);new OffAmazonPayments.Widgets.AddressBook({sellerId:APA.sellerId,onOrderReferenceCreate:APA.orderReferenceCreateCallback,amazonOrderReferenceId:APA.orderReferenceId,design:(APA.design.responsive?{designMode:"responsive"}:APA.design.addressBook),onAddressSelect:APA.addressSelectCallback,onError:APA.amazonErrorCallback}).bind(APA.layers.addressBook);return this},renderReadOnlyAddressBookWidget:function(){new OffAmazonPayments.Widgets.AddressBook({sellerId:APA.sellerId,amazonOrderReferenceId:APA.orderReferenceId,design:(APA.design.responsive?{designMode:"responsive"}:APA.design.addressBook),onError:APA.amazonErrorCallback,displayMode:"Read"}).bind(APA.layers.addressBook);return this},orderReferenceCreateCallback:function(a){if(!APA.orderReferenceId){APA.orderReferenceId=a.getAmazonOrderReferenceId();if(!APA.virtual){APA.renderWalletWidget()}}},addressSelectCallback:function(){APA.selectPayment(false);APA.setLoadWaiting(APA.layers.shippingMethod,APA.layers.review);new Ajax.Request(APA.urls.saveShipping,{method:"post",parameters:{orderReferenceId:APA.orderReferenceId},evalScripts:true,onSuccess:APA.successCallback,onFailure:APA.ajaxFailureCallback})},renderShippingMethodWidget:function(a){APA.setLoadWaiting(APA.layers.review);new APA.Widgets.ShippingMethod({onShippingMethodSelect:APA.shippingMethodSelectCallback,onUpdate:APA.shippingMethodUpdateCallback,onError:APA.magentoErrorCallback}).update(a);return this},shippingMethodSelectCallback:function(a){APA.setLoadWaiting(APA.layers.review);new Ajax.Request(APA.urls.saveShippingMethod,{method:"post",parameters:Form.serialize($("co-shipping-method-form")),evalScripts:true,onSuccess:APA.successCallback,onFailure:APA.ajaxFailureCallback})},shippingMethodUpdateCallback:function(b){var a=Event.element(b);Event.fire(a,"widget:checked")},renderWalletWidget:function(){new OffAmazonPayments.Widgets.Wallet({sellerId:APA.sellerId,onOrderReferenceCreate:APA.orderReferenceCreateCallback,amazonOrderReferenceId:APA.orderReferenceId,design:(APA.design.responsive?{designMode:"responsive"}:APA.design.wallet),onPaymentSelect:APA.paymentSelectCallback,onError:APA.amazonErrorCallback}).bind(APA.layers.wallet);return this},paymentSelectCallback:function(){APA.selectPayment(true)},reloadWallet:function(){this.renderReadOnlyAddressBookWidget().renderWalletWidget();return this},renderReviewWidget:function(a){new APA.Widgets.Review({onError:APA.magentoErrorCallback}).update(a);this.toggleSubmit();return this},successCallback:function(transport){response=eval("("+transport.responseText+")");if(response.error){APA.magentoErrorCallback(response.error_messages)}if(response.render_widget){$H(response.render_widget).each(function(pair){APA["render"+pair.key.capitalize().camelize()+"Widget"](pair.value);if(pair.value){APA.unsetLoadWaiting(APA.layers[pair.key.camelize()])}})}if(response.allow_submit){APA.allowSubmit(true)}else{APA.allowSubmit(false)}},saveOrderCallback:function(transport){response=eval("("+transport.responseText+")");if(response.success){window.location=APA.urls.success}if(response.redirect){window.location=response.redirect}if(response.error){APA.unsetOrderSaveWaiting();APA.magentoErrorCallback(response.error_messages);if(response.reload){APA.reloaded=false;APA.orderReferenceId=null;APA.initCheckout()}if(response.reload_wallet){APA.reloaded=true;APA.disableSubmit().reloadWallet()}}},ajaxFailureCallback:function(){window.location.href=APA.urls.failure},amazonErrorCallback:function(a){if(!APA.live){console.trace();alert(a.getErrorMessage())}var b=["BuyerNotAssociated","BuyerSessionExpired","StaleOrderReference","InvalidOrderReferenceId"];if(b.any(function(c){return c==a.getErrorCode()})){window.location.href=APA.urls.failure}},magentoErrorCallback:function(a){if(!APA.live){console.trace()}if(typeof(a)=="object"){a=a.join("\n")}if(a){alert(a)}},allowSubmit:function(a){this.submitAllowed=a;return this.toggleSubmit()},selectPayment:function(a){this.paymentSelected=a;return this.toggleSubmit()},toggleSubmit:function(){if(this.submitAllowed&&this.paymentSelected){return this.enableSubmit()}return this.disableSubmit()},disableSubmit:function(){var b=$("amazonpayments-checkout-place-order-button");if(b){b.disabled=true;var a=b.up("div.buttons-set");if(a){a.addClassName("disabled")}}return this},enableSubmit:function(){if(this.submitAllowed&&this.paymentSelected){var b=$("amazonpayments-checkout-place-order-button");if(b){b.disabled=false;var a=b.up("div.buttons-set");if(a){a.removeClassName("disabled")}}}return this},saveOrder:function(){APA.setOrderSaveWaiting();new Ajax.Request(APA.urls.saveOrder,{method:"post",parameters:APA.getSaveOrderParams(),onSuccess:APA.saveOrderCallback,onFailure:APA.ajaxFailureCallback})},getSaveOrderParams:function(){var a="";if(APA.virtual){a+=Object.toQueryString({orderReferenceId:APA.orderReferenceId});if($("checkout-agreements")){a+="&"+Form.serialize($("checkout-agreements"))}}else{a=Form.serialize($("co-shipping-method-form"));if($("checkout-agreements")){a+="&"+Form.serialize($("checkout-agreements"))}}if(APA.reloaded){a+="&"+Object.toQueryString({reloaded:1})}a.save=true;return a},isMobileDevice:function(){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(navigator.userAgent||navigator.vendor||window.opera)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test((navigator.userAgent||navigator.vendor||window.opera).substr(0,4))},initialize:function(c,a,d,g,f,e,b){return Object.extend(APA,{sellerId:c,orderReferenceId:a,live:d,virtual:g,urls:Object.extend({login:null,pay:null,checkout:null,saveShipping:null,saveShippingMethod:null,saveOrder:null,success:null,failure:null},f),layers:Object.extend({payButtons:".payButtonWidget",loginButtons:".loginButtonWidget",addressBook:"addressBookWidgetDiv",wallet:"walletWidgetDiv",shippingMethod:"shippingMethodWidgetDiv",review:"reviewWidgetDiv"},e),design:Object.extend({addressBook:{size:{width:"440px",height:"260px"}},wallet:{size:{width:"440px",height:"260px"}},payButton:{type:"PwA"},loginButton:{type:"LwA"}},b)})},setup:function(b,a){return Object.extend(APA,{sellerId:b,orderReferenceId:typeof a.orderReferenceId=="undefined"?null:a.orderReferenceId,language:typeof a.language=="undefined"?null:a.language,live:typeof a.live=="undefined"?true:a.live,popup:typeof a.popup=="undefined"?true:a.popup,virtual:typeof a.virtual=="undefined"?false:a.virtual,layers:Object.extend({payButtons:".payButtonWidget",loginButtons:".loginButtonWidget",addressBook:"addressBookWidgetDiv",wallet:"walletWidgetDiv",shippingMethod:"shippingMethodWidgetDiv",review:"reviewWidgetDiv"},a.layers),urls:Object.extend({login:null,pay:null,checkout:null,saveShipping:null,saveShippingMethod:null,saveOrder:null,success:null,failure:null},a.urls),design:Object.extend({responsive:true,addressBook:{size:{width:"440px",height:"260px"}},wallet:{size:{width:"440px",height:"260px"}},payButton:{type:"PwA"},loginButton:{type:"LwA"}},a.design)})}};
lib/OffAmazonPaymentsService/Client.php CHANGED
@@ -62,9 +62,17 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
62
  */
63
  public function __construct($config = null)
64
  {
65
- iconv_set_encoding('output_encoding', 'UTF-8');
66
- iconv_set_encoding('input_encoding', 'UTF-8');
67
- iconv_set_encoding('internal_encoding', 'UTF-8');
 
 
 
 
 
 
 
 
68
 
69
  $this->_merchantValues = OffAmazonPaymentsService_MerchantValuesBuilder::create($config)->build();
70
  $this->_httpRequestFactory = new OffAmazonPayments_HttpRequest_Impl_HttpRequestFactoryCurlImpl($this->_merchantValues);
62
  */
63
  public function __construct($config = null)
64
  {
65
+ if (function_exists('iconv') && PHP_VERSION_ID < 50600)
66
+ {
67
+ // These are settings that can be set inside code
68
+ iconv_set_encoding('output_encoding', 'UTF-8');
69
+ iconv_set_encoding('input_encoding', 'UTF-8');
70
+ iconv_set_encoding('internal_encoding', 'UTF-8');
71
+ }
72
+ elseif (PHP_VERSION_ID >= 50600)
73
+ {
74
+ ini_set('default_charset', 'UTF-8');
75
+ }
76
 
77
  $this->_merchantValues = OffAmazonPaymentsService_MerchantValuesBuilder::create($config)->build();
78
  $this->_httpRequestFactory = new OffAmazonPayments_HttpRequest_Impl_HttpRequestFactoryCurlImpl($this->_merchantValues);
package.xml CHANGED
@@ -1,23 +1,29 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Creativestyle_AmazonPayments</name>
4
- <version>1.7.4</version>
5
  <stability>stable</stability>
6
- <license uri="http://creativecommons.org/licenses/by-nd/4.0/">Creative Commons Attribution-NoDerivatives 4.0 International</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Integration of your Magento shop with Login and Pay with Amazon service</summary>
10
  <description>This extension provides an official integration of your Magento store with Login and Pay with Amazon service. It helps your customers shop quickly, safely and securely. Your customers can pay on your website without re-entering their payment and address details. All Amazon transactions are protected by Amazon's A-to-z Guarantee.</description>
11
- <notes>ADDED: missing payment cancellation functions&#xD;
12
- ADDED: Login with Amazon button on the customer registration page&#xD;
13
- IMPROVED: retrieving shipping address during the checkout&#xD;
14
- IMPROVED: disable Amazon button for virtual orders when Login is disabled&#xD;
15
- FIXED: issue with placing virtual orders in sandbox mode&#xD;
16
- FIXED: closing order reference on completed capture</notes>
 
 
 
 
 
 
17
  <authors><author><name>creativestyle GmbH</name><user>creativestyle</user><email>amazon@creativestyle.de</email></author></authors>
18
- <date>2015-09-09</date>
19
- <time>17:44:27</time>
20
- <contents><target name="magecommunity"><dir name="Creativestyle"><dir name="AmazonPayments"><dir name="Block"><file name="Abstract.php" hash="4c17928d8e3ac0b779c74ab5a46ef4cd"/><dir name="Adminhtml"><file name="CredentialsValidator.php" hash="bb62c178c7bba1dd30fa16f22394ec85"/><dir name="Debug"><dir name="Section"><file name="Table.php" hash="f6947e99e982164a220e3d82fa0f988f"/></dir><file name="Section.php" hash="a249d2fedeaa5e485e40ffaeeb0335c6"/></dir><file name="Debug.php" hash="cc798f2987cc0dffc755a88988b74912"/><file name="Info.php" hash="be764b1856eccc2b3070a1ea4cfe57f7"/><file name="IpnUrl.php" hash="f9a516356c4c9b98e02eb3761ad5bf90"/><dir name="Log"><file name="Abstract.php" hash="02887066c2d6973141dff769b385d8fa"/><dir name="Api"><file name="Grid.php" hash="8d072ba9ce4be99222c03a26680d51eb"/><file name="View.php" hash="eb30544643fa9571a454a763111d0113"/></dir><file name="Api.php" hash="5ea0736c83de5feb01df0a3ec4db4d80"/><dir name="Exception"><file name="Grid.php" hash="3c3decb0a90638d5e2b1617426ec9437"/><file name="View.php" hash="cae17d2a2d5716e8dde1c6662397131e"/></dir><file name="Exception.php" hash="c35dafcaf89ca709394341394862f4cf"/><dir name="Ipn"><file name="Grid.php" hash="74bb51ab562b09d42bd9ced6d6609ae1"/><file name="View.php" hash="6ab63414642658e95258a73a143e6955"/></dir><file name="Ipn.php" hash="a2225b081ccb354bfe94b4a646b0d521"/><dir name="View"><file name="Abstract.php" hash="0a4c977a1f89622148bdc6acc037fc1f"/></dir></dir><dir name="Renderer"><file name="Timestamp.php" hash="190325613c20e2cf97adc28950658e99"/></dir><dir name="Sales"><file name="Order.php" hash="45a5ee919501a2bf26160d38dafccd44"/></dir></dir><dir name="Button"><file name="Js.php" hash="6081c66a769b6db8a7f607e6f60365af"/></dir><dir name="Checkout"><file name="Abstract.php" hash="db5cf0b3d9dd37ad4552987b9df5e09c"/><file name="Js.php" hash="0e5ba9b3f4ae06139a084816c04a05a3"/><file name="Notice.php" hash="3bd2869322fac80a80436f8e2daa8d70"/><file name="SandboxToolbox.php" hash="047b1bfde3f5469195b9a7ccfee3f16d"/></dir><file name="Checkout.php" hash="6620fc17c1c86deac47709664d6a93f7"/><dir name="Js"><file name="Interface.php" hash="11827746ff821b4cbda1ad041e30321e"/></dir><file name="Js.php" hash="8610dddee84cda450c4874e0fd93b5f5"/><dir name="Login"><file name="Abstract.php" hash="b84dfbbe66bbee39a547d33e856b4a8d"/><dir name="Account"><file name="Confirm.php" hash="ae8123a65a717a0046aaf1d9dc21f878"/><file name="Update.php" hash="8fdadae9294b17fbb0989f8d0e2016a4"/></dir><file name="Button.php" hash="bad55de20f480d53a15ddedd551ff6dd"/><file name="Js.php" hash="2d144b27681c48f2adfa8cd0fdd5d31e"/><file name="Redirect.php" hash="8634cf4f6bf792006e4ab7674b758e5c"/></dir><dir name="Onepage"><file name="Button.php" hash="b122db0163e8580f42679f13a3a45726"/></dir><dir name="Pay"><file name="Abstract.php" hash="a64c0c8a409a5286bf5c0a6bd8596e80"/><file name="Button.php" hash="b76cbc47c91b88ceb9fc1fde609fa2dc"/></dir><dir name="Payment"><file name="Info.php" hash="c6285a5688834b456765317d3471bf2a"/></dir></dir><dir name="Exception"><dir name="InvalidStatus"><file name="Recoverable.php" hash="dc4d8857cf1841bb56f6da11cf92e99e"/></dir><file name="InvalidStatus.php" hash="614d45747601dea035ff2a3faadd7e18"/></dir><file name="Exception.php" hash="ca655a29842b38dd2ebf438208a6c70c"/><dir name="Helper"><file name="Data.php" hash="978766ef00217f5362773ff59d9967ab"/><file name="Debug.php" hash="3749831ab7f268051fd592277f02bf0c"/></dir><dir name="Model"><dir name="Api"><file name="Abstract.php" hash="1814fcd0d61599f15d808d9c2990ebe4"/><file name="Advanced.php" hash="0f5a3f480da20a2f8253f9b78c78f9dd"/><file name="Ipn.php" hash="e672342ca8b1f1f7493e42b9656aeabe"/><file name="Login.php" hash="d9297e66749c6930a1010a5babdfde14"/></dir><file name="Checkout.php" hash="593935995a788c113d14fbba9bce9dc5"/><file name="Config.php" hash="8f4d52802cec898fa79df16cb196195d"/><dir name="Log"><file name="Collection.php" hash="13d71847c4e164af18636a3fe5bf975b"/></dir><file name="Logger.php" hash="0821a7d8ddeea993fe3ad9495ef6f9d9"/><dir name="Lookup"><file name="Abstract.php" hash="443bbef12f4e7c896e54cf0b7463e04e"/><file name="Authentication.php" hash="56e12ebde89bb29b59ac1153be4b10cc"/><file name="AuthorizationMode.php" hash="b26806dc71de6b55bc37b20a1b804364"/><dir name="Design"><dir name="Button"><dir name="Color"><file name="LoginPay.php" hash="e9a469e82c7805782cf7694c4d50af7a"/></dir><file name="Color.php" hash="81a33471dfefb27897f7b1ff19749671"/><dir name="Size"><file name="LoginPay.php" hash="6cdf3d3633617994783a38f30add86fe"/></dir><file name="Size.php" hash="7c73a97a0fa3f4c6a73b838c0594ad5c"/><dir name="Type"><file name="Login.php" hash="44e852189b0305bbe4cc38848316d4e6"/><file name="Pay.php" hash="5e6f65d1e355ed265787b28b12c6e7a6"/></dir></dir></dir><file name="Frequency.php" hash="5115fb39b48781e5e97f9b62414a72cc"/><file name="IpnActive.php" hash="b73000f5bfc1e26b80911e125e9eec46"/><file name="Language.php" hash="6091a70bddec2c2a4812fff3e8cd09ca"/><file name="PaymentAction.php" hash="6d0c15996ec3caf112d88e07ea703bb4"/><file name="Region.php" hash="8f5cc8ab970aa165e16085368b320f89"/></dir><file name="Observer.php" hash="11bffc64bd85e3e8c353cb2b1ada3530"/><dir name="Payment"><file name="Abstract.php" hash="f42840ad08ec067bddc37fe5aec3f96a"/><dir name="Advanced"><file name="Sandbox.php" hash="10e80bd587f2d27fc97bb6e595936b82"/></dir><file name="Advanced.php" hash="15c5dde1d3a82a9bdf01e1681c47ec3b"/></dir><dir name="Processor"><file name="Ipn.php" hash="515c793d4bfd1cf2ce5c2bcc4e52a0a0"/><file name="Order.php" hash="285b24f298b08d6801d69cf13e8aebcf"/><file name="Payment.php" hash="5e3493b085ee26031943cd13cbdad63f"/><file name="TransactionAdapter.php" hash="2a9e7dee746f1465c7cde39afafeff9e"/></dir><dir name="Service"><file name="Login.php" hash="99f99ff273e0cb6dea7b2053702bf323"/><file name="Quote.php" hash="d566370281e690ca31f3ddd47c21ef1d"/></dir><file name="Simulator.php" hash="553bb0c0ca3c74202083b366f4c33e9a"/><dir name="System"><dir name="Config"><dir name="Backend"><dir name="DataPolling"><file name="Cron.php" hash="c3d3009775702bee14da3695f0d41f68"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="DebugController.php" hash="28e0ddedf23912140158d100339bdbe8"/><file name="DocumentationController.php" hash="4e214386e032b2e513dda5a26344fd87"/><dir name="Log"><file name="ApiController.php" hash="e0a9181f57223d3ba722982572c1d003"/><file name="ExceptionController.php" hash="5daaa04ec6479396edfb1f62910f4ad3"/><file name="IpnController.php" hash="f00870c68a6b18d460c59d0b76d4a67d"/></dir><file name="OrderController.php" hash="cae5700331ca6aa6f26b78314c3507d9"/><file name="SystemController.php" hash="8f93ad1e95d4d4b86af77a1fd6b10f87"/></dir><dir name="Advanced"><file name="CheckoutController.php" hash="225fcb638688f438ae44e389825fa761"/><file name="IpnController.php" hash="78277323844f97a30b6531aa331eef86"/><file name="LoginController.php" hash="2d6d0d201c1ff4bcdeb9a1c19372a888"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="2dc1b70997469f8f0cd6a80eff845842"/><file name="config.xml" hash="1c80bd9625c426a103dca0384562dab3"/><file name="system.xml" hash="9f76f8660c04b5796688275341d719bb"/></dir><dir name="sql"><dir name="amazonpayments_setup"><file name="mysql4-install-1.0.0.php" hash="d4681b9a39905cc9e9dcc660688dea85"/><file name="mysql4-install-1.6.2.php" hash="6bb2b8656a3c6b2b517b88ca98ff84de"/><file name="mysql4-upgrade-1.1.6-1.2.0.php" hash="27f8e108bac4268d3c17e812b413dbbc"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="amazonpayments.xml" hash="4bc12228bba39bd925ed129d7cf64258"/></dir><dir name="template"><dir name="creativestyle"><dir name="amazonpayments"><dir name="advanced"><file name="documentation.phtml" hash="af3ae6ebce4712dd8fb972bef508ca55"/><dir name="log"><dir name="api"><file name="view.phtml" hash="92e2a91aa6f25e20fe8e89bad751e8cf"/></dir><dir name="exception"><file name="view.phtml" hash="c5d01f6de86e47d4da5dfabd60b1b382"/></dir><file name="js.phtml" hash="eb1d2098440a0bac2a6f5b959afa3693"/><dir name="notification"><file name="view.phtml" hash="31d893106f7c7c7f94f05d5cafa36440"/></dir></dir></dir><dir name="debug"><dir name="section"><file name="table.phtml" hash="f4bb8e35b3608cf0639407a3461c3717"/></dir><file name="section.phtml" hash="1472da0e9f07b5583a02e327483d4d75"/></dir><file name="debug.phtml" hash="9748d4fe92986f36ad47ae5b61fc4883"/><file name="info.phtml" hash="8f58e70d3d5974c60d182450b424e521"/><file name="init.phtml" hash="ba9d53045077e63b4e6c25c6b7bb685c"/><dir name="payment"><file name="info.phtml" hash="1604a1ca8c640748023859dee07f1182"/><dir name="pdf"><file name="info.phtml" hash="1fb213f3fcc3aeecaa6305c07cff3b73"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="amazonpayments.xml" hash="3b927d247951fb675e0aa743fcff36a5"/></dir><dir name="template"><dir name="creativestyle"><dir name="amazonpayments"><dir name="button"><file name="js.phtml" hash="3142375878bb43893393ee3499ad9804"/></dir><dir name="checkout"><file name="capture_notice.phtml" hash="f9c75cd05a596d0a16c55f0169b4ee6c"/><file name="js.phtml" hash="e0f950d4b6c1bd8cf790c90527b51109"/><dir name="review"><file name="button.phtml" hash="5fa9b038cc1e91a8203b163411b8bf20"/></dir><file name="sandbox_toolbox.phtml" hash="b1a346f095d83223914e65024f56d19f"/><file name="shipping_method.phtml" hash="852008f89fc32c7af6c250cafdde5f51"/></dir><file name="checkout.phtml" hash="6873b347a7e10b3b5c35fda1b48345b1"/><file name="js.phtml" hash="13581f0bcdf7c39da46be530892e8183"/><dir name="login"><dir name="button"><file name="account_login.phtml" hash="0ce9b9d891af3f6c5b1c83a17d311e6b"/></dir><file name="button.phtml" hash="b5d66280337ecc895ae9a2bc48c469e4"/><dir name="form"><file name="account_confirm.phtml" hash="cff4c9f656b2e790bd65723d4e2042b9"/><file name="account_update.phtml" hash="64fdc50df3b3c49384d5d50a1da82d4d"/></dir><file name="js.phtml" hash="9d542e726fe51739b72fc2e509edadd8"/><file name="logout.phtml" hash="e8b6f4d39047903e4ee8d481ba59543b"/><file name="redirect.phtml" hash="8d395ab25504c0cdb928cf93e684b868"/></dir><dir name="onepage"><file name="button.phtml" hash="95e053ca57f36df23180af93b77a6557"/></dir><dir name="pay"><file name="button.phtml" hash="dfcccab45794c81d2d3ca52f709019d4"/></dir><dir name="payment"><file name="info.phtml" hash="3631896707e596d9675f526a7d021617"/><dir name="pdf"><file name="info.phtml" hash="69549bf3340c19d62f42a556f13e8a1e"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Creativestyle_AmazonPayments.xml" hash="3d30f68b24829494a2a66164eba0e5f7"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Creativestyle_AmazonPayments.csv" hash="44b6d7e9ac51526a199590aa151bb551"/><dir name="template"><dir name="email"><file name="amazon_payments_failed.html" hash="ad694ba24051f779698d483bc32d9b75"/></dir></dir></dir><dir name="en_GB"><file name="Creativestyle_AmazonPayments.csv" hash="528785a3492164ef628b8dd7f938bd4d"/><dir name="template"><dir name="email"><file name="amazon_payments_failed.html" hash="1a933579acb1fbb3d78ae47ca990521b"/></dir></dir></dir><dir name="de_DE"><file name="Creativestyle_AmazonPayments.csv" hash="5419bca832db91a0f1463fe26fa2d62c"/><dir name="template"><dir name="email"><file name="amazon_payments_failed.html" hash="1cf388c6d45738c2e70c26859e1b058f"/></dir></dir></dir><dir name="es_ES"><file name="Creativestyle_AmazonPayments.csv" hash="14ac8865152bd798bcb16623292fa4b6"/></dir><dir name="fr_FR"><file name="Creativestyle_AmazonPayments.csv" hash="0b9a0075698e4e8d4e67a68879d2fa36"/></dir><dir name="it_IT"><file name="Creativestyle_AmazonPayments.csv" hash="ffa3e0ca21b53775df15776f371855e9"/></dir></target><target name="mage"><dir name="js"><dir name="creativestyle"><file name="apa_checkout.min.js" hash="c1aabf2578d462973c0debfebea7162a"/><file name="apa_sandbox_toolbox.min.js" hash="a8ece5772d3c64147e01d5e9e686ab13"/><dir name="vendors"><file name="prism.js" hash="c700de3d980f7ef1e056dc5400acfd44"/></dir><file name="apa_checkout.js" hash="c0e4c26f75855f241841fd455c5f90f5"/></dir></dir></target><target name="magelib"><dir name="OffAmazonPayments"><dir name="HttpRequest"><file name="HttpException.php" hash="d2feba35467baa6ff61503bb15d5f016"/><file name="IHttpRequest.php" hash="7c7d44deffb15b2db161d8dfc585c4d2"/><file name="IHttpRequestFactory.php" hash="02c9cfe067cd0ae40f14704d58fa2098"/><dir name="Impl"><file name="HttpRequestCurlImpl.php" hash="815a03cc4b5fc1222e0bc9b9f85f3428"/><file name="HttpRequestFactoryCurlImpl.php" hash="09140d0c9518e0e7c1bffb8bd0c98310"/></dir></dir><file name="Model.php" hash="778dfe809587f010352d9ccd2bed8106"/><file name="OffAmazonPaymentsServiceUtils.php" hash="827a9e9f2b04652736406b1cd9672a2c"/></dir><dir name="OffAmazonPaymentsNotifications"><file name="Client.php" hash="a8bfa462188eb5193985e984ff503b04"/><dir name="Impl"><file name="Certificate.php" hash="33aec53879fff368b0f6f52ce7f79f13"/><file name="IpnNotificationParser.php" hash="3f4e203c89d23c2971214a7e0713f6a9"/><file name="Message.php" hash="6cffc2f4b4c09a8411572cdb7ddcc83a"/><file name="OpenSslVerifySignature.php" hash="621bb7e9660d079f53b6ac567fd361e7"/><file name="SnsMessageParser.php" hash="c6d1b0bfa852441b4ddfdc25cf624c9d"/><file name="SnsMessageValidator.php" hash="7291f2b91f0dc9ace62752c37b69d15f"/><file name="VerifySignature.php" hash="b7c3089f35fba596e16f6f39f7029908"/><file name="XmlNotificationParser.php" hash="a6b6ff48de5cee20db383a2a6c953092"/></dir><file name="Interface.php" hash="3930f956058657059e2ea705fc43333d"/><file name="InvalidCertificateException.php" hash="4711c0ea7b574a8ab3fb04623b2f7453"/><file name="InvalidMessageException.php" hash="c9608c6ecfafeae2db9db9e8786f2a15"/><dir name="Model"><file name="AuthorizationDetails.php" hash="c5e85494dd4b21c49c1d786bf38879da"/><file name="AuthorizationNotification.php" hash="490fd1da11270f9af20a6ca0d87b8149"/><file name="BillingAgreement.php" hash="00f24d00547ddb3320a20f77132feb0e"/><file name="BillingAgreementLimits.php" hash="e972154534547bde777133c2de1e835f"/><file name="BillingAgreementNotification.php" hash="c5ee60508326e840ce02765b175897aa"/><file name="BillingAgreementStatus.php" hash="68da18941f6cc8b17a9157c83e550c0c"/><file name="CaptureDetails.php" hash="f8702f3d5d5afd595814182f847367c5"/><file name="CaptureNotification.php" hash="8d4da47b23888f3cfd94fe9d217c46da"/><file name="IdList.php" hash="4d77007c611ba2a990179ecf506d4ac7"/><file name="IpnNotificationMetadata.php" hash="802e724b1cc35eae31e4aa9288446b8f"/><file name="MerchantRegistrationDetails.php" hash="d4de7689d8e216567abd710dde7ef4ed"/><file name="NotificationImpl.php" hash="17205cb366af769c0563d80ee82de067"/><file name="NotificationMetadataImpl.php" hash="27bdabd2ae04ab753e60b0ab3042859c"/><file name="OrderItemCategories.php" hash="ac5edd66a87e28f1e0a4be758e3d7b8c"/><file name="OrderReference.php" hash="3ff8f8729cc3e398823061b73d8d2789"/><file name="OrderReferenceNotification.php" hash="4b6a0e68f77ff7b710fe00916d5b0546"/><file name="OrderReferenceStatus.php" hash="e09fc390fb5c21afd4764c41dd7418c0"/><file name="OrderTotal.php" hash="ce3157db8b593588c9405030968176a5"/><file name="Price.php" hash="cff064218bbb2d56f463ab489dc907cd"/><file name="ProviderCreditDetails.php" hash="d355185842eb0816de151fb535b14edc"/><file name="ProviderCreditNotification.php" hash="7ddc5d80dee797893171237ecabf10e2"/><file name="ProviderCreditReversalDetails.php" hash="a789bbf3c7074bc800053967e64286c7"/><file name="ProviderCreditReversalNotification.php" hash="56479587ee330013bdffe17719d0edec"/><file name="ProviderCreditReversalSummary.php" hash="577971d363b95fd7a73e8cd4995a240c"/><file name="ProviderCreditReversalSummaryList.php" hash="05ae0f9769e4c46e5c3ba3f9907ae576"/><file name="ProviderCreditSummary.php" hash="4403e12b73867b58021655df3fcf6720"/><file name="ProviderCreditSummaryList.php" hash="667167ed6a427d71086aa4ef8dabc5f5"/><file name="RefundDetails.php" hash="ae08c0447ec12996a465772d55f2c28f"/><file name="RefundNotification.php" hash="fb29285214205fd09c4f9ac7964c1a07"/><file name="SellerBillingAgreementAttributes.php" hash="691b120995ac30f3f542c3ec9cd6c0d6"/><file name="SellerOrderAttributes.php" hash="896cf700231529f39e903d4614579a85"/><file name="SnsNotificationMetadata.php" hash="df453726f714f7ea50cc04b6093123eb"/><file name="SolutionProviderMerchantNotification.php" hash="77e4152a922f1a26582e46546387943d"/><file name="SolutionProviderOption.php" hash="df8fbbb1ad2fef1796e3b42a9a417a64"/><file name="SolutionProviderOptions.php" hash="624d2f4efd3a32eab8baf8628efda4ef"/><file name="Status.php" hash="8726fde00e0f97595115866c1a8000dd"/></dir><file name="Notification.php" hash="562b2a4eb6e292b6df4db3112391ab55"/><file name="NotificationMetadata.php" hash="07f94bf3a41ed0c72f387e900260c48a"/></dir><dir name="OffAmazonPaymentsService"><file name="Client.php" hash="284bf51c42442c51a62e8d76ecd900ef"/><file name="Environments.php" hash="1a9ff744e131c19f5bd0d58c5aa578ab"/><file name="Exception.php" hash="eee23053020a397cf082a28f41001284"/><file name="Interface.php" hash="b681a546f2a5e3690e5e04f9c75ca8a5"/><file name="MerchantValues.php" hash="2cca67c2b1b0557e5a63d4ef35950172"/><file name="MerchantValuesBuilder.php" hash="a6328566f8f5ee48a8b054d8f02897e1"/><dir name="Model"><file name="Address.php" hash="6840237ae7035912f95020ff6d580033"/><file name="AuthorizationDetails.php" hash="159edfb213e12b7ecb847c103c70c5de"/><file name="AuthorizeOnBillingAgreementRequest.php" hash="8b0e8d6ffa94b1f18546b7554ec042ed"/><file name="AuthorizeOnBillingAgreementResponse.php" hash="8770715da01743adeafc25d54bb0c1d9"/><file name="AuthorizeOnBillingAgreementResult.php" hash="a73c77f8fce673257e2dca072ad6fab6"/><file name="AuthorizeRequest.php" hash="08bdab4fe2896f4a2b808c6e8abfeeba"/><file name="AuthorizeResponse.php" hash="0ae054040c36e7362683146b537f551b"/><file name="AuthorizeResult.php" hash="e7dfd388200467e736ff3b7d11c8d2bf"/><file name="BillingAddress.php" hash="93f82f074b62e8b1abf25ae8ae44b676"/><file name="BillingAgreementAttributes.php" hash="e52a2c92f92f7081ac742e24f70385df"/><file name="BillingAgreementDetails.php" hash="359f9bd686d21242f2e27feb8b3379b2"/><file name="BillingAgreementLimits.php" hash="66f84e67052b91092867496d11a28763"/><file name="BillingAgreementStatus.php" hash="adcf9379fb2f6fa88a1d8e230d8cf101"/><file name="Buyer.php" hash="cb691abf757d54025ac43964849dd5fd"/><file name="CancelOrderReferenceRequest.php" hash="ef06ecd8f05a4c032aa28f5b5a132d05"/><file name="CancelOrderReferenceResponse.php" hash="004c4e3a21ea1dc8e11bbba3d733b3ca"/><file name="CancelOrderReferenceResult.php" hash="74b7ad1facdf31263e9bb55544303180"/><file name="CaptureDetails.php" hash="4f360221d888d50d92e7f2ea20b5b54f"/><file name="CaptureRequest.php" hash="5b976a76214f870964d49cf104a50b30"/><file name="CaptureResponse.php" hash="7ece74f93f362d31bc16f9fb7bf2b270"/><file name="CaptureResult.php" hash="e0fccf0fe27efd36d822ddcdaefe97ac"/><file name="CloseAuthorizationRequest.php" hash="cb0e2113e9e36b7b133b539e5ff99c50"/><file name="CloseAuthorizationResponse.php" hash="99be7612c9effdac53fb0bc225a13eb1"/><file name="CloseAuthorizationResult.php" hash="6d77eea8924d2ef6a3acd0dabb3f9f76"/><file name="CloseBillingAgreementRequest.php" hash="89f82b30dd0902faa6feb3a57dfe24cb"/><file name="CloseBillingAgreementResponse.php" hash="1bda191dc9a8b2b1a14b6e11772f05cf"/><file name="CloseBillingAgreementResult.php" hash="f926f5d65d95323647129605a26037ae"/><file name="CloseOrderReferenceRequest.php" hash="b8b592bdc71a4046efead52196f8073c"/><file name="CloseOrderReferenceResponse.php" hash="137da00395052b25099de3a0d152887d"/><file name="CloseOrderReferenceResult.php" hash="81e21f75ae477f07a9b913e1ac2bd89d"/><file name="ConfirmBillingAgreementRequest.php" hash="ab524aa1cc6e51a8b483e4f96b7e1e02"/><file name="ConfirmBillingAgreementResponse.php" hash="0639de39ba58e6c2b806a84b43dc31d3"/><file name="ConfirmBillingAgreementResult.php" hash="42456915a3efa4ccd774a1d5d3a05307"/><file name="ConfirmOrderReferenceRequest.php" hash="632a4b8414aac550fc0ec59a83737be7"/><file name="ConfirmOrderReferenceResponse.php" hash="fb0c329ffa1a54e4c15c531b58561f6f"/><file name="Constraint.php" hash="e46dc3d18486b6639ea5b8f52a92cfdc"/><file name="Constraints.php" hash="cb983d71bda42bdda767ffc9f4feeafc"/><file name="CreateOrderReferenceForIdRequest.php" hash="b1f4e96f1392c427228f5799edc5dc64"/><file name="CreateOrderReferenceForIdResponse.php" hash="630cb4812997fa7c067f393dfb5e2f48"/><file name="CreateOrderReferenceForIdResult.php" hash="4abf7af5eb56058c17996406a877f427"/><file name="Destination.php" hash="737777909588915788398ab86f0de1de"/><file name="Error.php" hash="bb8b6bb6d3c778fc4e1d0a346b5fa03a"/><file name="ErrorResponse.php" hash="8804c6f39d9a0bdcbd76260eba9d261d"/><file name="GetAuthorizationDetailsRequest.php" hash="67d5a478c01fbbfba420dff3cf2098dc"/><file name="GetAuthorizationDetailsResponse.php" hash="0c9fe935bcb953cc9cd9e11bab32b5b2"/><file name="GetAuthorizationDetailsResult.php" hash="02ac4fa6533ccfd705c543160165c31d"/><file name="GetBillingAgreementDetailsRequest.php" hash="761cbdc44a4ac1e28b22d01f7a484b76"/><file name="GetBillingAgreementDetailsResponse.php" hash="061084469683253d1d76d5c881e5062d"/><file name="GetBillingAgreementDetailsResult.php" hash="5a585ad373b11b806ba320bcd988f71b"/><file name="GetCaptureDetailsRequest.php" hash="69252be80c32d911f2ff664904375e7d"/><file name="GetCaptureDetailsResponse.php" hash="5323ed86174064bb1122187457440861"/><file name="GetCaptureDetailsResult.php" hash="962ef27de2778c9ccde55d848b8fa649"/><file name="GetOrderReferenceDetailsRequest.php" hash="edfea06a629f298ab134229d35fef319"/><file name="GetOrderReferenceDetailsResponse.php" hash="4955733fe736a9f51e0bd6823b8bf74b"/><file name="GetOrderReferenceDetailsResult.php" hash="f9ee3738bddff51c6bd545028d275348"/><file name="GetProviderCreditDetailsRequest.php" hash="e51201c7d39935c4fa8da96e822b7075"/><file name="GetProviderCreditDetailsResponse.php" hash="e312b54192343e16230b7436b101766a"/><file name="GetProviderCreditDetailsResult.php" hash="9f0af601e8a716e4e5af3802d8952fe4"/><file name="GetProviderCreditReversalDetailsRequest.php" hash="cf74576ef8dc02e34244aca962d854b3"/><file name="GetProviderCreditReversalDetailsResponse.php" hash="a869c2695416514834c83890d3b080f9"/><file name="GetProviderCreditReversalDetailsResult.php" hash="33f1980d1632034eee8396c6286b5320"/><file name="GetRefundDetailsRequest.php" hash="7ab0f7d756a59a284ffd0ffc361fee42"/><file name="GetRefundDetailsResponse.php" hash="4847a7513f69d3f81c306d26ad7c5291"/><file name="GetRefundDetailsResult.php" hash="0c24e3c8e95f4ee10f5c4e9dd07518bf"/><file name="IdList.php" hash="25fd15394669b4721bdd0e4d367d534f"/><file name="OrderItemCategories.php" hash="995db32a92601555ee9a7550d1daae7e"/><file name="OrderReferenceAttributes.php" hash="78e1735d8fc99c5676d894564d6b88c7"/><file name="OrderReferenceDetails.php" hash="4e9365808e09fe1b1407348c9d05ca41"/><file name="OrderReferenceStatus.php" hash="5c21e44d991a24ab2527e491c435d54c"/><file name="OrderTotal.php" hash="2ff8e8ccc9c7266d72f534485ccd01bf"/><file name="ParentDetails.php" hash="99f7062b4764166637dfc44b4fe4788c"/><file name="Price.php" hash="4ac8de3791146a17a237a914c9f762a6"/><file name="ProviderCredit.php" hash="8f2f21ac5c0dba73e64a35cc7a61fbbe"/><file name="ProviderCreditDetails.php" hash="d9057efbe528a1571eda4252b8ad1813"/><file name="ProviderCreditList.php" hash="4a3eeae90b5a1ed09a528f5254b968a5"/><file name="ProviderCreditReversal.php" hash="07c1d7959a7cfb94164846c276b43ce7"/><file name="ProviderCreditReversalDetails.php" hash="ebfbf919b4a399213c7e312e59873e43"/><file name="ProviderCreditReversalList.php" hash="8eb64497a6a233535c8b0ca55591d06b"/><file name="ProviderCreditReversalSummary.php" hash="7646c582ea5fb3a46dcb09637f7daf01"/><file name="ProviderCreditReversalSummaryList.php" hash="cae281ddee9f766d1d5bf350e238037a"/><file name="ProviderCreditSummary.php" hash="69bc18eefe644e6b851a6daf7e6dfa8a"/><file name="ProviderCreditSummaryList.php" hash="751812d8903ba883036d1bc381c37667"/><file name="RefundDetails.php" hash="b53e480fe8e8e5d96a4b6a0df431e5ac"/><file name="RefundRequest.php" hash="665585551aba39532fe3352abb4859b3"/><file name="RefundResponse.php" hash="fadbc4ad5313395a48e38b1c0502c85a"/><file name="RefundResult.php" hash="9ddad34dd53edfd156651b021bc5137a"/><file name="ResponseHeaderMetadata.php" hash="382fe7bd666eea293b729c5d6c79348f"/><file name="ResponseMetadata.php" hash="073748a20ecd8bddc240dd4c0a4a56b9"/><file name="ReverseProviderCreditRequest.php" hash="802a3709149add8fa192ce389b93c2ea"/><file name="ReverseProviderCreditResponse.php" hash="ff702a7def546f0c6216094f93095bd7"/><file name="ReverseProviderCreditResult.php" hash="84f3e78e1b8b1b47e6f8b92abee7704b"/><file name="SellerBillingAgreementAttributes.php" hash="308899b9e48a95f0b5d48d74a510c915"/><file name="SellerOrderAttributes.php" hash="35b62fe0e130207dfaa2caefa1dfe7ba"/><file name="SetBillingAgreementDetailsRequest.php" hash="347a6c85c5cc8394255efcb9c4b57d52"/><file name="SetBillingAgreementDetailsResponse.php" hash="92299b3338dc7435149f17d8126f7518"/><file name="SetBillingAgreementDetailsResult.php" hash="7cb3e84e58fe2bbf163f8ac34de5eccf"/><file name="SetOrderReferenceDetailsRequest.php" hash="4cf2605f5188116a1526d463638aa768"/><file name="SetOrderReferenceDetailsResponse.php" hash="41720bdf965dcd759cc3278e01610530"/><file name="SetOrderReferenceDetailsResult.php" hash="4281a97da7865e47157c1d22c2094bfd"/><file name="Status.php" hash="28bd007e6c9747417a063e9941cc0dba"/><file name="ValidateBillingAgreementRequest.php" hash="d77beda441fd1688903e96a02fa4e643"/><file name="ValidateBillingAgreementResponse.php" hash="89658fd2a78d7dbb2997dae6ba169f7e"/><file name="ValidateBillingAgreementResult.php" hash="b9244d0496b0bbcfbf7628c775c17ca3"/></dir><file name="Model.php" hash="fafcb3a4318eb7bd9be5b69225187352"/><file name="RegionSpecificProperties.php" hash="f4e77cc63766b42fbef6ef1e07ec4402"/><file name="Regions.php" hash="4676d77db7dde345118e2a6fc021ce3f"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="creativestyle"><dir name="css"><file name="amazonpayments.css" hash="a1f07a48b8de6d1fa9391a4eed2f12be"/><file name="amazonpayments-highlight.css" hash="f6daf03c989ac56ad436300b5520f0df"/></dir><dir name="images"><file name="amazon-payments-advanced-creativestyle-logo.png" hash="bb507d0085dab135ac313b8068515620"/><file name="amazon-payments-advanced-creativestyle-header-logo.png" hash="1f17fc7a61f8aaf929000d1d87f7d943"/><file name="amazon-payments-advanced-creativestyle-header-logo-white.png" hash="4ce4ba0d8d210a26caa380217804e200"/><file name="amazon-payments-advanced-header.png" hash="60f587870fbdb1242368c8c3b553bd8c"/><file name="amazon-payments-advanced-section.png" hash="8bc620f345eb46c920c51875d4cfad7c"/><file name="logo_a-glyph_16.png" hash="44a3f5f0013cab34d26653eb48b989fc"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="creativestyle"><dir name="css"><file name="amazonpayments.css" hash="98669e803a468cc7e01d481ce1647a0e"/><file name="amazonpayments-widgets.css" hash="35704192aaeb204e407e8b853c118d16"/><file name="amazonpayments-responsive-widgets.css" hash="ffca5cdc8a4e0585946c78258044c471"/></dir><dir name="images"><file name="amazon-loading-large.gif" hash="5f6d83bf2b69ab73c7e48ec9b66d54db"/><file name="logo_a-glyph_1x.png" hash="5d44ca86985afbb2a47b9265053a456e"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="creativestyle"><dir name="css"><file name="amazonpayments-responsive-widgets.css" hash="389d23ee96bb5305f7ba5b616d930846"/></dir></dir></dir></dir></dir></target></contents>
21
  <compatible/>
22
- <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><extension><name>dom</name><min/><max/></extension><extension><name>curl</name><min/><max/></extension></required></dependencies>
23
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Creativestyle_AmazonPayments</name>
4
+ <version>1.7.6</version>
5
  <stability>stable</stability>
6
+ <license>Creative Commons Attribution-NoDerivatives 4.0 International</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Integration of your Magento shop with Login and Pay with Amazon service</summary>
10
  <description>This extension provides an official integration of your Magento store with Login and Pay with Amazon service. It helps your customers shop quickly, safely and securely. Your customers can pay on your website without re-entering their payment and address details. All Amazon transactions are protected by Amazon's A-to-z Guarantee.</description>
11
+ <notes># Improvements
12
+ - Added support for custom SSL CA bundle file
13
+ - Implemented automatic authentication experience
14
+ - Disable `Pay with Amazon` availability for zero-total orders
15
+ - Retrieving billing address during the checkout
16
+ - Added exception handling for missing amazon_user_id attribute
17
+ # Fixes
18
+ - Added support for SUPEE-6285 patch
19
+ - Added support for SUPEE-6788 patch
20
+ - Fixed calls to deprecated iconv functions in SDK library
21
+ - Fixed display errors for Magento RWD theme
22
+ </notes>
23
  <authors><author><name>creativestyle GmbH</name><user>creativestyle</user><email>amazon@creativestyle.de</email></author></authors>
24
+ <date>2016-02-28</date>
25
+ <time>14:02:17</time>
26
+ <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="amazonpayments.xml" hash="55ea010e1f14bcba0766e6a7c5a2f2e1"/></dir><dir name="template"><dir name="creativestyle"><dir name="amazonpayments"><dir name="advanced"><file name="documentation.phtml" hash="af3ae6ebce4712dd8fb972bef508ca55"/><dir name="log"><dir name="api"><file name="view.phtml" hash="2c2fcd6122b4481ad2cf8b7657f3f187"/></dir><dir name="exception"><file name="view.phtml" hash="c5d01f6de86e47d4da5dfabd60b1b382"/></dir><file name="js.phtml" hash="eb1d2098440a0bac2a6f5b959afa3693"/><dir name="notification"><file name="view.phtml" hash="31d893106f7c7c7f94f05d5cafa36440"/></dir></dir></dir><dir name="debug"><dir name="section"><file name="table.phtml" hash="f4bb8e35b3608cf0639407a3461c3717"/></dir><file name="section.phtml" hash="1472da0e9f07b5583a02e327483d4d75"/></dir><file name="debug.phtml" hash="9748d4fe92986f36ad47ae5b61fc4883"/><file name="info.phtml" hash="aceecad9cb8e2f105c20f07c5137498e"/><file name="init.phtml" hash="ba9d53045077e63b4e6c25c6b7bb685c"/><dir name="payment"><file name="info.phtml" hash="1604a1ca8c640748023859dee07f1182"/><dir name="pdf"><file name="info.phtml" hash="1fb213f3fcc3aeecaa6305c07cff3b73"/></dir></dir><file name="seller_central.phtml" hash="7c3ea854f8cdc4c6e095ee1f7684fb95"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="amazonpayments.xml" hash="bcbcd2f41ce44082d3cbccbe18c2a3c1"/></dir><dir name="template"><dir name="creativestyle"><dir name="amazonpayments"><dir name="button"><file name="js.phtml" hash="3142375878bb43893393ee3499ad9804"/></dir><dir name="checkout"><file name="capture_notice.phtml" hash="f9c75cd05a596d0a16c55f0169b4ee6c"/><file name="js.phtml" hash="e0f950d4b6c1bd8cf790c90527b51109"/><dir name="review"><file name="button.phtml" hash="5fa9b038cc1e91a8203b163411b8bf20"/></dir><file name="sandbox_toolbox.phtml" hash="b1a346f095d83223914e65024f56d19f"/><file name="shipping_method.phtml" hash="852008f89fc32c7af6c250cafdde5f51"/></dir><file name="checkout.phtml" hash="6873b347a7e10b3b5c35fda1b48345b1"/><file name="js.phtml" hash="13581f0bcdf7c39da46be530892e8183"/><dir name="login"><dir name="button"><file name="account_login.phtml" hash="0ce9b9d891af3f6c5b1c83a17d311e6b"/></dir><file name="button.phtml" hash="b5d66280337ecc895ae9a2bc48c469e4"/><dir name="form"><file name="account_confirm.phtml" hash="cff4c9f656b2e790bd65723d4e2042b9"/><file name="account_update.phtml" hash="64fdc50df3b3c49384d5d50a1da82d4d"/></dir><file name="js.phtml" hash="9d542e726fe51739b72fc2e509edadd8"/><file name="logout.phtml" hash="e8b6f4d39047903e4ee8d481ba59543b"/><file name="redirect.phtml" hash="8d395ab25504c0cdb928cf93e684b868"/></dir><dir name="onepage"><file name="button.phtml" hash="e37fe0d557754758389350dc5e5c49ba"/></dir><dir name="pay"><file name="button.phtml" hash="dfcccab45794c81d2d3ca52f709019d4"/></dir><dir name="payment"><file name="info.phtml" hash="3631896707e596d9675f526a7d021617"/><dir name="pdf"><file name="info.phtml" hash="69549bf3340c19d62f42a556f13e8a1e"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Creativestyle_AmazonPayments.xml" hash="3d30f68b24829494a2a66164eba0e5f7"/></dir></target><target name="magelocale"><dir name="de_DE"><file name="Creativestyle_AmazonPayments.csv" hash="0c68d642f35c5fd83725e642de95e5aa"/><dir name="template"><dir name="email"><file name="amazon_payments_failed.html" hash="1cf388c6d45738c2e70c26859e1b058f"/></dir></dir></dir><dir name="en_GB"><file name="Creativestyle_AmazonPayments.csv" hash="bb1ef61a6869894320e9510972a5c738"/><dir name="template"><dir name="email"><file name="amazon_payments_failed.html" hash="1a933579acb1fbb3d78ae47ca990521b"/></dir></dir></dir><dir name="en_US"><file name="Creativestyle_AmazonPayments.csv" hash="d2807fda0b3936b0ea1b2fca211b6e13"/><dir name="template"><dir name="email"><file name="amazon_payments_failed.html" hash="ad694ba24051f779698d483bc32d9b75"/></dir></dir></dir><dir name="es_ES"><file name="Creativestyle_AmazonPayments.csv" hash="fe03d17ec2628684172104e19968bddc"/></dir><dir name="fr_FR"><file name="Creativestyle_AmazonPayments.csv" hash="95393fb8b3f77b8f7e378cd137022b2c"/></dir><dir name="it_IT"><file name="Creativestyle_AmazonPayments.csv" hash="a2475fb2b804f214c4aa41d1b4e217b6"/></dir></target><target name="mage"><dir name="js"><dir name="creativestyle"><file name="apa_checkout.js" hash="c5a1febd0905c3c99934cb054bdf558e"/><file name="apa_checkout.min.js" hash="5f9843b9c8bcc26c5011322654f1d438"/><file name="apa_sandbox_toolbox.min.js" hash="a8ece5772d3c64147e01d5e9e686ab13"/><dir name="vendors"><file name="prism.js" hash="c700de3d980f7ef1e056dc5400acfd44"/></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="creativestyle"><dir name="css"><file name="amazonpayments.css" hash="db97912a183d743b89a5bdfc16a66e71"/><file name="amazonpayments-highlight.css" hash="f6daf03c989ac56ad436300b5520f0df"/></dir><dir name="images"><file name="amazon-payments-advanced-creativestyle-header-logo.png" hash="8591e03aeaa7cbc71a509443de35bfce"/><file name="amazon-payments-advanced-creativestyle-header-logo-white.png" hash="9552112bc27581249cb8e8de1bb91887"/><file name="amazon-payments-advanced-creativestyle-logo.png" hash="abc54550ae7d7a3e5c8a5cd0896d310d"/><file name="amazon-payments-advanced-header.png" hash="60f587870fbdb1242368c8c3b553bd8c"/><file name="amazon-payments-advanced-section.png" hash="8bc620f345eb46c920c51875d4cfad7c"/><file name="logo_a-glyph_16.png" hash="44a3f5f0013cab34d26653eb48b989fc"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="creativestyle"><dir name="css"><file name="amazonpayments.css" hash="ddb0874cb9525e573679cc6a5e8f375e"/><file name="amazonpayments-responsive-widgets.css" hash="ffca5cdc8a4e0585946c78258044c471"/><file name="amazonpayments-widgets.css" hash="35704192aaeb204e407e8b853c118d16"/></dir><dir name="images"><file name="amazon-loading-large.gif" hash="5f6d83bf2b69ab73c7e48ec9b66d54db"/><file name="logo_a-glyph_1x.png" hash="5d44ca86985afbb2a47b9265053a456e"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="creativestyle"><dir name="css"><file name="amazonpayments-responsive-widgets.css" hash="389d23ee96bb5305f7ba5b616d930846"/><file name="amazonpayments.css" hash="a39d769454a68e24b724b7555f2e7a15"/></dir><dir name="images"><file name="amazon-loading-large.gif" hash="5f6d83bf2b69ab73c7e48ec9b66d54db"/><file name="logo_a-glyph_1x.png" hash="5d44ca86985afbb2a47b9265053a456e"/></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="Creativestyle"><dir name="AmazonPayments"><dir name="Block"><file name="Abstract.php" hash="94b0b434a22a7471e0814de8026b617a"/><dir name="Adminhtml"><file name="CredentialsValidator.php" hash="682221608cba2108da2894db7f6b22ea"/><dir name="Debug"><dir name="Section"><file name="Table.php" hash="f6947e99e982164a220e3d82fa0f988f"/></dir><file name="Section.php" hash="a249d2fedeaa5e485e40ffaeeb0335c6"/></dir><file name="Debug.php" hash="51fdd651a5a672c75e645fc5974fae95"/><file name="Info.php" hash="2d014a9ec68fa5da30d649698a45a529"/><file name="IpnUrl.php" hash="f9a516356c4c9b98e02eb3761ad5bf90"/><dir name="Log"><file name="Abstract.php" hash="183114e38269e6ad666840127cfe0311"/><dir name="Api"><file name="Grid.php" hash="1f3ab2ee3c884a080babe33d092c97e4"/><file name="View.php" hash="eb30544643fa9571a454a763111d0113"/></dir><file name="Api.php" hash="5ea0736c83de5feb01df0a3ec4db4d80"/><dir name="Exception"><file name="Grid.php" hash="e12982b34793ad34c3eb0b24bac9dc1d"/><file name="View.php" hash="cae17d2a2d5716e8dde1c6662397131e"/></dir><file name="Exception.php" hash="c35dafcaf89ca709394341394862f4cf"/><dir name="Grid"><file name="Abstract.php" hash="11ccd78d87834bd73398358f190ef9bd"/></dir><dir name="Ipn"><file name="Grid.php" hash="8efa9f6b1adcac9a3562979ac97bc0c5"/><file name="View.php" hash="6ab63414642658e95258a73a143e6955"/></dir><file name="Ipn.php" hash="a2225b081ccb354bfe94b4a646b0d521"/><dir name="View"><file name="Abstract.php" hash="1b9423b817bc1c0765601d73b78d0d8e"/></dir></dir><dir name="Renderer"><file name="Timestamp.php" hash="190325613c20e2cf97adc28950658e99"/></dir><dir name="Sales"><file name="Order.php" hash="45a5ee919501a2bf26160d38dafccd44"/></dir><file name="SellerCentral.php" hash="ff2b0b8888f3c182f886a93e3434c1a9"/></dir><dir name="Button"><file name="Js.php" hash="6081c66a769b6db8a7f607e6f60365af"/></dir><dir name="Checkout"><file name="Abstract.php" hash="db5cf0b3d9dd37ad4552987b9df5e09c"/><file name="Js.php" hash="0e5ba9b3f4ae06139a084816c04a05a3"/><file name="Notice.php" hash="3bd2869322fac80a80436f8e2daa8d70"/><file name="SandboxToolbox.php" hash="047b1bfde3f5469195b9a7ccfee3f16d"/></dir><file name="Checkout.php" hash="6620fc17c1c86deac47709664d6a93f7"/><dir name="Js"><file name="Interface.php" hash="11827746ff821b4cbda1ad041e30321e"/></dir><file name="Js.php" hash="8610dddee84cda450c4874e0fd93b5f5"/><dir name="Login"><file name="Abstract.php" hash="d260896597dc717bd82bf2d76374a9e4"/><dir name="Account"><file name="Confirm.php" hash="ae8123a65a717a0046aaf1d9dc21f878"/><file name="Update.php" hash="8fdadae9294b17fbb0989f8d0e2016a4"/></dir><file name="Button.php" hash="bad55de20f480d53a15ddedd551ff6dd"/><file name="Js.php" hash="2d144b27681c48f2adfa8cd0fdd5d31e"/><file name="Redirect.php" hash="8634cf4f6bf792006e4ab7674b758e5c"/></dir><dir name="Onepage"><file name="Button.php" hash="b122db0163e8580f42679f13a3a45726"/></dir><dir name="Pay"><file name="Abstract.php" hash="998a730d1d4cb518c08bff62121166e7"/><file name="Button.php" hash="b76cbc47c91b88ceb9fc1fde609fa2dc"/></dir><dir name="Payment"><file name="Info.php" hash="c6285a5688834b456765317d3471bf2a"/></dir></dir><dir name="Exception"><dir name="InvalidStatus"><file name="Recoverable.php" hash="dc4d8857cf1841bb56f6da11cf92e99e"/></dir><file name="InvalidStatus.php" hash="614d45747601dea035ff2a3faadd7e18"/></dir><file name="Exception.php" hash="ca655a29842b38dd2ebf438208a6c70c"/><dir name="Helper"><file name="Data.php" hash="a0282202539953a047cb17316def6b28"/><file name="Debug.php" hash="3749831ab7f268051fd592277f02bf0c"/></dir><dir name="Model"><dir name="Api"><file name="Abstract.php" hash="1814fcd0d61599f15d808d9c2990ebe4"/><file name="Advanced.php" hash="0f5a3f480da20a2f8253f9b78c78f9dd"/><file name="Ipn.php" hash="e672342ca8b1f1f7493e42b9656aeabe"/><file name="Login.php" hash="d9297e66749c6930a1010a5babdfde14"/></dir><file name="Checkout.php" hash="e6f41d2e3a36bb1f63ebaed5f3979d5f"/><file name="Config.php" hash="cf3791d3c23ed710baf1a0e6385aaafa"/><dir name="Log"><file name="Collection.php" hash="13d71847c4e164af18636a3fe5bf975b"/></dir><file name="Logger.php" hash="0821a7d8ddeea993fe3ad9495ef6f9d9"/><dir name="Lookup"><file name="Abstract.php" hash="443bbef12f4e7c896e54cf0b7463e04e"/><file name="Authentication.php" hash="af62e3961a5b00319aa32487c6cc20d6"/><file name="AuthorizationMode.php" hash="b26806dc71de6b55bc37b20a1b804364"/><dir name="Design"><dir name="Button"><dir name="Color"><file name="LoginPay.php" hash="e9a469e82c7805782cf7694c4d50af7a"/></dir><file name="Color.php" hash="81a33471dfefb27897f7b1ff19749671"/><dir name="Size"><file name="LoginPay.php" hash="6cdf3d3633617994783a38f30add86fe"/></dir><file name="Size.php" hash="7c73a97a0fa3f4c6a73b838c0594ad5c"/><dir name="Type"><file name="Login.php" hash="44e852189b0305bbe4cc38848316d4e6"/><file name="Pay.php" hash="5e6f65d1e355ed265787b28b12c6e7a6"/></dir></dir></dir><file name="Frequency.php" hash="5115fb39b48781e5e97f9b62414a72cc"/><file name="IpnActive.php" hash="b73000f5bfc1e26b80911e125e9eec46"/><file name="Language.php" hash="6091a70bddec2c2a4812fff3e8cd09ca"/><file name="PaymentAction.php" hash="6d0c15996ec3caf112d88e07ea703bb4"/><file name="Region.php" hash="8f5cc8ab970aa165e16085368b320f89"/></dir><file name="Observer.php" hash="9fd94cbfd12dd7dd0a9cf084547bbb2e"/><dir name="Payment"><file name="Abstract.php" hash="3622ef8afb2d00458c9e32fe91af3392"/><dir name="Advanced"><file name="Sandbox.php" hash="10e80bd587f2d27fc97bb6e595936b82"/></dir><file name="Advanced.php" hash="15c5dde1d3a82a9bdf01e1681c47ec3b"/></dir><dir name="Processor"><file name="Ipn.php" hash="515c793d4bfd1cf2ce5c2bcc4e52a0a0"/><file name="Order.php" hash="bea0a609138e58614fe8fdb11426bf40"/><file name="Payment.php" hash="5e3493b085ee26031943cd13cbdad63f"/><file name="TransactionAdapter.php" hash="6135f64158d79eea5d3a5f39d3b5762b"/></dir><dir name="Service"><file name="Login.php" hash="33f6058caab9bd4791b954d0c19c0b10"/><file name="Quote.php" hash="d566370281e690ca31f3ddd47c21ef1d"/></dir><file name="Simulator.php" hash="553bb0c0ca3c74202083b366f4c33e9a"/><dir name="System"><dir name="Config"><dir name="Backend"><dir name="DataPolling"><file name="Cron.php" hash="c3d3009775702bee14da3695f0d41f68"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Amazonpayments"><file name="DebugController.php" hash="24744390b526b5f06785124bdcbd76e9"/><dir name="Log"><file name="ApiController.php" hash="3a1554fc86acfa1f4eec012fc16e6953"/><file name="ExceptionController.php" hash="cd98156b5b9e875f2ceb67f6b0769655"/><file name="IpnController.php" hash="21dc827d4d89a0fdae12c985ba296c1d"/></dir><file name="OrderController.php" hash="83ffbf0de858765c0c9c7c594e9b2b66"/><file name="SystemController.php" hash="d40c6131cf7d1fde4692665bc6a5dc1c"/></dir></dir><dir name="Advanced"><file name="CheckoutController.php" hash="225fcb638688f438ae44e389825fa761"/><file name="IpnController.php" hash="78277323844f97a30b6531aa331eef86"/><file name="LoginController.php" hash="2d6d0d201c1ff4bcdeb9a1c19372a888"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="178d013c12c7fabbce36290d68558c8d"/><file name="config.xml" hash="75887a65ba3912101131695a87f9aa2c"/><file name="system.xml" hash="0ea811f59acba8ac5145a6e197998423"/></dir><dir name="sql"><dir name="amazonpayments_setup"><file name="mysql4-install-1.0.0.php" hash="d4681b9a39905cc9e9dcc660688dea85"/><file name="mysql4-install-1.6.2.php" hash="6bb2b8656a3c6b2b517b88ca98ff84de"/><file name="mysql4-upgrade-1.1.6-1.2.0.php" hash="27f8e108bac4268d3c17e812b413dbbc"/><file name="mysql4-upgrade-1.7.4-1.7.6.php" hash="cbe499399eac3dcf607dd42e9be239a1"/></dir></dir></dir></dir></target><target name="magelib"><dir name="OffAmazonPayments"><dir name="HttpRequest"><file name="HttpException.php" hash="d2feba35467baa6ff61503bb15d5f016"/><file name="IHttpRequest.php" hash="7c7d44deffb15b2db161d8dfc585c4d2"/><file name="IHttpRequestFactory.php" hash="02c9cfe067cd0ae40f14704d58fa2098"/><dir name="Impl"><file name="HttpRequestCurlImpl.php" hash="815a03cc4b5fc1222e0bc9b9f85f3428"/><file name="HttpRequestFactoryCurlImpl.php" hash="09140d0c9518e0e7c1bffb8bd0c98310"/></dir></dir><file name="Model.php" hash="778dfe809587f010352d9ccd2bed8106"/><file name="OffAmazonPaymentsServiceUtils.php" hash="827a9e9f2b04652736406b1cd9672a2c"/></dir><dir name="OffAmazonPaymentsNotifications"><file name="Client.php" hash="a8bfa462188eb5193985e984ff503b04"/><dir name="Impl"><file name="Certificate.php" hash="33aec53879fff368b0f6f52ce7f79f13"/><file name="IpnNotificationParser.php" hash="3f4e203c89d23c2971214a7e0713f6a9"/><file name="Message.php" hash="6cffc2f4b4c09a8411572cdb7ddcc83a"/><file name="OpenSslVerifySignature.php" hash="621bb7e9660d079f53b6ac567fd361e7"/><file name="SnsMessageParser.php" hash="c6d1b0bfa852441b4ddfdc25cf624c9d"/><file name="SnsMessageValidator.php" hash="7291f2b91f0dc9ace62752c37b69d15f"/><file name="VerifySignature.php" hash="b7c3089f35fba596e16f6f39f7029908"/><file name="XmlNotificationParser.php" hash="a6b6ff48de5cee20db383a2a6c953092"/></dir><file name="Interface.php" hash="3930f956058657059e2ea705fc43333d"/><file name="InvalidCertificateException.php" hash="4711c0ea7b574a8ab3fb04623b2f7453"/><file name="InvalidMessageException.php" hash="c9608c6ecfafeae2db9db9e8786f2a15"/><dir name="Model"><file name="AuthorizationDetails.php" hash="c5e85494dd4b21c49c1d786bf38879da"/><file name="AuthorizationNotification.php" hash="490fd1da11270f9af20a6ca0d87b8149"/><file name="BillingAgreement.php" hash="00f24d00547ddb3320a20f77132feb0e"/><file name="BillingAgreementLimits.php" hash="e972154534547bde777133c2de1e835f"/><file name="BillingAgreementNotification.php" hash="c5ee60508326e840ce02765b175897aa"/><file name="BillingAgreementStatus.php" hash="68da18941f6cc8b17a9157c83e550c0c"/><file name="CaptureDetails.php" hash="f8702f3d5d5afd595814182f847367c5"/><file name="CaptureNotification.php" hash="8d4da47b23888f3cfd94fe9d217c46da"/><file name="IdList.php" hash="4d77007c611ba2a990179ecf506d4ac7"/><file name="IpnNotificationMetadata.php" hash="802e724b1cc35eae31e4aa9288446b8f"/><file name="MerchantRegistrationDetails.php" hash="d4de7689d8e216567abd710dde7ef4ed"/><file name="NotificationImpl.php" hash="17205cb366af769c0563d80ee82de067"/><file name="NotificationMetadataImpl.php" hash="27bdabd2ae04ab753e60b0ab3042859c"/><file name="OrderItemCategories.php" hash="ac5edd66a87e28f1e0a4be758e3d7b8c"/><file name="OrderReference.php" hash="3ff8f8729cc3e398823061b73d8d2789"/><file name="OrderReferenceNotification.php" hash="4b6a0e68f77ff7b710fe00916d5b0546"/><file name="OrderReferenceStatus.php" hash="e09fc390fb5c21afd4764c41dd7418c0"/><file name="OrderTotal.php" hash="ce3157db8b593588c9405030968176a5"/><file name="Price.php" hash="cff064218bbb2d56f463ab489dc907cd"/><file name="ProviderCreditDetails.php" hash="d355185842eb0816de151fb535b14edc"/><file name="ProviderCreditNotification.php" hash="7ddc5d80dee797893171237ecabf10e2"/><file name="ProviderCreditReversalDetails.php" hash="a789bbf3c7074bc800053967e64286c7"/><file name="ProviderCreditReversalNotification.php" hash="56479587ee330013bdffe17719d0edec"/><file name="ProviderCreditReversalSummary.php" hash="577971d363b95fd7a73e8cd4995a240c"/><file name="ProviderCreditReversalSummaryList.php" hash="05ae0f9769e4c46e5c3ba3f9907ae576"/><file name="ProviderCreditSummary.php" hash="4403e12b73867b58021655df3fcf6720"/><file name="ProviderCreditSummaryList.php" hash="667167ed6a427d71086aa4ef8dabc5f5"/><file name="RefundDetails.php" hash="ae08c0447ec12996a465772d55f2c28f"/><file name="RefundNotification.php" hash="fb29285214205fd09c4f9ac7964c1a07"/><file name="SellerBillingAgreementAttributes.php" hash="691b120995ac30f3f542c3ec9cd6c0d6"/><file name="SellerOrderAttributes.php" hash="896cf700231529f39e903d4614579a85"/><file name="SnsNotificationMetadata.php" hash="df453726f714f7ea50cc04b6093123eb"/><file name="SolutionProviderMerchantNotification.php" hash="77e4152a922f1a26582e46546387943d"/><file name="SolutionProviderOption.php" hash="df8fbbb1ad2fef1796e3b42a9a417a64"/><file name="SolutionProviderOptions.php" hash="624d2f4efd3a32eab8baf8628efda4ef"/><file name="Status.php" hash="8726fde00e0f97595115866c1a8000dd"/></dir><file name="Notification.php" hash="562b2a4eb6e292b6df4db3112391ab55"/><file name="NotificationMetadata.php" hash="07f94bf3a41ed0c72f387e900260c48a"/></dir><dir name="OffAmazonPaymentsService"><file name="Client.php" hash="26dd6a2d2c407427c5ea0933e2159351"/><file name="Environments.php" hash="1a9ff744e131c19f5bd0d58c5aa578ab"/><file name="Exception.php" hash="eee23053020a397cf082a28f41001284"/><file name="Interface.php" hash="b681a546f2a5e3690e5e04f9c75ca8a5"/><file name="MerchantValues.php" hash="2cca67c2b1b0557e5a63d4ef35950172"/><file name="MerchantValuesBuilder.php" hash="a6328566f8f5ee48a8b054d8f02897e1"/><dir name="Model"><file name="Address.php" hash="6840237ae7035912f95020ff6d580033"/><file name="AuthorizationDetails.php" hash="159edfb213e12b7ecb847c103c70c5de"/><file name="AuthorizeOnBillingAgreementRequest.php" hash="8b0e8d6ffa94b1f18546b7554ec042ed"/><file name="AuthorizeOnBillingAgreementResponse.php" hash="8770715da01743adeafc25d54bb0c1d9"/><file name="AuthorizeOnBillingAgreementResult.php" hash="a73c77f8fce673257e2dca072ad6fab6"/><file name="AuthorizeRequest.php" hash="08bdab4fe2896f4a2b808c6e8abfeeba"/><file name="AuthorizeResponse.php" hash="0ae054040c36e7362683146b537f551b"/><file name="AuthorizeResult.php" hash="e7dfd388200467e736ff3b7d11c8d2bf"/><file name="BillingAddress.php" hash="93f82f074b62e8b1abf25ae8ae44b676"/><file name="BillingAgreementAttributes.php" hash="e52a2c92f92f7081ac742e24f70385df"/><file name="BillingAgreementDetails.php" hash="359f9bd686d21242f2e27feb8b3379b2"/><file name="BillingAgreementLimits.php" hash="66f84e67052b91092867496d11a28763"/><file name="BillingAgreementStatus.php" hash="adcf9379fb2f6fa88a1d8e230d8cf101"/><file name="Buyer.php" hash="cb691abf757d54025ac43964849dd5fd"/><file name="CancelOrderReferenceRequest.php" hash="ef06ecd8f05a4c032aa28f5b5a132d05"/><file name="CancelOrderReferenceResponse.php" hash="004c4e3a21ea1dc8e11bbba3d733b3ca"/><file name="CancelOrderReferenceResult.php" hash="74b7ad1facdf31263e9bb55544303180"/><file name="CaptureDetails.php" hash="4f360221d888d50d92e7f2ea20b5b54f"/><file name="CaptureRequest.php" hash="5b976a76214f870964d49cf104a50b30"/><file name="CaptureResponse.php" hash="7ece74f93f362d31bc16f9fb7bf2b270"/><file name="CaptureResult.php" hash="e0fccf0fe27efd36d822ddcdaefe97ac"/><file name="CloseAuthorizationRequest.php" hash="cb0e2113e9e36b7b133b539e5ff99c50"/><file name="CloseAuthorizationResponse.php" hash="99be7612c9effdac53fb0bc225a13eb1"/><file name="CloseAuthorizationResult.php" hash="6d77eea8924d2ef6a3acd0dabb3f9f76"/><file name="CloseBillingAgreementRequest.php" hash="89f82b30dd0902faa6feb3a57dfe24cb"/><file name="CloseBillingAgreementResponse.php" hash="1bda191dc9a8b2b1a14b6e11772f05cf"/><file name="CloseBillingAgreementResult.php" hash="f926f5d65d95323647129605a26037ae"/><file name="CloseOrderReferenceRequest.php" hash="b8b592bdc71a4046efead52196f8073c"/><file name="CloseOrderReferenceResponse.php" hash="137da00395052b25099de3a0d152887d"/><file name="CloseOrderReferenceResult.php" hash="81e21f75ae477f07a9b913e1ac2bd89d"/><file name="ConfirmBillingAgreementRequest.php" hash="ab524aa1cc6e51a8b483e4f96b7e1e02"/><file name="ConfirmBillingAgreementResponse.php" hash="0639de39ba58e6c2b806a84b43dc31d3"/><file name="ConfirmBillingAgreementResult.php" hash="42456915a3efa4ccd774a1d5d3a05307"/><file name="ConfirmOrderReferenceRequest.php" hash="632a4b8414aac550fc0ec59a83737be7"/><file name="ConfirmOrderReferenceResponse.php" hash="fb0c329ffa1a54e4c15c531b58561f6f"/><file name="Constraint.php" hash="e46dc3d18486b6639ea5b8f52a92cfdc"/><file name="Constraints.php" hash="cb983d71bda42bdda767ffc9f4feeafc"/><file name="CreateOrderReferenceForIdRequest.php" hash="b1f4e96f1392c427228f5799edc5dc64"/><file name="CreateOrderReferenceForIdResponse.php" hash="630cb4812997fa7c067f393dfb5e2f48"/><file name="CreateOrderReferenceForIdResult.php" hash="4abf7af5eb56058c17996406a877f427"/><file name="Destination.php" hash="737777909588915788398ab86f0de1de"/><file name="Error.php" hash="bb8b6bb6d3c778fc4e1d0a346b5fa03a"/><file name="ErrorResponse.php" hash="8804c6f39d9a0bdcbd76260eba9d261d"/><file name="GetAuthorizationDetailsRequest.php" hash="67d5a478c01fbbfba420dff3cf2098dc"/><file name="GetAuthorizationDetailsResponse.php" hash="0c9fe935bcb953cc9cd9e11bab32b5b2"/><file name="GetAuthorizationDetailsResult.php" hash="02ac4fa6533ccfd705c543160165c31d"/><file name="GetBillingAgreementDetailsRequest.php" hash="761cbdc44a4ac1e28b22d01f7a484b76"/><file name="GetBillingAgreementDetailsResponse.php" hash="061084469683253d1d76d5c881e5062d"/><file name="GetBillingAgreementDetailsResult.php" hash="5a585ad373b11b806ba320bcd988f71b"/><file name="GetCaptureDetailsRequest.php" hash="69252be80c32d911f2ff664904375e7d"/><file name="GetCaptureDetailsResponse.php" hash="5323ed86174064bb1122187457440861"/><file name="GetCaptureDetailsResult.php" hash="962ef27de2778c9ccde55d848b8fa649"/><file name="GetOrderReferenceDetailsRequest.php" hash="edfea06a629f298ab134229d35fef319"/><file name="GetOrderReferenceDetailsResponse.php" hash="4955733fe736a9f51e0bd6823b8bf74b"/><file name="GetOrderReferenceDetailsResult.php" hash="f9ee3738bddff51c6bd545028d275348"/><file name="GetProviderCreditDetailsRequest.php" hash="e51201c7d39935c4fa8da96e822b7075"/><file name="GetProviderCreditDetailsResponse.php" hash="e312b54192343e16230b7436b101766a"/><file name="GetProviderCreditDetailsResult.php" hash="9f0af601e8a716e4e5af3802d8952fe4"/><file name="GetProviderCreditReversalDetailsRequest.php" hash="cf74576ef8dc02e34244aca962d854b3"/><file name="GetProviderCreditReversalDetailsResponse.php" hash="a869c2695416514834c83890d3b080f9"/><file name="GetProviderCreditReversalDetailsResult.php" hash="33f1980d1632034eee8396c6286b5320"/><file name="GetRefundDetailsRequest.php" hash="7ab0f7d756a59a284ffd0ffc361fee42"/><file name="GetRefundDetailsResponse.php" hash="4847a7513f69d3f81c306d26ad7c5291"/><file name="GetRefundDetailsResult.php" hash="0c24e3c8e95f4ee10f5c4e9dd07518bf"/><file name="IdList.php" hash="25fd15394669b4721bdd0e4d367d534f"/><file name="OrderItemCategories.php" hash="995db32a92601555ee9a7550d1daae7e"/><file name="OrderReferenceAttributes.php" hash="78e1735d8fc99c5676d894564d6b88c7"/><file name="OrderReferenceDetails.php" hash="4e9365808e09fe1b1407348c9d05ca41"/><file name="OrderReferenceStatus.php" hash="5c21e44d991a24ab2527e491c435d54c"/><file name="OrderTotal.php" hash="2ff8e8ccc9c7266d72f534485ccd01bf"/><file name="ParentDetails.php" hash="99f7062b4764166637dfc44b4fe4788c"/><file name="Price.php" hash="4ac8de3791146a17a237a914c9f762a6"/><file name="ProviderCredit.php" hash="8f2f21ac5c0dba73e64a35cc7a61fbbe"/><file name="ProviderCreditDetails.php" hash="d9057efbe528a1571eda4252b8ad1813"/><file name="ProviderCreditList.php" hash="4a3eeae90b5a1ed09a528f5254b968a5"/><file name="ProviderCreditReversal.php" hash="07c1d7959a7cfb94164846c276b43ce7"/><file name="ProviderCreditReversalDetails.php" hash="ebfbf919b4a399213c7e312e59873e43"/><file name="ProviderCreditReversalList.php" hash="8eb64497a6a233535c8b0ca55591d06b"/><file name="ProviderCreditReversalSummary.php" hash="7646c582ea5fb3a46dcb09637f7daf01"/><file name="ProviderCreditReversalSummaryList.php" hash="cae281ddee9f766d1d5bf350e238037a"/><file name="ProviderCreditSummary.php" hash="69bc18eefe644e6b851a6daf7e6dfa8a"/><file name="ProviderCreditSummaryList.php" hash="751812d8903ba883036d1bc381c37667"/><file name="RefundDetails.php" hash="b53e480fe8e8e5d96a4b6a0df431e5ac"/><file name="RefundRequest.php" hash="665585551aba39532fe3352abb4859b3"/><file name="RefundResponse.php" hash="fadbc4ad5313395a48e38b1c0502c85a"/><file name="RefundResult.php" hash="9ddad34dd53edfd156651b021bc5137a"/><file name="ResponseHeaderMetadata.php" hash="382fe7bd666eea293b729c5d6c79348f"/><file name="ResponseMetadata.php" hash="073748a20ecd8bddc240dd4c0a4a56b9"/><file name="ReverseProviderCreditRequest.php" hash="802a3709149add8fa192ce389b93c2ea"/><file name="ReverseProviderCreditResponse.php" hash="ff702a7def546f0c6216094f93095bd7"/><file name="ReverseProviderCreditResult.php" hash="84f3e78e1b8b1b47e6f8b92abee7704b"/><file name="SellerBillingAgreementAttributes.php" hash="308899b9e48a95f0b5d48d74a510c915"/><file name="SellerOrderAttributes.php" hash="35b62fe0e130207dfaa2caefa1dfe7ba"/><file name="SetBillingAgreementDetailsRequest.php" hash="347a6c85c5cc8394255efcb9c4b57d52"/><file name="SetBillingAgreementDetailsResponse.php" hash="92299b3338dc7435149f17d8126f7518"/><file name="SetBillingAgreementDetailsResult.php" hash="7cb3e84e58fe2bbf163f8ac34de5eccf"/><file name="SetOrderReferenceDetailsRequest.php" hash="4cf2605f5188116a1526d463638aa768"/><file name="SetOrderReferenceDetailsResponse.php" hash="41720bdf965dcd759cc3278e01610530"/><file name="SetOrderReferenceDetailsResult.php" hash="4281a97da7865e47157c1d22c2094bfd"/><file name="Status.php" hash="28bd007e6c9747417a063e9941cc0dba"/><file name="ValidateBillingAgreementRequest.php" hash="d77beda441fd1688903e96a02fa4e643"/><file name="ValidateBillingAgreementResponse.php" hash="89658fd2a78d7dbb2997dae6ba169f7e"/><file name="ValidateBillingAgreementResult.php" hash="b9244d0496b0bbcfbf7628c775c17ca3"/></dir><file name="Model.php" hash="fafcb3a4318eb7bd9be5b69225187352"/><file name="RegionSpecificProperties.php" hash="f4e77cc63766b42fbef6ef1e07ec4402"/><file name="Regions.php" hash="4676d77db7dde345118e2a6fc021ce3f"/></dir></target></contents>
27
  <compatible/>
28
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
29
  </package>
skin/adminhtml/default/default/creativestyle/css/amazonpayments.css CHANGED
@@ -1,8 +1,8 @@
1
  .creativestyle-info {
2
- border: 1px solid #cccccc;
3
  background: #e7efef;
4
  margin-bottom: 10px;
5
- padding: 10px;
6
  height: auto;
7
  }
8
  .creativestyle-info .creativestyle-logo {
@@ -25,6 +25,10 @@
25
  font-size: 80%;
26
  font-style: italic;
27
  }
 
 
 
 
28
 
29
  h3.amazon-payments-advanced-header {
30
  background: url('../images/amazon-payments-advanced-header.png') no-repeat scroll 0 0 transparent;
@@ -57,3 +61,7 @@ ul.tabs a.amazon-payments-advanced-section span, ul.tabs a.amazon-payments-advan
57
  .head-amazonpayments-log {
58
  background-image: url('../images/logo_a-glyph_16.png');
59
  }
 
 
 
 
1
  .creativestyle-info {
2
+ border: 0;
3
  background: #e7efef;
4
  margin-bottom: 10px;
5
+ padding: 0;
6
  height: auto;
7
  }
8
  .creativestyle-info .creativestyle-logo {
25
  font-size: 80%;
26
  font-style: italic;
27
  }
28
+ .creativestyle-info .fieldset {
29
+ margin-bottom: 0;
30
+ padding: 10px 15px !important;
31
+ }
32
 
33
  h3.amazon-payments-advanced-header {
34
  background: url('../images/amazon-payments-advanced-header.png') no-repeat scroll 0 0 transparent;
61
  .head-amazonpayments-log {
62
  background-image: url('../images/logo_a-glyph_16.png');
63
  }
64
+
65
+ .section-config .section-config .entry-edit-head .open span.close {
66
+ display: none;
67
+ }
skin/adminhtml/default/default/creativestyle/images/amazon-payments-advanced-creativestyle-header-logo-white.png CHANGED
Binary file
skin/adminhtml/default/default/creativestyle/images/amazon-payments-advanced-creativestyle-header-logo.png CHANGED
Binary file
skin/adminhtml/default/default/creativestyle/images/amazon-payments-advanced-creativestyle-logo.png CHANGED
Binary file
skin/frontend/base/default/creativestyle/css/amazonpayments.css CHANGED
@@ -47,9 +47,26 @@
47
  .pay-with-amazon-onepage-shortcut p img {
48
  display: none;
49
  }
 
 
 
50
  .payButtonWidget img {
51
  cursor: pointer;
52
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  .checkout-onepage-index .loginButtonWidget,
54
  .checkout-onepage-index .payButtonWidget {
55
  margin-bottom: 15px;
47
  .pay-with-amazon-onepage-shortcut p img {
48
  display: none;
49
  }
50
+ .payButtonWidget {
51
+ display: inline;
52
+ }
53
  .payButtonWidget img {
54
  cursor: pointer;
55
  }
56
+ .checkout-types.bottom .payButtonWidget {
57
+ display: block;
58
+ }
59
+ .checkout-types.bottom .amazonpayments-or {
60
+ text-align: right;
61
+ padding-right: 70px;
62
+ margin: 0;
63
+ }
64
+ .checkout-types.minicart .payButtonWidget img {
65
+ display: inline;
66
+ }
67
+ .checkout-types.minicart .amazonpayments-or {
68
+ display: block;
69
+ }
70
  .checkout-onepage-index .loginButtonWidget,
71
  .checkout-onepage-index .payButtonWidget {
72
  margin-bottom: 15px;
skin/frontend/rwd/default/creativestyle/css/amazonpayments.css ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .amazonpayments-or {
2
+ line-height: 2.3;
3
+ margin: 0 8px;
4
+ }
5
+ .cart .totals .checkout-types .amazonpayments-or {
6
+ display: block;
7
+ clear: both;
8
+ font-size: 11px;
9
+ line-height: 1;
10
+ padding: 8px 55px 0 0;
11
+ }
12
+ .block-cart .actions .amazonpayments-or {
13
+ display: block;
14
+ clear: both;
15
+ font-size: 11px;
16
+ line-height: 1;
17
+ padding: 8px 55px 8px 0;
18
+ margin: 0;
19
+ }
20
+ .pay-with-amazon-tooltip {
21
+ border: solid 1px #bbbbbb;
22
+ background-color: #ffffff;
23
+ border-radius: 8px;
24
+ -webkit-border-radius: 8px;
25
+ -moz-border-radius: 8px;
26
+ -ms-border-radius: 8px;
27
+ -o-border-radius: 8px;
28
+ padding: 10px 15px;
29
+ width: 300px;
30
+ font-size: 11px;
31
+ text-align: left;
32
+ box-shadow: 0 0 5px #888;
33
+ -webkit-box-shadow: 0 0 5px#888;
34
+ -moz-box-shadow: 0 0 5px #888;
35
+ -o-box-shadow: 0 0 5px #888;
36
+ }
37
+ .pay-with-amazon-tooltip img {
38
+ float: right;
39
+ padding: 5px 0 5px 10px;
40
+ }
41
+ .pay-with-amazon-onepage-shortcut {
42
+ padding: 20px 0;
43
+ }
44
+ .pay-with-amazon-onepage-shortcut p {
45
+ padding: 10px 0;
46
+ }
47
+ .pay-with-amazon-onepage-shortcut p img {
48
+ display: none;
49
+ }
50
+ .payButtonWidget {
51
+ display: inline;
52
+ }
53
+ .payButtonWidget img {
54
+ cursor: pointer;
55
+ }
56
+ .checkout-types.bottom .payButtonWidget {
57
+ display: block;
58
+ }
59
+ .checkout-types.bottom .amazonpayments-or {
60
+ text-align: right;
61
+ padding-right: 70px;
62
+ margin: 0;
63
+ }
64
+ .checkout-types.minicart .payButtonWidget img {
65
+ display: inline;
66
+ }
67
+ .checkout-types.minicart .amazonpayments-or {
68
+ display: block;
69
+ }
70
+ .checkout-onepage-index .loginButtonWidget,
71
+ .checkout-onepage-index .payButtonWidget {
72
+ margin-bottom: 15px;
73
+ text-align: right;
74
+ }
75
+ ol.apa {
76
+ list-style: none outside none;
77
+ margin: 0;
78
+ padding: 0;
79
+ width: 100%;
80
+ }
81
+ .apa .section {
82
+ margin: 0 0 15px 0;
83
+ }
84
+ .apa .store-widget {
85
+ clear: both;
86
+ border: solid 1px #bbbbbb;
87
+ background-color: #ffffff;
88
+ border-radius: 8px;
89
+ -webkit-border-radius: 8px;
90
+ -moz-border-radius: 8px;
91
+ -ms-border-radius: 8px;
92
+ -o-border-radius: 8px;
93
+ }
94
+ .apa .amazon-widget-overlay {
95
+ position: fixed;
96
+ display: block;
97
+ top: 0;
98
+ left: 0;
99
+ height: 100%;
100
+ width: 100%;
101
+ z-index: 100;
102
+ }
103
+ .apa .step-title {
104
+ margin: 12px;
105
+ }
106
+ .apa .step-title img {
107
+ float: left;
108
+ height: 22px;
109
+ margin: 0 7px 0 0;
110
+ vertical-align: middle;
111
+ width: 23px;
112
+ }
113
+ .apa .step-title h2 {
114
+ color: #2f3841;
115
+ font-family: Arial;
116
+ font-size: 14px;
117
+ font-weight: bold;
118
+ vertical-align: middle;
119
+ text-transform: none;
120
+ }
121
+ .apa .section-content {
122
+ margin: 0 12px 12px;
123
+ }
124
+ .apa .section-please-wait {
125
+ display: none;
126
+ height: 80px;
127
+ margin: 12px;
128
+ background: url('../images/amazon-loading-large.gif') center center no-repeat;
129
+ }
130
+ .apa .amazon-widget.loading {
131
+ min-height: 80px;
132
+ background: url('../images/amazon-loading-large.gif') center center no-repeat;
133
+ }
134
+ .apa .loading .section-content {
135
+ display: none;
136
+ }
137
+ .apa .loading .section-please-wait {
138
+ display: block;
139
+ }
140
+ .apa .sandbox-simulation select {
141
+ width: 25%;
142
+ }
143
+ .apa .sandbox-simulation p {
144
+ margin: 0 0 10px;
145
+ }
146
+ .apa .buttons-set {
147
+ line-height: 40px;
148
+ }
149
+ .apa .buttons-set.disabled button.button {
150
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
151
+ filter: alpha(opacity=40);
152
+ -moz-opacity: 0.4;
153
+ -khtml-opacity: 0.4;
154
+ opacity: 0.4;
155
+ }
156
+ .amazon-login {
157
+ padding-top: 27px;
158
+ margin-top: 20px;
159
+ }
160
+ .amazon-login.position-before {
161
+ padding-top: 0 !important;
162
+ padding-bottom: 27px;
163
+ }
164
+ .amazon-login .content {
165
+ min-height: 100px;
166
+ }
167
+ .amazon-login .buttons-set {
168
+ border-top: 0;
169
+ }
170
+ .buttons-set button.cancel span {
171
+ border-color:#406a83;
172
+ background:#618499;
173
+ }
skin/frontend/rwd/default/creativestyle/images/amazon-loading-large.gif ADDED
Binary file
skin/frontend/rwd/default/creativestyle/images/logo_a-glyph_1x.png ADDED
Binary file