Creativestyle_AmazonPayments - Version 1.3.2

Version Notes

ADDED: cURL error handling for Login API calls
MODIFIED: asynchronous JS loading in the documenty body
MODIFIED: use deminified JS for sandbox mode
MODIFIED: Amazon button tooltip text for virtual orders
MODIFIED: Amazon SDK library (refactor to fix autoloader issues)
FIXED: shipping cost display issue when additional totals are implemented
FIXED: JS merging issue
FIXED: closing OrderReference after successful capture

Download this release

Release Info

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


Code changes from version 1.2.6.2 to 1.3.2

Files changed (160) hide show
  1. app/code/community/Creativestyle/AmazonPayments/Block/Button/Js.php +7 -1
  2. app/code/community/Creativestyle/AmazonPayments/Block/Checkout/Js.php +7 -1
  3. app/code/community/Creativestyle/AmazonPayments/Block/Head.php +0 -22
  4. app/code/community/Creativestyle/AmazonPayments/Block/Js.php +81 -0
  5. app/code/community/Creativestyle/AmazonPayments/Block/{Login/Logout.php → Js/Interface.php} +5 -1
  6. app/code/community/Creativestyle/AmazonPayments/Block/Login/{Head.php → Js.php} +7 -1
  7. app/code/community/Creativestyle/AmazonPayments/Helper/Data.php +3 -0
  8. app/code/community/Creativestyle/AmazonPayments/Model/Api/Login.php +12 -3
  9. app/code/community/Creativestyle/AmazonPayments/Model/Autoload.php +0 -89
  10. app/code/community/Creativestyle/AmazonPayments/Model/Checkout.php +3 -1
  11. app/code/community/Creativestyle/AmazonPayments/Model/Observer.php +58 -31
  12. app/code/community/Creativestyle/AmazonPayments/Model/Payment/Advanced/Abstract.php +8 -0
  13. app/code/community/Creativestyle/AmazonPayments/Model/Service/Login.php +1 -0
  14. app/code/community/Creativestyle/AmazonPayments/controllers/Advanced/LoginController.php +1 -0
  15. app/code/community/Creativestyle/AmazonPayments/etc/config.xml +1 -19
  16. app/design/frontend/base/default/layout/amazonpayments.xml +8 -10
  17. app/design/frontend/base/default/template/creativestyle/amazonpayments/button/js.phtml +9 -5
  18. app/design/frontend/base/default/template/creativestyle/amazonpayments/button/tooltip.phtml +0 -16
  19. app/design/frontend/base/default/template/creativestyle/amazonpayments/checkout/js.phtml +35 -40
  20. app/design/frontend/base/default/template/creativestyle/amazonpayments/{login/head.phtml → js.phtml} +6 -5
  21. app/design/frontend/base/default/template/creativestyle/amazonpayments/{head.phtml → login/js.phtml} +1 -2
  22. app/design/frontend/base/default/template/creativestyle/amazonpayments/login/logout.phtml +1 -3
  23. app/locale/de_DE/Creativestyle_AmazonPayments.csv +1 -0
  24. app/locale/en_GB/Creativestyle_AmazonPayments.csv +1 -0
  25. app/locale/en_US/Creativestyle_AmazonPayments.csv +1 -0
  26. js/creativestyle/apa_checkout.js +465 -0
  27. lib/OffAmazonPayments/Model.php +0 -1
  28. lib/OffAmazonPaymentsNotifications/Client.php +5 -6
  29. lib/OffAmazonPaymentsNotifications/Impl/Certificate.php +2 -2
  30. lib/OffAmazonPaymentsNotifications/Impl/IpnNotificationParser.php +7 -8
  31. lib/OffAmazonPaymentsNotifications/Impl/Message.php +1 -2
  32. lib/OffAmazonPaymentsNotifications/Impl/OpenSslVerifySignature.php +3 -3
  33. lib/OffAmazonPaymentsNotifications/Impl/SnsMessageParser.php +4 -5
  34. lib/OffAmazonPaymentsNotifications/Impl/SnsMessageValidator.php +11 -11
  35. lib/OffAmazonPaymentsNotifications/Impl/VerifySignature.php +1 -2
  36. lib/OffAmazonPaymentsNotifications/Impl/XmlNotificationParser.php +7 -8
  37. lib/OffAmazonPaymentsNotifications/Interface.php +0 -1
  38. lib/OffAmazonPaymentsNotifications/InvalidCertificateException.php +1 -1
  39. lib/OffAmazonPaymentsNotifications/InvalidMessageException.php +0 -1
  40. lib/OffAmazonPaymentsNotifications/Model/AuthorizationDetails.php +0 -1
  41. lib/OffAmazonPaymentsNotifications/Model/AuthorizationNotification.php +1 -2
  42. lib/OffAmazonPaymentsNotifications/Model/BillingAgreement.php +0 -1
  43. lib/OffAmazonPaymentsNotifications/Model/BillingAgreementLimits.php +0 -1
  44. lib/OffAmazonPaymentsNotifications/Model/BillingAgreementNotification.php +1 -2
  45. lib/OffAmazonPaymentsNotifications/Model/BillingAgreementStatus.php +0 -1
  46. lib/OffAmazonPaymentsNotifications/Model/CaptureDetails.php +0 -1
  47. lib/OffAmazonPaymentsNotifications/Model/CaptureNotification.php +1 -2
  48. lib/OffAmazonPaymentsNotifications/Model/IdList.php +0 -1
  49. lib/OffAmazonPaymentsNotifications/Model/IpnNotificationMetadata.php +2 -3
  50. lib/OffAmazonPaymentsNotifications/Model/NotificationImpl.php +1 -2
  51. lib/OffAmazonPaymentsNotifications/Model/NotificationMetadataImpl.php +0 -1
  52. lib/OffAmazonPaymentsNotifications/Model/OrderItemCategories.php +0 -1
  53. lib/OffAmazonPaymentsNotifications/Model/OrderReference.php +0 -1
  54. lib/OffAmazonPaymentsNotifications/Model/OrderReferenceNotification.php +1 -2
  55. lib/OffAmazonPaymentsNotifications/Model/OrderReferenceStatus.php +0 -1
  56. lib/OffAmazonPaymentsNotifications/Model/OrderTotal.php +0 -1
  57. lib/OffAmazonPaymentsNotifications/Model/Price.php +0 -1
  58. lib/OffAmazonPaymentsNotifications/Model/ProviderCreditNotification.php +1 -2
  59. lib/OffAmazonPaymentsNotifications/Model/ProviderCreditReversalNotification.php +1 -2
  60. lib/OffAmazonPaymentsNotifications/Model/RefundDetails.php +0 -1
  61. lib/OffAmazonPaymentsNotifications/Model/RefundNotification.php +1 -2
  62. lib/OffAmazonPaymentsNotifications/Model/SellerBillingAgreementAttributes.php +0 -1
  63. lib/OffAmazonPaymentsNotifications/Model/SellerOrderAttributes.php +0 -1
  64. lib/OffAmazonPaymentsNotifications/Model/SnsNotificationMetadata.php +1 -2
  65. lib/OffAmazonPaymentsNotifications/Model/SolutionProviderMerchantNotification.php +1 -2
  66. lib/OffAmazonPaymentsNotifications/Model/Status.php +0 -1
  67. lib/OffAmazonPaymentsNotifications/Notification.php +0 -1
  68. lib/OffAmazonPaymentsNotifications/NotificationMetadata.php +0 -1
  69. lib/OffAmazonPaymentsService/Client.php +0 -1
  70. lib/OffAmazonPaymentsService/Environments.php +0 -1
  71. lib/OffAmazonPaymentsService/Exception.php +0 -1
  72. lib/OffAmazonPaymentsService/Interface.php +0 -1
  73. lib/OffAmazonPaymentsService/MerchantValues.php +1 -1
  74. lib/OffAmazonPaymentsService/Model.php +0 -1
  75. lib/OffAmazonPaymentsService/Model/Address.php +0 -1
  76. lib/OffAmazonPaymentsService/Model/AuthorizationDetails.php +0 -1
  77. lib/OffAmazonPaymentsService/Model/AuthorizeOnBillingAgreementRequest.php +0 -1
  78. lib/OffAmazonPaymentsService/Model/AuthorizeOnBillingAgreementResponse.php +0 -1
  79. lib/OffAmazonPaymentsService/Model/AuthorizeOnBillingAgreementResult.php +0 -1
  80. lib/OffAmazonPaymentsService/Model/AuthorizeRequest.php +0 -1
  81. lib/OffAmazonPaymentsService/Model/AuthorizeResponse.php +0 -1
  82. lib/OffAmazonPaymentsService/Model/AuthorizeResult.php +0 -1
  83. lib/OffAmazonPaymentsService/Model/BillingAddress.php +1 -1
  84. lib/OffAmazonPaymentsService/Model/BillingAgreementAttributes.php +0 -1
  85. lib/OffAmazonPaymentsService/Model/BillingAgreementDetails.php +1 -1
  86. lib/OffAmazonPaymentsService/Model/BillingAgreementLimits.php +0 -1
  87. lib/OffAmazonPaymentsService/Model/BillingAgreementStatus.php +0 -1
  88. lib/OffAmazonPaymentsService/Model/Buyer.php +0 -1
  89. lib/OffAmazonPaymentsService/Model/CancelOrderReferenceRequest.php +0 -1
  90. lib/OffAmazonPaymentsService/Model/CancelOrderReferenceResponse.php +0 -1
  91. lib/OffAmazonPaymentsService/Model/CancelOrderReferenceResult.php +0 -1
  92. lib/OffAmazonPaymentsService/Model/CaptureDetails.php +0 -1
  93. lib/OffAmazonPaymentsService/Model/CaptureRequest.php +0 -1
  94. lib/OffAmazonPaymentsService/Model/CaptureResponse.php +0 -1
  95. lib/OffAmazonPaymentsService/Model/CaptureResult.php +0 -1
  96. lib/OffAmazonPaymentsService/Model/CloseAuthorizationRequest.php +0 -1
  97. lib/OffAmazonPaymentsService/Model/CloseAuthorizationResponse.php +0 -1
  98. lib/OffAmazonPaymentsService/Model/CloseAuthorizationResult.php +0 -1
  99. lib/OffAmazonPaymentsService/Model/CloseBillingAgreementRequest.php +0 -1
  100. lib/OffAmazonPaymentsService/Model/CloseBillingAgreementResponse.php +0 -1
  101. lib/OffAmazonPaymentsService/Model/CloseBillingAgreementResult.php +0 -1
  102. lib/OffAmazonPaymentsService/Model/CloseOrderReferenceRequest.php +0 -1
  103. lib/OffAmazonPaymentsService/Model/CloseOrderReferenceResponse.php +0 -1
  104. lib/OffAmazonPaymentsService/Model/CloseOrderReferenceResult.php +0 -1
  105. lib/OffAmazonPaymentsService/Model/ConfirmBillingAgreementRequest.php +0 -1
  106. lib/OffAmazonPaymentsService/Model/ConfirmBillingAgreementResponse.php +0 -1
  107. lib/OffAmazonPaymentsService/Model/ConfirmBillingAgreementResult.php +0 -1
  108. lib/OffAmazonPaymentsService/Model/ConfirmOrderReferenceRequest.php +0 -1
  109. lib/OffAmazonPaymentsService/Model/ConfirmOrderReferenceResponse.php +0 -1
  110. lib/OffAmazonPaymentsService/Model/Constraint.php +0 -1
  111. lib/OffAmazonPaymentsService/Model/Constraints.php +0 -1
  112. lib/OffAmazonPaymentsService/Model/CreateOrderReferenceForIdRequest.php +0 -1
  113. lib/OffAmazonPaymentsService/Model/CreateOrderReferenceForIdResponse.php +0 -1
  114. lib/OffAmazonPaymentsService/Model/CreateOrderReferenceForIdResult.php +0 -1
  115. lib/OffAmazonPaymentsService/Model/Destination.php +0 -1
  116. lib/OffAmazonPaymentsService/Model/Error.php +0 -1
  117. lib/OffAmazonPaymentsService/Model/ErrorResponse.php +0 -1
  118. lib/OffAmazonPaymentsService/Model/GetAuthorizationDetailsRequest.php +0 -1
  119. lib/OffAmazonPaymentsService/Model/GetAuthorizationDetailsResponse.php +0 -1
  120. lib/OffAmazonPaymentsService/Model/GetBillingAgreementDetailsRequest.php +0 -1
  121. lib/OffAmazonPaymentsService/Model/GetBillingAgreementDetailsResponse.php +0 -1
  122. lib/OffAmazonPaymentsService/Model/GetBillingAgreementDetailsResult.php +0 -1
  123. lib/OffAmazonPaymentsService/Model/GetCaptureDetailsRequest.php +0 -1
  124. lib/OffAmazonPaymentsService/Model/GetCaptureDetailsResponse.php +0 -1
  125. lib/OffAmazonPaymentsService/Model/GetCaptureDetailsResult.php +0 -1
  126. lib/OffAmazonPaymentsService/Model/GetOrderReferenceDetailsRequest.php +0 -1
  127. lib/OffAmazonPaymentsService/Model/GetOrderReferenceDetailsResponse.php +0 -1
  128. lib/OffAmazonPaymentsService/Model/GetOrderReferenceDetailsResult.php +0 -1
  129. lib/OffAmazonPaymentsService/Model/GetRefundDetailsRequest.php +0 -1
  130. lib/OffAmazonPaymentsService/Model/GetRefundDetailsResponse.php +0 -1
  131. lib/OffAmazonPaymentsService/Model/GetRefundDetailsResult.php +0 -1
  132. lib/OffAmazonPaymentsService/Model/IdList.php +0 -1
  133. lib/OffAmazonPaymentsService/Model/OrderItemCategories.php +0 -1
  134. lib/OffAmazonPaymentsService/Model/OrderReferenceAttributes.php +0 -1
  135. lib/OffAmazonPaymentsService/Model/OrderReferenceDetails.php +0 -1
  136. lib/OffAmazonPaymentsService/Model/OrderReferenceStatus.php +0 -1
  137. lib/OffAmazonPaymentsService/Model/OrderTotal.php +0 -1
  138. lib/OffAmazonPaymentsService/Model/ParentDetails.php +0 -1
  139. lib/OffAmazonPaymentsService/Model/Price.php +0 -1
  140. lib/OffAmazonPaymentsService/Model/RefundDetails.php +0 -1
  141. lib/OffAmazonPaymentsService/Model/RefundRequest.php +0 -1
  142. lib/OffAmazonPaymentsService/Model/RefundResponse.php +0 -1
  143. lib/OffAmazonPaymentsService/Model/RefundResult.php +0 -1
  144. lib/OffAmazonPaymentsService/Model/ResponseHeaderMetadata.php +0 -1
  145. lib/OffAmazonPaymentsService/Model/ResponseMetadata.php +0 -1
  146. lib/OffAmazonPaymentsService/Model/SellerBillingAgreementAttributes.php +0 -1
  147. lib/OffAmazonPaymentsService/Model/SellerOrderAttributes.php +0 -1
  148. lib/OffAmazonPaymentsService/Model/SetBillingAgreementDetailsRequest.php +0 -1
  149. lib/OffAmazonPaymentsService/Model/SetBillingAgreementDetailsResponse.php +0 -1
  150. lib/OffAmazonPaymentsService/Model/SetBillingAgreementDetailsResult.php +0 -1
  151. lib/OffAmazonPaymentsService/Model/SetOrderReferenceDetailsRequest.php +0 -1
  152. lib/OffAmazonPaymentsService/Model/SetOrderReferenceDetailsResponse.php +0 -1
  153. lib/OffAmazonPaymentsService/Model/SetOrderReferenceDetailsResult.php +0 -1
  154. lib/OffAmazonPaymentsService/Model/Status.php +0 -1
  155. lib/OffAmazonPaymentsService/Model/ValidateBillingAgreementRequest.php +0 -1
  156. lib/OffAmazonPaymentsService/Model/ValidateBillingAgreementResponse.php +0 -1
  157. lib/OffAmazonPaymentsService/Model/ValidateBillingAgreementResult.php +0 -1
  158. lib/OffAmazonPaymentsService/RegionSpecificProperties.php +0 -1
  159. lib/OffAmazonPaymentsService/Regions.php +1 -1
  160. package.xml +13 -5
app/code/community/Creativestyle/AmazonPayments/Block/Button/Js.php CHANGED
@@ -13,7 +13,9 @@
13
  * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
- class Creativestyle_AmazonPayments_Block_Button_Js extends Creativestyle_AmazonPayments_Block_Abstract {
 
 
17
 
18
  public function getUrlParams() {
19
  if ($this->isLoginActive()) {
@@ -48,4 +50,8 @@ class Creativestyle_AmazonPayments_Block_Button_Js extends Creativestyle_AmazonP
48
  return '{}';
49
  }
50
 
 
 
 
 
51
  }
13
  * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
+ class Creativestyle_AmazonPayments_Block_Button_Js
17
+ extends Creativestyle_AmazonPayments_Block_Abstract
18
+ implements Creativestyle_AmazonPayments_Block_Js_Interface {
19
 
20
  public function getUrlParams() {
21
  if ($this->isLoginActive()) {
50
  return '{}';
51
  }
52
 
53
+ public function getCallbackName() {
54
+ return 'window.onAmazonPaymentsReady';
55
+ }
56
+
57
  }
app/code/community/Creativestyle/AmazonPayments/Block/Checkout/Js.php CHANGED
@@ -13,7 +13,9 @@
13
  * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
- class Creativestyle_AmazonPayments_Block_Checkout_Js extends Creativestyle_AmazonPayments_Block_Checkout_Abstract {
 
 
17
 
18
  public function getAddressBookWidgetSize() {
19
  return $this->_getConfig()->getAddressBookWidgetSize();
@@ -31,4 +33,8 @@ class Creativestyle_AmazonPayments_Block_Checkout_Js extends Creativestyle_Amazo
31
  return $this->_getConfig()->isResponsive();
32
  }
33
 
 
 
 
 
34
  }
13
  * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
+ class Creativestyle_AmazonPayments_Block_Checkout_Js
17
+ extends Creativestyle_AmazonPayments_Block_Checkout_Abstract
18
+ implements Creativestyle_AmazonPayments_Block_Js_Interface {
19
 
20
  public function getAddressBookWidgetSize() {
21
  return $this->_getConfig()->getAddressBookWidgetSize();
33
  return $this->_getConfig()->isResponsive();
34
  }
35
 
36
+ public function getCallbackName() {
37
+ return 'window.onAmazonPaymentsReady';
38
+ }
39
+
40
  }
app/code/community/Creativestyle/AmazonPayments/Block/Head.php DELETED
@@ -1,22 +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_Block_Head extends Creativestyle_AmazonPayments_Block_Abstract {
17
-
18
- public function getWidgetUrl() {
19
- return $this->_getConfig()->getWidgetUrl();
20
- }
21
-
22
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Creativestyle/AmazonPayments/Block/Js.php ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_Block_Js extends Creativestyle_AmazonPayments_Block_Abstract {
17
+
18
+ protected $_callbacks = null;
19
+ protected $_scripts = null;
20
+
21
+ protected function _addCallback($js, $callback) {
22
+ if (null === $this->_callbacks || !is_array($this->_callbacks)) {
23
+ $this->_callbacks = array($callback => array($js));
24
+ } else {
25
+ if (!array_key_exists($callback, $this->_callbacks)) {
26
+ $this->_callbacks[$callback] = array();
27
+ }
28
+ $this->_callbacks[$callback][] = $js;
29
+ }
30
+ return $this;
31
+ }
32
+
33
+ protected function _addScript($js) {
34
+ if (null === $this->_scripts || !is_array($this->_scripts)) {
35
+ $this->_scripts = array($js);
36
+ } else {
37
+ $this->_scripts[] = $js;
38
+ }
39
+ return $this;
40
+ }
41
+
42
+ public function getWidgetUrl() {
43
+ return $this->_getConfig()->getWidgetUrl();
44
+ }
45
+
46
+ public function getJsScripts() {
47
+ if (null === $this->_callbacks && null === $this->_scripts) {
48
+ foreach ($this->getSortedChildren() as $name) {
49
+ $block = $this->getLayout()->getBlock($name);
50
+ if (!$block) {
51
+ Mage::throwException(Mage::helper('core')->__('Invalid block: %s', $name));
52
+ } else if ($block instanceof Creativestyle_AmazonPayments_Block_Js_Interface && $block->getCallbackName() && $block->toHtml()) {
53
+ $this->_addCallback($block->toHtml(), $block->getCallbackName());
54
+ } else if ($block->toHtml()) {
55
+ $this->_addScript($block->toHtml());
56
+ }
57
+ }
58
+ }
59
+
60
+ $output = '';
61
+
62
+ if (null !== $this->_callbacks && is_array($this->_callbacks)) {
63
+ foreach ($this->_callbacks as $callbackName => $callbackFunctions) {
64
+ if (is_array($callbackFunctions)) {
65
+ array_unshift($callbackFunctions, $callbackName . ' = function() {');
66
+ array_push($callbackFunctions, '}');
67
+ $output .= implode("\n", $callbackFunctions) . "\n\n";
68
+ }
69
+ }
70
+ }
71
+
72
+ if (null !== $this->_scripts && is_array($this->_scripts)) {
73
+ foreach ($this->_scripts as $script) {
74
+ $output .= $script . "\n\n";
75
+ }
76
+ }
77
+
78
+ return $output;
79
+ }
80
+
81
+ }
app/code/community/Creativestyle/AmazonPayments/Block/{Login/Logout.php → Js/Interface.php} RENAMED
@@ -13,4 +13,8 @@
13
  * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
- class Creativestyle_AmazonPayments_Block_Login_Logout extends Creativestyle_AmazonPayments_Block_Login_Abstract {}
 
 
 
 
13
  * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
+ interface Creativestyle_AmazonPayments_Block_Js_Interface {
17
+
18
+ public function getCallbackName();
19
+
20
+ }
app/code/community/Creativestyle/AmazonPayments/Block/Login/{Head.php → Js.php} RENAMED
@@ -13,10 +13,16 @@
13
  * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
- class Creativestyle_AmazonPayments_Block_Login_Head extends Creativestyle_AmazonPayments_Block_Login_Abstract {
 
 
17
 
18
  public function getClientId() {
19
  return $this->_getConfig()->getClientId();
20
  }
21
 
 
 
 
 
22
  }
13
  * @copyright Copyright (c) 2014 creativestyle GmbH
14
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
15
  */
16
+ class Creativestyle_AmazonPayments_Block_Login_Js
17
+ extends Creativestyle_AmazonPayments_Block_Login_Abstract
18
+ implements Creativestyle_AmazonPayments_Block_Js_Interface {
19
 
20
  public function getClientId() {
21
  return $this->_getConfig()->getClientId();
22
  }
23
 
24
+ public function getCallbackName() {
25
+ return 'window.onAmazonLoginReady';
26
+ }
27
+
28
  }
app/code/community/Creativestyle/AmazonPayments/Helper/Data.php CHANGED
@@ -133,6 +133,9 @@ class Creativestyle_AmazonPayments_Helper_Data extends Mage_Core_Helper_Abstract
133
 
134
  public function getHeadJs() {
135
  if ($this->_getConfig()->isActive()) {
 
 
 
136
  return 'creativestyle/apa_checkout.min.js';
137
  }
138
  }
133
 
134
  public function getHeadJs() {
135
  if ($this->_getConfig()->isActive()) {
136
+ if ($this->_getConfig()->getEnvironment() == 'sandbox') {
137
+ return 'creativestyle/apa_checkout.js';
138
+ }
139
  return 'creativestyle/apa_checkout.min.js';
140
  }
141
  }
app/code/community/Creativestyle/AmazonPayments/Model/Api/Login.php CHANGED
@@ -15,7 +15,7 @@
15
  */
16
  class Creativestyle_AmazonPayments_Model_Api_Login extends Creativestyle_AmazonPayments_Model_Api_Abstract {
17
 
18
- protected function _getApi($path, $params = null) {
19
  $url = trim($this->_getConfig()->getLoginApiUrl($this->_store), '/') . '/' . vsprintf($path, $params);
20
  $this->_api = curl_init($url);
21
  curl_setopt($this->_api, CURLOPT_RETURNTRANSFER, true);
@@ -25,6 +25,15 @@ class Creativestyle_AmazonPayments_Model_Api_Login extends Creativestyle_AmazonP
25
  protected function _call() {
26
  if (null !== $this->_api) {
27
  $response = curl_exec($this->_api);
 
 
 
 
 
 
 
 
 
28
  $responseData = $this->_processApiResponse($response);
29
  curl_close($this->_api);
30
  $this->_api = null;
@@ -54,11 +63,11 @@ class Creativestyle_AmazonPayments_Model_Api_Login extends Creativestyle_AmazonP
54
  }
55
 
56
  public function getTokenInfo($accessToken) {
57
- return $this->_getApi('auth/o2/tokeninfo?access_token=%s', array($accessToken))->_call();
58
  }
59
 
60
  public function getUserProfile($accessToken) {
61
- return $this->_getApi('user/profile')->_setAuthorizationHeader($accessToken)->_call();
62
  }
63
 
64
  }
15
  */
16
  class Creativestyle_AmazonPayments_Model_Api_Login extends Creativestyle_AmazonPayments_Model_Api_Abstract {
17
 
18
+ protected function _initApi($path, $params = null) {
19
  $url = trim($this->_getConfig()->getLoginApiUrl($this->_store), '/') . '/' . vsprintf($path, $params);
20
  $this->_api = curl_init($url);
21
  curl_setopt($this->_api, CURLOPT_RETURNTRANSFER, true);
25
  protected function _call() {
26
  if (null !== $this->_api) {
27
  $response = curl_exec($this->_api);
28
+
29
+ if ($response === false) {
30
+ $errorNo = curl_errno($this->_api);
31
+ $errorMsg = curl_error($this->_api);
32
+ curl_close($this->_api);
33
+ $this->_api = null;
34
+ throw new Creativestyle_AmazonPayments_Exception('[LWA-cURL:' . $errorNo . '] ' . $errorMsg);
35
+ }
36
+
37
  $responseData = $this->_processApiResponse($response);
38
  curl_close($this->_api);
39
  $this->_api = null;
63
  }
64
 
65
  public function getTokenInfo($accessToken) {
66
+ return $this->_initApi('auth/o2/tokeninfo?access_token=%s', array(urlencode($accessToken)))->_call();
67
  }
68
 
69
  public function getUserProfile($accessToken) {
70
+ return $this->_initApi('user/profile')->_setAuthorizationHeader($accessToken)->_call();
71
  }
72
 
73
  }
app/code/community/Creativestyle/AmazonPayments/Model/Autoload.php DELETED
@@ -1,89 +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_Model_Autoload {
17
-
18
- const SCOPE_FILE_PREFIX = '__';
19
-
20
- static protected $_instance;
21
-
22
- protected $_isIncludePathDefined= null;
23
-
24
- /**
25
- * Class constructor
26
- */
27
- public function __construct()
28
- {
29
- $this->_isIncludePathDefined = defined('COMPILER_INCLUDE_PATH');
30
- }
31
-
32
- /**
33
- * Singleton pattern implementation
34
- *
35
- * @return Varien_Autoload
36
- */
37
- static public function instance()
38
- {
39
- if (!self::$_instance) {
40
- self::$_instance = new Creativestyle_AmazonPayments_Model_Autoload();
41
- }
42
- return self::$_instance;
43
- }
44
-
45
- /**
46
- * Register SPL autoload function
47
- */
48
- static public function register()
49
- {
50
- spl_autoload_register(array(self::instance(), 'autoload'));
51
- }
52
-
53
- /**
54
- * Load class source code
55
- *
56
- * @param string $class
57
- */
58
- public function autoload($class)
59
- {
60
- if (in_array($class, array('Certificate', 'Message',
61
- 'SnsMessageParser', 'VerifySignature', 'IpnNotificationParser',
62
- 'OpenSslVerifySignature', 'SnsMessageValidator',
63
- 'XmlNotificationParser'
64
- ))) {
65
- $classArray = array('OffAmazonPaymentsNotifications', 'Impl', $class . '.php');
66
- if ($this->_isIncludePathDefined) {
67
- $classFile = COMPILER_INCLUDE_PATH . DIRECTORY_SEPARATOR . implode('_', $classArray);
68
- } else {
69
- $classFile = implode(DIRECTORY_SEPARATOR, $classArray);
70
- }
71
- return include $classFile;
72
- } else if ($class == 'OffAmazonPaymentsNotifications_Model_IPNNotificationMetadata') {
73
- if ($this->_isIncludePathDefined) {
74
- $classFile = COMPILER_INCLUDE_PATH . DIRECTORY_SEPARATOR . 'OffAmazonPaymentsNotifications_Model_IpnNotificationMetadata.php';
75
- } else {
76
- $classFile = 'OffAmazonPaymentsNotifications' . DIRECTORY_SEPARATOR . 'Model' . DIRECTORY_SEPARATOR . 'IpnNotificationMetadata.php';
77
- }
78
- return include $classFile;
79
- } else if ($class == 'OffAmazonPaymentsNotifications_NotificationImpl') {
80
- if ($this->_isIncludePathDefined) {
81
- $classFile = COMPILER_INCLUDE_PATH . DIRECTORY_SEPARATOR . 'OffAmazonPaymentsNotifications_Model_NotificationImpl.php';
82
- } else {
83
- $classFile = 'OffAmazonPaymentsNotifications' . DIRECTORY_SEPARATOR . 'Model' . DIRECTORY_SEPARATOR . 'NotificationImpl.php';
84
- }
85
- return include $classFile;
86
- }
87
- }
88
-
89
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Creativestyle/AmazonPayments/Model/Checkout.php CHANGED
@@ -107,7 +107,9 @@ class Creativestyle_AmazonPayments_Model_Checkout extends Mage_Checkout_Model_Ty
107
  return array('error' => -1, 'message' => Mage::helper('checkout')->__('Invalid shipping method.'));
108
  }
109
  $this->getQuote()->getShippingAddress()
110
- ->setShippingMethod($shippingMethod);
 
 
111
 
112
  $this->getCheckout()
113
  ->setStepData('shipping_method', 'complete', true)
107
  return array('error' => -1, 'message' => Mage::helper('checkout')->__('Invalid shipping method.'));
108
  }
109
  $this->getQuote()->getShippingAddress()
110
+ ->setShippingMethod($shippingMethod)
111
+ ->collectTotals()
112
+ ->save();
113
 
114
  $this->getCheckout()
115
  ->setStepData('shipping_method', 'complete', true)
app/code/community/Creativestyle/AmazonPayments/Model/Observer.php CHANGED
@@ -18,7 +18,6 @@ class Creativestyle_AmazonPayments_Model_Observer {
18
  const DATA_POLL_TRANSACTION_LIMIT = 36;
19
  const DATA_POLL_SLEEP_BETWEEN_TIME = 300000;
20
 
21
- static private $_autoloadAdded = false;
22
 
23
 
24
  // **********************************************************************
@@ -38,11 +37,11 @@ class Creativestyle_AmazonPayments_Model_Observer {
38
  *
39
  * @param Mage_Sales_Model_Order_Payment_Transaction $transaction
40
  */
41
- protected function _fetchTransactionInfo($transaction) {
42
  $transaction->getOrderPaymentObject()
43
  ->setOrder($transaction->getOrder())
44
  ->importTransactionInfo($transaction);
45
- $transaction->save();
46
  return $transaction->getId();
47
  }
48
 
@@ -89,6 +88,12 @@ class Creativestyle_AmazonPayments_Model_Observer {
89
  usleep(self::DATA_POLL_SLEEP_BETWEEN_TIME);
90
  }
91
  break;
 
 
 
 
 
 
92
  }
93
  if ($count >= self::DATA_POLL_TRANSACTION_LIMIT) {
94
  break;
@@ -106,19 +111,60 @@ class Creativestyle_AmazonPayments_Model_Observer {
106
 
107
  }
108
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
 
 
 
 
 
 
 
 
 
 
110
 
111
- // **********************************************************************
112
- // Event observers
113
-
114
- public function addAmazonAutoloader($observer) {
115
- if (!self::$_autoloadAdded) {
116
- Creativestyle_AmazonPayments_Model_Autoload::register();
117
- self::$_autoloadAdded = true;
 
 
 
 
118
  }
119
  return $this;
120
  }
121
 
 
 
 
 
 
122
  /**
123
  * Inject Authorize button to the admin order view page
124
  *
@@ -206,27 +252,8 @@ class Creativestyle_AmazonPayments_Model_Observer {
206
  try {
207
  $transaction = $observer->getEvent()->getOrderPaymentTransaction();
208
  if ($transaction->getId() && in_array($transaction->getOrderPaymentObject()->getMethod(), Mage::helper('amazonpayments')->getAvailablePaymentMethods())) {
209
- $updateFor = array();
210
- switch ($transaction->getTxnType()) {
211
- case Mage_Sales_Model_Order_Payment_Transaction::TYPE_AUTH:
212
- $updateFor = array('closed', 'declined');
213
- break;
214
- case Mage_Sales_Model_Order_Payment_Transaction::TYPE_CAPTURE:
215
- $updateFor = array('completed', 'closed', 'declined');
216
- break;
217
- case Mage_Sales_Model_Order_Payment_Transaction::TYPE_REFUND:
218
- $updateFor = array('completed', 'declined');
219
- break;
220
- }
221
- if (!empty($updateFor)) {
222
- $parentTransaction = $transaction->getParentTransaction();
223
- if (in_array(strtolower(Mage::helper('amazonpayments')->getTransactionStatus($transaction)), $updateFor) && $parentTransaction && !$parentTransaction->getIsClosed()) {
224
- $parentTransaction->getOrderPaymentObject()
225
- ->setOrder($parentTransaction->getOrder())
226
- ->importTransactionInfo($parentTransaction);
227
- $parentTransaction->save();
228
- }
229
- }
230
  }
231
  } catch (Exception $e) {
232
  Creativestyle_AmazonPayments_Model_Logger::logException($e);
18
  const DATA_POLL_TRANSACTION_LIMIT = 36;
19
  const DATA_POLL_SLEEP_BETWEEN_TIME = 300000;
20
 
 
21
 
22
 
23
  // **********************************************************************
37
  *
38
  * @param Mage_Sales_Model_Order_Payment_Transaction $transaction
39
  */
40
+ protected function _fetchTransactionInfo($transaction, $shouldSave = true) {
41
  $transaction->getOrderPaymentObject()
42
  ->setOrder($transaction->getOrder())
43
  ->importTransactionInfo($transaction);
44
+ if ($shouldSave) $transaction->save();
45
  return $transaction->getId();
46
  }
47
 
88
  usleep(self::DATA_POLL_SLEEP_BETWEEN_TIME);
89
  }
90
  break;
91
+ case null:
92
+ $recentTransactionId = $this->_fetchTransactionInfo($transaction);
93
+ $count++;
94
+ usleep(self::DATA_POLL_SLEEP_BETWEEN_TIME);
95
+ break;
96
+
97
  }
98
  if ($count >= self::DATA_POLL_TRANSACTION_LIMIT) {
99
  break;
111
 
112
  }
113
 
114
+ protected function _shouldUpdateParentTransaction($transaction) {
115
+ $updateMatrix = array(
116
+ 'completed' => array(
117
+ Mage_Sales_Model_Order_Payment_Transaction::TYPE_CAPTURE,
118
+ Mage_Sales_Model_Order_Payment_Transaction::TYPE_REFUND
119
+ ),
120
+ 'closed' => array(
121
+ Mage_Sales_Model_Order_Payment_Transaction::TYPE_AUTH,
122
+ Mage_Sales_Model_Order_Payment_Transaction::TYPE_CAPTURE
123
+ ),
124
+ 'declined' => array(
125
+ Mage_Sales_Model_Order_Payment_Transaction::TYPE_AUTH,
126
+ Mage_Sales_Model_Order_Payment_Transaction::TYPE_CAPTURE,
127
+ Mage_Sales_Model_Order_Payment_Transaction::TYPE_REFUND
128
+ )
129
+ );
130
+ $txnStatus = strtolower(Mage::helper('amazonpayments')->getTransactionStatus($transaction));
131
+ $txnType = $transaction->getTxnType();
132
+ if (array_key_exists($txnStatus, $updateMatrix) && in_array($txnType, $updateMatrix[$txnStatus])) {
133
+ return true;
134
+ }
135
+ return false;
136
+ }
137
 
138
+ protected function _updateParentTransaction($transaction, $shouldSave = true) {
139
+ if ($this->_shouldUpdateParentTransaction($transaction)) {
140
+ $parentTransaction = $transaction->getParentTransaction();
141
+ if ($parentTransaction && !$parentTransaction->getIsClosed()) {
142
+ $this->_fetchTransactionInfo($parentTransaction, $shouldSave);
143
+ }
144
+ }
145
+ return $this;
146
+ }
147
 
148
+ protected function _updateOrderTransaction($transaction, $shouldSave = true) {
149
+ if ($transaction->getTxnType() == Mage_Sales_Model_Order_Payment_Transaction::TYPE_CAPTURE) {
150
+ $txnStatus = strtolower(Mage::helper('amazonpayments')->getTransactionStatus($transaction));
151
+ if (in_array($txnStatus, array('completed', 'closed'))) {
152
+ $payment = $transaction->getOrderPaymentObject();
153
+ if ($payment) {
154
+ $payment->getMethodInstance()
155
+ ->setOrder($transaction->getOrder())
156
+ ->closeOrderReference($payment);
157
+ }
158
+ }
159
  }
160
  return $this;
161
  }
162
 
163
+
164
+
165
+ // **********************************************************************
166
+ // Event observers
167
+
168
  /**
169
  * Inject Authorize button to the admin order view page
170
  *
252
  try {
253
  $transaction = $observer->getEvent()->getOrderPaymentTransaction();
254
  if ($transaction->getId() && in_array($transaction->getOrderPaymentObject()->getMethod(), Mage::helper('amazonpayments')->getAvailablePaymentMethods())) {
255
+ $this->_updateParentTransaction($transaction);
256
+ $this->_updateOrderTransaction($transaction);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
257
  }
258
  } catch (Exception $e) {
259
  Creativestyle_AmazonPayments_Model_Logger::logException($e);
app/code/community/Creativestyle/AmazonPayments/Model/Payment/Advanced/Abstract.php CHANGED
@@ -382,4 +382,12 @@ abstract class Creativestyle_AmazonPayments_Model_Payment_Advanced_Abstract exte
382
  throw new Creativestyle_AmazonPayments_Exception('Transaction not found.');
383
  }
384
 
 
 
 
 
 
 
 
 
385
  }
382
  throw new Creativestyle_AmazonPayments_Exception('Transaction not found.');
383
  }
384
 
385
+ public function closeOrderReference(Mage_Payment_Model_Info $payment) {
386
+ $orderTransaction = $payment->lookupTransaction(false, Mage_Sales_Model_Order_Payment_Transaction::TYPE_ORDER);
387
+ if ($orderTransaction && !$orderTransaction->getIsClosed()) {
388
+ $this->_getApi()->setStore($payment->getOrder()->getStoreId())->closeOrderReference($orderTransaction->getTxnId());
389
+ $orderTransaction->close(true);
390
+ }
391
+ }
392
+
393
  }
app/code/community/Creativestyle/AmazonPayments/Model/Service/Login.php CHANGED
@@ -106,6 +106,7 @@ class Creativestyle_AmazonPayments_Model_Service_Login {
106
  ->setLastname($customerName->getLastname())
107
  ->setEmail($this->_amazonUserData->getEmail())
108
  ->setPassword($password)
 
109
  ->setConfirmation($password)
110
  ->setAmazonUserId($this->_amazonUserData->getUserId());
111
 
106
  ->setLastname($customerName->getLastname())
107
  ->setEmail($this->_amazonUserData->getEmail())
108
  ->setPassword($password)
109
+ ->setPasswordConfirmation($password)
110
  ->setConfirmation($password)
111
  ->setAmazonUserId($this->_amazonUserData->getUserId());
112
 
app/code/community/Creativestyle/AmazonPayments/controllers/Advanced/LoginController.php CHANGED
@@ -54,6 +54,7 @@ class Creativestyle_AmazonPayments_Advanced_LoginController extends Mage_Core_Co
54
  public function indexAction() {
55
  $accessToken = $this->getRequest()->getParam('access_token', null);
56
  if (null !== $accessToken) {
 
57
  try {
58
  $tokenInfo = $this->_getApi()->getTokenInfo($accessToken);
59
  if ($this->_validateAuthToken($tokenInfo)) {
54
  public function indexAction() {
55
  $accessToken = $this->getRequest()->getParam('access_token', null);
56
  if (null !== $accessToken) {
57
+ $accessToken = urldecode($accessToken);
58
  try {
59
  $tokenInfo = $this->_getApi()->getTokenInfo($accessToken);
60
  if ($this->_validateAuthToken($tokenInfo)) {
app/code/community/Creativestyle/AmazonPayments/etc/config.xml CHANGED
@@ -17,7 +17,7 @@
17
  <config>
18
  <modules>
19
  <Creativestyle_AmazonPayments>
20
- <version>1.2.6.2</version>
21
  </Creativestyle_AmazonPayments>
22
  </modules>
23
  <global>
@@ -103,24 +103,6 @@
103
  </amazonpayments_advanced_observer>
104
  </observers>
105
  </sales_order_payment_transaction_save_after>
106
- <resource_get_tablename>
107
- <observers>
108
- <amazonpayments_advanced_observer>
109
- <type>singleton</type>
110
- <class>Creativestyle_AmazonPayments_Model_Observer</class>
111
- <method>addAmazonAutoloader</method>
112
- </amazonpayments_advanced_observer>
113
- </observers>
114
- </resource_get_tablename>
115
- <add_spl_autoloader>
116
- <observers>
117
- <amazonpayments_advanced_observer>
118
- <type>singleton</type>
119
- <class>Creativestyle_AmazonPayments_Model_Observer</class>
120
- <method>addAmazonAutoloader</method>
121
- </amazonpayments_advanced_observer>
122
- </observers>
123
- </add_spl_autoloader>
124
  </events>
125
  <payment>
126
  <groups>
17
  <config>
18
  <modules>
19
  <Creativestyle_AmazonPayments>
20
+ <version>1.3.2</version>
21
  </Creativestyle_AmazonPayments>
22
  </modules>
23
  <global>
103
  </amazonpayments_advanced_observer>
104
  </observers>
105
  </sales_order_payment_transaction_save_after>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  </events>
107
  <payment>
108
  <groups>
app/design/frontend/base/default/layout/amazonpayments.xml CHANGED
@@ -19,11 +19,8 @@
19
  <reference name="head">
20
  <action method="addCss"><stylesheet helper="amazonpayments/getHeadCss"/></action>
21
  <action method="addCss"><stylesheet helper="amazonpayments/getWidgetsCss"/></action>
22
- <action method="addJs"><script helper="amazonpayments/getHeadJs"/></action>
23
  <action method="addJs"><script helper="amazonpayments/getHeadTooltipJs"/></action>
24
- <block type="amazonpayments/head" name="amazonpayments.head" template="creativestyle/amazonpayments/head.phtml">
25
- <block type="amazonpayments/login_head" name="amazonpayments.head.login" as="amazonpayments_login_head" template="creativestyle/amazonpayments/login/head.phtml"/>
26
- </block>
27
  </reference>
28
  <reference name="cart_sidebar.extra_actions">
29
  <block type="amazonpayments/pay_button" name="top_cart.amazonpayments.pay_button" before="-">
@@ -31,8 +28,9 @@
31
  </block>
32
  </reference>
33
  <reference name="before_body_end">
34
- <block type="amazonpayments/button_js" name="amazonpayments.button.js" template="creativestyle/amazonpayments/button/js.phtml">
35
- <block type="core/template" name="amazonpayments.button.tooltip" as="amazonpayments_button_tooltip" template="creativestyle/amazonpayments/button/tooltip.phtml"/>
 
36
  </block>
37
  </reference>
38
  </default>
@@ -93,8 +91,8 @@
93
  </block>
94
  </block>
95
  </reference>
96
- <reference name="before_body_end">
97
- <block type="amazonpayments/checkout_js" name="amazonpayments.checkout.js" template="creativestyle/amazonpayments/checkout/js.phtml"/>
98
  </reference>
99
  </amazonpayments_advanced_checkout_index>
100
  <amazonpayments_advanced_shippingmethod>
@@ -129,8 +127,8 @@
129
  </reference>
130
  </customer_account_login>
131
  <customer_account_logoutsuccess translate="label">
132
- <reference name="before_body_end">
133
- <block type="amazonpayments/login_logout" name="amazonpayments_login_logout" template="creativestyle/amazonpayments/login/logout.phtml"/>
134
  </reference>
135
  </customer_account_logoutsuccess>
136
  <amazonpayments_advanced_login_index>
19
  <reference name="head">
20
  <action method="addCss"><stylesheet helper="amazonpayments/getHeadCss"/></action>
21
  <action method="addCss"><stylesheet helper="amazonpayments/getWidgetsCss"/></action>
 
22
  <action method="addJs"><script helper="amazonpayments/getHeadTooltipJs"/></action>
23
+ <action method="addJs"><script helper="amazonpayments/getHeadJs"/></action>
 
 
24
  </reference>
25
  <reference name="cart_sidebar.extra_actions">
26
  <block type="amazonpayments/pay_button" name="top_cart.amazonpayments.pay_button" before="-">
28
  </block>
29
  </reference>
30
  <reference name="before_body_end">
31
+ <block type="amazonpayments/js" name="amazonpayments.js" template="creativestyle/amazonpayments/js.phtml">
32
+ <block type="amazonpayments/login_js" name="amazonpayments.js.login" as="amazonpayments_login_js" template="creativestyle/amazonpayments/login/js.phtml"/>
33
+ <block type="amazonpayments/button_js" name="amazonpayments.js.button" template="creativestyle/amazonpayments/button/js.phtml"/>
34
  </block>
35
  </reference>
36
  </default>
91
  </block>
92
  </block>
93
  </reference>
94
+ <reference name="amazonpayments.js">
95
+ <block type="amazonpayments/checkout_js" name="amazonpayments.js.checkout" template="creativestyle/amazonpayments/checkout/js.phtml"/>
96
  </reference>
97
  </amazonpayments_advanced_checkout_index>
98
  <amazonpayments_advanced_shippingmethod>
127
  </reference>
128
  </customer_account_login>
129
  <customer_account_logoutsuccess translate="label">
130
+ <reference name="amazonpayments.js">
131
+ <block type="amazonpayments/login_js" name="amazonpayments.js.logout" as="amazonpayments_logout_js" template="creativestyle/amazonpayments/login/logout.phtml"/>
132
  </reference>
133
  </customer_account_logoutsuccess>
134
  <amazonpayments_advanced_login_index>
app/design/frontend/base/default/template/creativestyle/amazonpayments/button/js.phtml CHANGED
@@ -13,8 +13,12 @@
13
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
14
  */
15
  ?>
16
- <script type="text/javascript">//<![CDATA[
17
- APA.initialize(
18
- '<?php echo $this->getMerchantId(); ?>', null, <?php echo ($this->isLive() ? 'true' : 'false'); ?>, <?php echo ($this->isVirtual() ? 'true' : 'false'); ?>, <?php echo $this->getUrlParams(); ?>, null, <?php echo $this->getDesignParams(); ?>
19
- ).renderButtonWidget('<?php echo $this->getChildHtml('amazonpayments_button_tooltip'); ?>');
20
- //]]></script>
 
 
 
 
13
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
14
  */
15
  ?>
16
+ APA.initialize(
17
+ '<?php echo $this->getMerchantId(); ?>', null, <?php echo ($this->isLive() ? 'true' : 'false'); ?>, <?php echo ($this->isVirtual() ? 'true' : 'false'); ?>, <?php echo $this->getUrlParams(); ?>, null, <?php echo $this->getDesignParams(); ?>
18
+ ).renderButtonWidget(
19
+ <?php if ($this->isVirtual()): ?>
20
+ '<img src="<?php echo $this->getSkinUrl('creativestyle/images/logo_a-glyph_1x.png'); ?>" alt="<?php echo $this->__('Pay with Amazon'); ?>"/><?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.'); ?>'
21
+ <?php else: ?>
22
+ '<img src="<?php echo $this->getSkinUrl('creativestyle/images/logo_a-glyph_1x.png'); ?>" alt="<?php echo $this->__('Pay with Amazon'); ?>"/><?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.'); ?>'
23
+ <?php endif; ?>
24
+ );
app/design/frontend/base/default/template/creativestyle/amazonpayments/button/tooltip.phtml DELETED
@@ -1,16 +0,0 @@
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) 2014 creativestyle GmbH
13
- * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
14
- */
15
- ?>
16
- <img src="<?php echo $this->getSkinUrl('creativestyle/images/logo_a-glyph_1x.png'); ?>" alt="<?php echo $this->__('Pay with Amazon'); ?>"/><?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.'); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/base/default/template/creativestyle/amazonpayments/checkout/js.phtml CHANGED
@@ -14,46 +14,41 @@
14
  */
15
  ?>
16
  <?php $orderReferenceId = $this->getOrderReferenceId(); ?>
17
- <script type="text/javascript">//<![CDATA[
18
 
19
- var quoteBaseGrandTotal = <?php echo (float)$this->getQuoteBaseGrandTotal(); ?>;
20
- var checkQuoteBaseGrandTotal = quoteBaseGrandTotal;
21
- var lastPrice;
22
-
23
- if (typeof Translator != 'undefined') {
24
- Translator.add('There was an error processing your order. Please contact us or try again later.', '<?php echo $this->__('There was an error processing your order. Please contact us or try again later.'); ?>');
25
- }
26
-
27
- APA.initialize('<?php echo $this->getMerchantId(); ?>', <?php echo $orderReferenceId ? '\'' . $orderReferenceId . '\'' : 'null'; ?>,
28
- <?php echo ($this->isLive() ? 'true' : 'false'); ?>, <?php echo ($this->isVirtual() ? 'true' : 'false'); ?>, {
29
- saveShipping: '<?php echo $this->getUrl('amazonpayments/advanced_checkout/saveShipping'); ?>',
30
- saveShippingMethod: '<?php echo $this->getUrl('amazonpayments/advanced_checkout/saveShippingMethod'); ?>',
31
- saveOrder: '<?php echo $this->getUrl('amazonpayments/advanced_checkout/saveOrder'); ?>',
32
- success: '<?php echo $this->getUrl('checkout/onepage/success'); ?>',
33
- failure: '<?php echo $this->getUrl('checkout/cart') ?>'
34
- }, {
35
- addressBook: 'addressBookWidgetDiv',
36
- wallet: 'walletWidgetDiv',
37
- shippingMethod: 'shippingMethodWidgetDiv',
38
- review: 'reviewWidgetDiv'
39
- }, {
40
- <?php if ($this->isResponsive()): ?>
41
- responsive: true,
42
- <?php else: ?>
43
- addressBook: {
44
- size: {
45
- width: '<?php echo $this->getAddressBookWidgetSize()->getWidth(); ?>',
46
- height: '<?php echo $this->getAddressBookWidgetSize()->getHeight(); ?>'
47
- }
48
- },
49
- wallet: {
50
- size: {
51
- width: '<?php echo $this->getWalletWidgetSize()->getWidth(); ?>',
52
- height: '<?php echo $this->getWalletWidgetSize()->getHeight(); ?>'
53
- }
54
  }
55
- <?php endif; ?>
56
  }
57
- ).initCheckout();
58
-
59
- //]]></script>
14
  */
15
  ?>
16
  <?php $orderReferenceId = $this->getOrderReferenceId(); ?>
 
17
 
18
+ var quoteBaseGrandTotal = <?php echo (float)$this->getQuoteBaseGrandTotal(); ?>;
19
+ var checkQuoteBaseGrandTotal = quoteBaseGrandTotal;
20
+ var lastPrice;
21
+ if (typeof Translator != 'undefined') {
22
+ Translator.add('There was an error processing your order. Please contact us or try again later.', '<?php echo $this->__('There was an error processing your order. Please contact us or try again later.'); ?>');
23
+ }
24
+ APA.initialize('<?php echo $this->getMerchantId(); ?>', <?php echo $orderReferenceId ? '\'' . $orderReferenceId . '\'' : 'null'; ?>,
25
+ <?php echo ($this->isLive() ? 'true' : 'false'); ?>, <?php echo ($this->isVirtual() ? 'true' : 'false'); ?>, {
26
+ saveShipping: '<?php echo $this->getUrl('amazonpayments/advanced_checkout/saveShipping'); ?>',
27
+ saveShippingMethod: '<?php echo $this->getUrl('amazonpayments/advanced_checkout/saveShippingMethod'); ?>',
28
+ saveOrder: '<?php echo $this->getUrl('amazonpayments/advanced_checkout/saveOrder'); ?>',
29
+ success: '<?php echo $this->getUrl('checkout/onepage/success'); ?>',
30
+ failure: '<?php echo $this->getUrl('checkout/cart') ?>'
31
+ }, {
32
+ addressBook: 'addressBookWidgetDiv',
33
+ wallet: 'walletWidgetDiv',
34
+ shippingMethod: 'shippingMethodWidgetDiv',
35
+ review: 'reviewWidgetDiv'
36
+ }, {
37
+ <?php if ($this->isResponsive()): ?>
38
+ responsive: true,
39
+ <?php else: ?>
40
+ addressBook: {
41
+ size: {
42
+ width: '<?php echo $this->getAddressBookWidgetSize()->getWidth(); ?>',
43
+ height: '<?php echo $this->getAddressBookWidgetSize()->getHeight(); ?>'
44
+ }
45
+ },
46
+ wallet: {
47
+ size: {
48
+ width: '<?php echo $this->getWalletWidgetSize()->getWidth(); ?>',
49
+ height: '<?php echo $this->getWalletWidgetSize()->getHeight(); ?>'
 
 
 
50
  }
 
51
  }
52
+ <?php endif; ?>
53
+ }
54
+ ).initCheckout();
app/design/frontend/base/default/template/creativestyle/amazonpayments/{login/head.phtml → js.phtml} RENAMED
@@ -13,8 +13,9 @@
13
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
14
  */
15
  ?>
16
- <script type="text/javascript">//<![CDATA[
17
- window.onAmazonLoginReady = function() {
18
- amazon.Login.setClientId('<?php echo $this->getClientId(); ?>');
19
- }
20
- //]]></script>
 
13
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
14
  */
15
  ?>
16
+ <?php if ($jsScripts = $this->getJsScripts()): ?>
17
+ <script type="text/javascript">//<![CDATA[
18
+ <?php echo $jsScripts; ?>
19
+ //]]></script>
20
+ <?php endif; ?>
21
+ <script async type="text/javascript" src="<?php echo $this->getWidgetUrl(); ?>"></script>
app/design/frontend/base/default/template/creativestyle/amazonpayments/{head.phtml → login/js.phtml} RENAMED
@@ -13,5 +13,4 @@
13
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
14
  */
15
  ?>
16
- <?php echo $this->getChildHtml('amazonpayments_login_head'); ?>
17
- <script type="text/javascript" src="<?php echo $this->getWidgetUrl(); ?>"></script>
13
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
14
  */
15
  ?>
16
+ amazon.Login.setClientId('<?php echo $this->getClientId(); ?>');
 
app/design/frontend/base/default/template/creativestyle/amazonpayments/login/logout.phtml CHANGED
@@ -13,6 +13,4 @@
13
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
14
  */
15
  ?>
16
- <script type="text/javascript">//<![CDATA[
17
- amazon.Login.logout();
18
- //]]></script>
13
  * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
14
  */
15
  ?>
16
+ amazon.Login.logout();
 
 
app/locale/de_DE/Creativestyle_AmazonPayments.csv CHANGED
@@ -26,6 +26,7 @@
26
  "30 days","30 Tage"
27
  "30 minutes","30 Minuten"
28
  "<div id=""creative-system-config"">creativestyle Extensions</div>","<div id=""creative-system-config"">creativestyle Erweiterungen</div>"
 
29
  "<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.","Mit <strong>Amazon Payments</strong> können Sie die in Ihrem Amazon-Account hinterlegten Zahlungs- und Versandinformationen nutzen, um schnell und sicher einzukaufen. Zudem genießen Sie den Käuferschutz, den Amazon mit der A-bis-z-Garantie bietet."
30
  "A capture of %s has been processed by Amazon Payments (%s). The new status is %s.","Eine Belastung (Capture) über %s wurde von Amazon Payments bearbeitet (%s). Der neue Status ist %s."
31
  "A capture request for %s has been submitted to Amazon Payments.","Eine Belastung (Capture) über %s wurde an Amazon Payments geschickt."
26
  "30 days","30 Tage"
27
  "30 minutes","30 Minuten"
28
  "<div id=""creative-system-config"">creativestyle Extensions</div>","<div id=""creative-system-config"">creativestyle Erweiterungen</div>"
29
+ "<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.","Mit <strong>Amazon Payments</strong> können Sie die in Ihrem Amazon-Account hinterlegten Zahlungs- und Versandinformationen nutzen, um schnell und sicher einzukaufen."
30
  "<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.","Mit <strong>Amazon Payments</strong> können Sie die in Ihrem Amazon-Account hinterlegten Zahlungs- und Versandinformationen nutzen, um schnell und sicher einzukaufen. Zudem genießen Sie den Käuferschutz, den Amazon mit der A-bis-z-Garantie bietet."
31
  "A capture of %s has been processed by Amazon Payments (%s). The new status is %s.","Eine Belastung (Capture) über %s wurde von Amazon Payments bearbeitet (%s). Der neue Status ist %s."
32
  "A capture request for %s has been submitted to Amazon Payments.","Eine Belastung (Capture) über %s wurde an Amazon Payments geschickt."
app/locale/en_GB/Creativestyle_AmazonPayments.csv CHANGED
@@ -26,6 +26,7 @@
26
  "30 days","30 days"
27
  "30 minutes","30 minutes"
28
  "<div id=""creative-system-config"">creativestyle Extensions</div>","<div id=""creative-system-config"">creativestyle Extensions</div>"
 
29
  "<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.","<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."
30
  "A capture of %s has been processed by Amazon Payments (%s). The new status is %s.","A capture of %s has been processed by Amazon Payments (%s). The new status is %s."
31
  "A capture request for %s has been submitted to Amazon Payments.","A capture request for %s has been submitted to Amazon Payments."
26
  "30 days","30 days"
27
  "30 minutes","30 minutes"
28
  "<div id=""creative-system-config"">creativestyle Extensions</div>","<div id=""creative-system-config"">creativestyle Extensions</div>"
29
+ "<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.","<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."
30
  "<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.","<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."
31
  "A capture of %s has been processed by Amazon Payments (%s). The new status is %s.","A capture of %s has been processed by Amazon Payments (%s). The new status is %s."
32
  "A capture request for %s has been submitted to Amazon Payments.","A capture request for %s has been submitted to Amazon Payments."
app/locale/en_US/Creativestyle_AmazonPayments.csv CHANGED
@@ -26,6 +26,7 @@
26
  "30 days","30 days"
27
  "30 minutes","30 minutes"
28
  "<div id=""creative-system-config"">creativestyle Extensions</div>","<div id=""creative-system-config"">creativestyle Extensions</div>"
 
29
  "<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.","<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."
30
  "A capture of %s has been processed by Amazon Payments (%s). The new status is %s.","A capture of %s has been processed by Amazon Payments (%s). The new status is %s."
31
  "A capture request for %s has been submitted to Amazon Payments.","A capture request for %s has been submitted to Amazon Payments."
26
  "30 days","30 days"
27
  "30 minutes","30 minutes"
28
  "<div id=""creative-system-config"">creativestyle Extensions</div>","<div id=""creative-system-config"">creativestyle Extensions</div>"
29
+ "<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.","<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."
30
  "<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.","<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."
31
  "A capture of %s has been processed by Amazon Payments (%s). The new status is %s.","A capture of %s has been processed by Amazon Payments (%s). The new status is %s."
32
  "A capture request for %s has been submitted to Amazon Payments.","A capture request for %s has been submitted to Amazon Payments."
js/creativestyle/apa_checkout.js ADDED
@@ -0,0 +1,465 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * This file is part of the official Amazon Payments Advanced extension
3
+ * for Magento (c) creativestyle GmbH <amazon@creativestyle.de>
4
+ * All rights reserved
5
+ *
6
+ * Reuse or modification of this source code is not allowed
7
+ * without written permission from creativestyle GmbH
8
+ *
9
+ * @category Creativestyle
10
+ * @package Creativestyle_AmazonPayments
11
+ * @copyright Copyright (c) 2014 creativestyle GmbH
12
+ * @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
13
+ */
14
+
15
+ if (!window.Review)
16
+ var Review = function() {};
17
+
18
+ var APA = {
19
+
20
+ live: true,
21
+ virtual: false,
22
+ submitAllowed: false,
23
+
24
+ Widgets: {
25
+ ShippingMethod: Class.create({
26
+ initialize: function(options) {
27
+ this.layer = $(APA.layers.shippingMethod);
28
+ Object.extend(this, options);
29
+ Event.stopObserving(this.layer, 'widget:update').observe('widget:update', this.onUpdate.bindAsEventListener(this));
30
+ },
31
+ update: function(html) {
32
+ try {
33
+ Element.update(this.layer, html);
34
+ if (!this.layer.down('input[type=radio]:checked')) {
35
+ var firstShippingMethod = this.layer.down('input[type=radio]');
36
+ if (firstShippingMethod) {
37
+ firstShippingMethod.checked = true;
38
+ };
39
+ }
40
+ Event.stopObserving(this.layer, 'change').observe('change', this.onShippingMethodSelect.bindAsEventListener(this));
41
+ Event.stopObserving(this.layer, 'widget:checked').observe('widget:checked', this.onShippingMethodSelect.bindAsEventListener(this));
42
+ Event.fire(this.layer, 'widget:update');
43
+ } catch(err) {
44
+ this.onError(err);
45
+ }
46
+ }
47
+ }),
48
+ Review: Class.create({
49
+ initialize: function(options) {
50
+ this.layer = $(APA.layers.review);
51
+ Object.extend(this, options);
52
+ },
53
+ update: function(html) {
54
+ try {
55
+ Element.update(this.layer, html);
56
+ } catch(err) {
57
+ this.onError(err);
58
+ }
59
+ }
60
+ })
61
+ },
62
+
63
+ setLoadWaiting: function() {
64
+ for (var i = 0; i < arguments.length; i++) {
65
+ if ($(arguments[i])) {
66
+ var container = $(arguments[i]).up('li');
67
+ container.addClassName('loading');
68
+ }
69
+ }
70
+ return this;
71
+ },
72
+
73
+ unsetLoadWaiting: function() {
74
+ for (var i = 0; i < arguments.length; i++) {
75
+ if ($(arguments[i])) {
76
+ var container = $(arguments[i]).up('li');
77
+ container.removeClassName('loading');
78
+ }
79
+ }
80
+ return this;
81
+ },
82
+
83
+ setOrderSaveWaiting: function() {
84
+ if ($(APA.layers.review)) {
85
+ var loader = $(APA.layers.review).down('.please-wait');
86
+ if (loader) {
87
+ Element.show(loader);
88
+ }
89
+ }
90
+ if ($('checkoutSteps')) {
91
+ $('checkoutSteps').insert({
92
+ top: new Element('div', {'class': 'amazon-widget-overlay'})
93
+ });
94
+ }
95
+ this.disableSubmit();
96
+ },
97
+
98
+ unsetOrderSaveWaiting: function() {
99
+ if ($(APA.layers.review)) {
100
+ var loader = $(APA.layers.review).down('.please-wait');
101
+ if (loader) {
102
+ Element.hide(loader);
103
+ }
104
+ }
105
+ if ($('checkoutSteps') && $('checkoutSteps').down('.amazon-widget-overlay')) {
106
+ $('checkoutSteps').down('.amazon-widget-overlay').remove();
107
+ }
108
+ this.enableSubmit();
109
+ },
110
+
111
+ initCheckout: function() {
112
+ this.disableSubmit().scaffoldPaymentWidget();
113
+ if (this.virtual) {
114
+ return this.setLoadWaiting(APA.layers.wallet).renderWalletWidget();
115
+ }
116
+ if (!this.orderReferenceId) {
117
+ return this.setLoadWaiting(APA.layers.shippingMethod, APA.layers.wallet, APA.layers.review).renderAddressBookWidget();
118
+ }
119
+ return this.setLoadWaiting(APA.layers.shippingMethod, APA.layers.wallet, APA.layers.review).renderAddressBookWidget().renderWalletWidget();
120
+ },
121
+
122
+ scaffoldPaymentWidget: function() {
123
+ if (typeof APA.design.wallet.size != 'undefined' && !APA.design.responsive) {
124
+ if (APA.design.wallet.size.width) {
125
+ $(APA.layers.wallet).up().setStyle({width: APA.design.wallet.size.width});
126
+ }
127
+ if (APA.design.wallet.size.height) {
128
+ $(APA.layers.wallet).up().setStyle({height: APA.design.wallet.size.height});
129
+ }
130
+ }
131
+ return this;
132
+ },
133
+
134
+ renderButtonWidget: function(tooltipContent) {
135
+ if (APA.urls.login != null) {
136
+ $$(APA.layers.payButtons).each(function(button) {
137
+ new OffAmazonPayments.Button(button.identify(), APA.sellerId, {
138
+ type: button.buttonType || APA.design.payButton.type || 'PwA',
139
+ size: button.buttonSize || APA.design.payButton.size,
140
+ color: button.buttonColor || APA.design.payButton.color,
141
+ authorization: function() {
142
+ amazon.Login.authorize({
143
+ scope: 'profile payments:widget payments:shipping_address',
144
+ popup: true
145
+ }, APA.urls.pay);
146
+ },
147
+ onError: APA.amazonErrorCallback
148
+ });
149
+ });
150
+ $$(APA.layers.loginButtons).each(function(button) {
151
+ new OffAmazonPayments.Button(button.identify(), APA.sellerId, {
152
+ type: button.buttonType || APA.design.loginButton.type || 'LwA',
153
+ size: button.buttonSize || APA.design.loginButton.size,
154
+ color: button.buttonColor || APA.design.loginButton.color,
155
+ authorization: function() {
156
+ amazon.Login.authorize({
157
+ scope: 'profile payments:widget payments:shipping_address',
158
+ popup: true
159
+ }, APA.urls.login);
160
+ },
161
+ onError: APA.amazonErrorCallback
162
+ });
163
+ });
164
+ } else {
165
+ $$(APA.layers.payButtons).each(function(button) {
166
+ new OffAmazonPayments.Widgets.Button({
167
+ sellerId: APA.sellerId,
168
+ useAmazonAddressBook: !APA.virtual,
169
+ onSignIn: APA.signInCallback,
170
+ onError: APA.amazonErrorCallback
171
+ }).bind(button.identify());
172
+ });
173
+ }
174
+
175
+ // add tooltips
176
+ if (tooltipContent && typeof Tooltip != 'undefined') {
177
+ var tooltipButtons = $$(APA.layers.payButtons + ',' + APA.layers.loginButtons).findAll(function(button) {
178
+ return button.hasClassName('with-tooltip');
179
+ });
180
+ if (tooltipButtons.length) {
181
+ var tooltip = document.createElement('div');
182
+ tooltip.setAttribute('id', 'pay-with-amazon-tooltip');
183
+ tooltip.addClassName('pay-with-amazon-tooltip');
184
+ tooltip.setStyle({display: 'none', zIndex: 10});
185
+ tooltip.update(tooltipContent);
186
+ document.body.appendChild(tooltip);
187
+ tooltipButtons.each(function(button) {
188
+ var buttonImg = button.down('img');
189
+ if (buttonImg) {
190
+ new Tooltip(buttonImg, tooltip);
191
+ }
192
+ });
193
+ }
194
+ }
195
+ },
196
+
197
+ signInCallback: function(orderReference) {
198
+ var id = document.createElement('input');
199
+ id.setAttribute('type', 'hidden');
200
+ id.setAttribute('name', 'orderReferenceId');
201
+ id.setAttribute('value', orderReference.getAmazonOrderReferenceId());
202
+ var form = document.createElement('form');
203
+ form.setAttribute('method', 'post');
204
+ form.setAttribute('action', APA.urls.checkout);
205
+ form.appendChild(id);
206
+ document.body.appendChild(form);
207
+ form.submit();
208
+ return;
209
+ },
210
+
211
+ renderAddressBookWidget: function() {
212
+ APA.setLoadWaiting(APA.layers.shippingMethod, APA.layers.review);
213
+ new OffAmazonPayments.Widgets.AddressBook({
214
+ sellerId: APA.sellerId,
215
+ onOrderReferenceCreate: APA.orderReferenceCreateCallback,
216
+ amazonOrderReferenceId: APA.orderReferenceId,
217
+ design: (APA.design.responsive ? {designMode: 'responsive'} : APA.design.addressBook),
218
+ onAddressSelect: APA.addressSelectCallback,
219
+ onError: APA.amazonErrorCallback,
220
+ }).bind(APA.layers.addressBook);
221
+ return this;
222
+ },
223
+
224
+ orderReferenceCreateCallback: function(orderReference) {
225
+ if (!APA.orderReferenceId) {
226
+ APA.orderReferenceId = orderReference.getAmazonOrderReferenceId();
227
+ if (!APA.virtual) {
228
+ APA.renderWalletWidget();
229
+ }
230
+ }
231
+ },
232
+
233
+ addressSelectCallback: function() {
234
+ APA.setLoadWaiting(APA.layers.shippingMethod, APA.layers.review);
235
+ new Ajax.Request(APA.urls.saveShipping, {
236
+ method: 'post',
237
+ parameters: {orderReferenceId: APA.orderReferenceId},
238
+ evalScripts: true,
239
+ onSuccess: APA.successCallback,
240
+ onFailure: APA.ajaxFailureCallback
241
+ });
242
+ },
243
+
244
+ renderShippingMethodWidget: function(html) {
245
+ APA.setLoadWaiting(APA.layers.review);
246
+ new APA.Widgets.ShippingMethod({
247
+ onShippingMethodSelect: APA.shippingMethodSelectCallback,
248
+ onUpdate: APA.shippingMethodUpdateCallback,
249
+ onError: APA.magentoErrorCallback
250
+ }).update(html);
251
+ return this;
252
+ },
253
+
254
+ shippingMethodSelectCallback: function(event) {
255
+ APA.setLoadWaiting(APA.layers.review);
256
+ new Ajax.Request(APA.urls.saveShippingMethod, {
257
+ method: 'post',
258
+ parameters: Form.serialize($('co-shipping-method-form')),
259
+ evalScripts: true,
260
+ onSuccess: APA.successCallback,
261
+ onFailure: APA.ajaxFailureCallback
262
+ });
263
+ },
264
+
265
+ shippingMethodUpdateCallback: function(event) {
266
+ var element = Event.element(event);
267
+ Event.fire(element, 'widget:checked');
268
+ },
269
+
270
+ renderWalletWidget: function() {
271
+ new OffAmazonPayments.Widgets.Wallet({
272
+ sellerId: APA.sellerId,
273
+ onOrderReferenceCreate: APA.orderReferenceCreateCallback,
274
+ amazonOrderReferenceId: APA.orderReferenceId,
275
+ design: (APA.design.responsive ? {designMode: 'responsive'} : APA.design.wallet),
276
+ onError: APA.amazonErrorCallback
277
+ }).bind(APA.layers.wallet);
278
+ return this;
279
+ },
280
+
281
+ renderReviewWidget: function(html) {
282
+ new APA.Widgets.Review({
283
+ onError: APA.magentoErrorCallback
284
+ }).update(html);
285
+ this.submitAllowed ? this.enableSubmit() : this.disableSubmit();
286
+ return this;
287
+ },
288
+
289
+ successCallback: function(transport) {
290
+ response = eval('(' + transport.responseText + ')');
291
+ if (response.error) {
292
+ APA.magentoErrorCallback(response.error_messages);
293
+ };
294
+
295
+ if (response.render_widget) {
296
+ $H(response.render_widget).each(function(pair) {
297
+ APA['render' + pair.key.capitalize().camelize() + 'Widget'](pair.value);
298
+ if (pair.value) {
299
+ APA.unsetLoadWaiting(APA.layers[pair.key.camelize()]);
300
+ }
301
+ });
302
+ };
303
+
304
+ if (response.allow_submit) {
305
+ APA.allowSubmit(true);
306
+ } else {
307
+ APA.allowSubmit(false);
308
+ }
309
+ },
310
+
311
+ saveOrderCallback: function(transport) {
312
+ response = eval('(' + transport.responseText + ')');
313
+ if (response.success) {
314
+ window.location = APA.urls.success;
315
+ };
316
+ if (response.redirect) {
317
+ window.location = response.redirect;
318
+ }
319
+ if (response.error) {
320
+ APA.unsetOrderSaveWaiting();
321
+ APA.magentoErrorCallback(response.error_messages);
322
+ };
323
+ },
324
+
325
+ ajaxFailureCallback: function() {
326
+ window.location.href = APA.urls.failure;
327
+ },
328
+
329
+ amazonErrorCallback: function(error) {
330
+ if (!APA.live) {
331
+ console.trace();
332
+ alert(error.getErrorMessage());
333
+ }
334
+ var redirectErrors = ['BuyerNotAssociated', 'BuyerSessionExpired', 'StaleOrderReference'];
335
+ if (redirectErrors.any(function(errorCode) { return errorCode == error.getErrorCode() })) {
336
+ window.location.href = APA.urls.failure;
337
+ }
338
+ },
339
+
340
+ magentoErrorCallback: function(error) {
341
+ if (!APA.live) {
342
+ console.trace();
343
+ }
344
+ if (typeof(error) == 'object') {
345
+ error = error.join("\n");
346
+ }
347
+ if (error) {
348
+ alert(error);
349
+ }
350
+ },
351
+
352
+ allowSubmit: function(allowed) {
353
+ this.submitAllowed = allowed;
354
+ if (allowed) {
355
+ return this.enableSubmit();
356
+ } else {
357
+ return this.disableSubmit();
358
+ }
359
+ },
360
+
361
+ disableSubmit: function() {
362
+ var buttonContainers = $(this.layers.review).select('div.buttons-set');
363
+ if (buttonContainers) {
364
+ buttonContainers.each(function(buttonContainer) {
365
+ buttonContainer.addClassName('disabled');
366
+ var button = buttonContainer.down('button[type=submit].button');
367
+ if (button) {
368
+ button.disabled = true;
369
+ }
370
+ });
371
+ }
372
+ return this;
373
+ },
374
+
375
+ enableSubmit: function() {
376
+ if (this.submitAllowed) {
377
+ var buttonContainers = $(this.layers.review).select('div.buttons-set');
378
+ if (buttonContainers) {
379
+ buttonContainers.each(function(buttonContainer) {
380
+ buttonContainer.removeClassName('disabled');
381
+ var button = buttonContainer.down('button[type=submit].button');
382
+ if (button) {
383
+ button.disabled = false;
384
+ }
385
+ });
386
+ }
387
+ }
388
+ return this;
389
+ },
390
+
391
+ saveOrder: function() {
392
+ APA.setOrderSaveWaiting();
393
+ new Ajax.Request(APA.urls.saveOrder, {
394
+ method: 'post',
395
+ parameters: APA.getSaveOrderParams(),
396
+ onSuccess: APA.saveOrderCallback,
397
+ onFailure: APA.ajaxFailureCallback
398
+ });
399
+ },
400
+
401
+ getSaveOrderParams: function() {
402
+ var params = '';
403
+ if (APA.virtual) {
404
+ if ($('checkout-agreements')) {
405
+ params += Form.serialize($('checkout-agreements'));
406
+ }
407
+ } else {
408
+ params = Form.serialize($('co-shipping-method-form'));
409
+ if ($('checkout-agreements')) {
410
+ params += '&' + Form.serialize($('checkout-agreements'));
411
+ }
412
+ }
413
+ params.save = true;
414
+ return params;
415
+ },
416
+
417
+ initialize: function(sellerId, orderReferenceId, live, virtual, urls, layers, design) {
418
+ return Object.extend(APA, {
419
+ sellerId: sellerId,
420
+ orderReferenceId: orderReferenceId,
421
+ live: live,
422
+ virtual: virtual,
423
+ urls: Object.extend({
424
+ login: null,
425
+ pay: null,
426
+ checkout: null,
427
+ saveShipping: null,
428
+ saveShippingMethod: null,
429
+ saveOrder: null,
430
+ success: null,
431
+ failure: null
432
+ }, urls),
433
+ layers: Object.extend({
434
+ payButtons: '.payButtonWidget',
435
+ loginButtons: '.loginButtonWidget',
436
+ addressBook: 'addressBookWidgetDiv',
437
+ wallet: 'walletWidgetDiv',
438
+ shippingMethod: 'shippingMethodWidgetDiv',
439
+ review: 'reviewWidgetDiv'
440
+ }, layers),
441
+ design: Object.extend({
442
+ addressBook: {
443
+ size: {
444
+ width: '440px',
445
+ height: '260px'
446
+ }
447
+ },
448
+ wallet: {
449
+ size: {
450
+ width: '440px',
451
+ height: '260px'
452
+ }
453
+ },
454
+ payButton: {
455
+ type: 'PwA'
456
+ },
457
+ loginButton: {
458
+ type: 'LwA'
459
+ }
460
+ }, design)
461
+ });
462
+ }
463
+
464
+ };
465
+
lib/OffAmazonPayments/Model.php CHANGED
@@ -348,4 +348,3 @@ abstract class OffAmazonPayments_Model
348
  return "https://mws.amazonservices.com/ipn/OffAmazonPayments/2013-01-01";
349
  }
350
  }
351
- ?>
348
  return "https://mws.amazonservices.com/ipn/OffAmazonPayments/2013-01-01";
349
  }
350
  }
 
lib/OffAmazonPaymentsNotifications/Client.php CHANGED
@@ -28,7 +28,7 @@ class OffAmazonPaymentsNotifications_Client
28
  * Store an instance of the sns message validator
29
  * object
30
  *
31
- * @var SnsMessageValidator
32
  */
33
  private $_snsMessageValidator = null;
34
 
@@ -40,7 +40,7 @@ class OffAmazonPaymentsNotifications_Client
40
  public function __construct()
41
  {
42
  $this->_snsMessageValidator
43
- = new SnsMessageValidator(new OpenSslVerifySignature());
44
  }
45
 
46
  /**
@@ -58,15 +58,14 @@ class OffAmazonPaymentsNotifications_Client
58
  {
59
  // Is this json, is this
60
  // an sns message, do we have the fields we require
61
- $snsMessage = SnsMessageParser::parseNotification($headers, $body);
62
  // security validation - check that this message is
63
  // from amazon and that it has been signed correctly
64
  $this->_snsMessageValidator->validateMessage($snsMessage);
65
 
66
  // Convert to object - convert from basic class to object
67
- $ipnMessage = IpnNotificationParser::parseSnsMessage($snsMessage);
68
 
69
- return XmlNotificationParser::parseIpnMessage($ipnMessage);
70
  }
71
  }
72
- ?>
28
  * Store an instance of the sns message validator
29
  * object
30
  *
31
+ * @var OffAmazonPaymentsNotifications_Impl_SnsMessageValidator
32
  */
33
  private $_snsMessageValidator = null;
34
 
40
  public function __construct()
41
  {
42
  $this->_snsMessageValidator
43
+ = new OffAmazonPaymentsNotifications_Impl_SnsMessageValidator(new OffAmazonPaymentsNotifications_Impl_OpenSslVerifySignature());
44
  }
45
 
46
  /**
58
  {
59
  // Is this json, is this
60
  // an sns message, do we have the fields we require
61
+ $snsMessage = OffAmazonPaymentsNotifications_Impl_SnsMessageParser::parseNotification($headers, $body);
62
  // security validation - check that this message is
63
  // from amazon and that it has been signed correctly
64
  $this->_snsMessageValidator->validateMessage($snsMessage);
65
 
66
  // Convert to object - convert from basic class to object
67
+ $ipnMessage = OffAmazonPaymentsNotifications_Impl_IpnNotificationParser::parseSnsMessage($snsMessage);
68
 
69
+ return OffAmazonPaymentsNotifications_Impl_XmlNotificationParser::parseIpnMessage($ipnMessage);
70
  }
71
  }
 
lib/OffAmazonPaymentsNotifications/Impl/Certificate.php CHANGED
@@ -20,7 +20,7 @@
20
  * Class to wrap a Certificate
21
  *
22
  */
23
- class Certificate
24
  {
25
  /**
26
  * Certificate as string (read from file/URL)
@@ -75,4 +75,4 @@ class Certificate
75
  return $certSubject;
76
  }
77
  }
78
- ?>
20
  * Class to wrap a Certificate
21
  *
22
  */
23
+ class OffAmazonPaymentsNotifications_Impl_Certificate
24
  {
25
  /**
26
  * Certificate as string (read from file/URL)
75
  return $certSubject;
76
  }
77
  }
78
+
lib/OffAmazonPaymentsNotifications/Impl/IpnNotificationParser.php CHANGED
@@ -20,7 +20,7 @@
20
  * Wrapper around a decoded IPN notification message
21
  * in json format
22
  */
23
- class IpnNotificationParser
24
  {
25
  /**
26
  * Converts a an sns message into a
@@ -30,12 +30,12 @@ class IpnNotificationParser
30
  *
31
  * @throws OffAmazonPaymentsNotifications if there is an error
32
  *
33
- * @return Message ipn message
34
  */
35
- public static function parseSnsMessage(Message $snsMsg)
36
  {
37
  // Create the message and extract the information we need
38
- $ipnMsg = new Message($snsMsg->getMandatoryField("Message"));
39
  self::_addMetadataToIpnMessage(
40
  $ipnMsg,
41
  $snsMsg->getNotificationMetadata()
@@ -47,21 +47,20 @@ class IpnNotificationParser
47
  * Create the metadata object for the ipn message and attach
48
  * to the object instance
49
  *
50
- * @param Message $ipnMsg ipn message
51
  * @param OffAmazonPaymentsNotifications_NotificationMetadata $messageMetadata parent notification
52
  *
53
  * @return void
54
  */
55
  private static function _addMetadataToIpnMessage (
56
- Message $ipnMsg,
57
  OffAmazonPaymentsNotifications_NotificationMetadata $messageMetadata = null
58
  ) {
59
  $ipnMetadata
60
- = new OffAmazonPaymentsNotifications_Model_IPNNotificationMetadata(
61
  $ipnMsg,
62
  $messageMetadata
63
  );
64
  $ipnMsg->setNotificationMetadata($ipnMetadata);
65
  }
66
  }
67
- ?>
20
  * Wrapper around a decoded IPN notification message
21
  * in json format
22
  */
23
+ class OffAmazonPaymentsNotifications_Impl_IpnNotificationParser
24
  {
25
  /**
26
  * Converts a an sns message into a
30
  *
31
  * @throws OffAmazonPaymentsNotifications if there is an error
32
  *
33
+ * @return OffAmazonPaymentsNotifications_Impl_Message ipn message
34
  */
35
+ public static function parseSnsMessage(OffAmazonPaymentsNotifications_Impl_Message $snsMsg)
36
  {
37
  // Create the message and extract the information we need
38
+ $ipnMsg = new OffAmazonPaymentsNotifications_Impl_Message($snsMsg->getMandatoryField("Message"));
39
  self::_addMetadataToIpnMessage(
40
  $ipnMsg,
41
  $snsMsg->getNotificationMetadata()
47
  * Create the metadata object for the ipn message and attach
48
  * to the object instance
49
  *
50
+ * @param OffAmazonPaymentsNotifications_Impl_Message $ipnMsg ipn message
51
  * @param OffAmazonPaymentsNotifications_NotificationMetadata $messageMetadata parent notification
52
  *
53
  * @return void
54
  */
55
  private static function _addMetadataToIpnMessage (
56
+ OffAmazonPaymentsNotifications_Impl_Message $ipnMsg,
57
  OffAmazonPaymentsNotifications_NotificationMetadata $messageMetadata = null
58
  ) {
59
  $ipnMetadata
60
+ = new OffAmazonPaymentsNotifications_Model_IpnNotificationMetadata(
61
  $ipnMsg,
62
  $messageMetadata
63
  );
64
  $ipnMsg->setNotificationMetadata($ipnMetadata);
65
  }
66
  }
 
lib/OffAmazonPaymentsNotifications/Impl/Message.php CHANGED
@@ -20,7 +20,7 @@
20
  * Class to wrap a message
21
  *
22
  */
23
- class Message
24
  {
25
  /**
26
  * Json message as associative array
@@ -153,4 +153,3 @@ class Message
153
  }
154
  }
155
  }
156
- ?>
20
  * Class to wrap a message
21
  *
22
  */
23
+ class OffAmazonPaymentsNotifications_Impl_Message
24
  {
25
  /**
26
  * Json message as associative array
153
  }
154
  }
155
  }
 
lib/OffAmazonPaymentsNotifications/Impl/OpenSslVerifySignature.php CHANGED
@@ -20,7 +20,7 @@
20
  * OpenSSL Implemntation of the verify signature algorithm
21
  *
22
  */
23
- class OpenSslVerifySignature implements VerifySignature
24
  {
25
  /**
26
  * Create a new instance of the openssl implementation of
@@ -50,7 +50,7 @@ class OpenSslVerifySignature implements VerifySignature
50
  public function verifySignatureIsCorrect($data, $signature, $certificatePath)
51
  {
52
  $cert = $this->_getCertificateFromCertifcatePath($certificatePath);
53
- $certificate = new Certificate($cert);
54
 
55
  return $this->verifySignatureIsCorrectFromCertificate($data, $signature, $certificate);
56
  }
@@ -155,4 +155,4 @@ class OpenSslVerifySignature implements VerifySignature
155
  return $cert;
156
  }
157
  }
158
- ?>
20
  * OpenSSL Implemntation of the verify signature algorithm
21
  *
22
  */
23
+ class OffAmazonPaymentsNotifications_Impl_OpenSslVerifySignature implements OffAmazonPaymentsNotifications_Impl_VerifySignature
24
  {
25
  /**
26
  * Create a new instance of the openssl implementation of
50
  public function verifySignatureIsCorrect($data, $signature, $certificatePath)
51
  {
52
  $cert = $this->_getCertificateFromCertifcatePath($certificatePath);
53
+ $certificate = new OffAmazonPaymentsNotifications_Impl_Certificate($cert);
54
 
55
  return $this->verifySignatureIsCorrectFromCertificate($data, $signature, $certificate);
56
  }
155
  return $cert;
156
  }
157
  }
158
+
lib/OffAmazonPaymentsNotifications/Impl/SnsMessageParser.php CHANGED
@@ -19,7 +19,7 @@
19
  /**
20
  * Parses a json string message into an sns message
21
  */
22
- class SnsMessageParser
23
  {
24
 
25
  /**
@@ -30,12 +30,12 @@ class SnsMessageParser
30
  *
31
  * @throws OffAmazonPaymentsNotifications_InvalidMessageException if not valid json
32
  *
33
- * @return Message converted message
34
  */
35
  public static function parseNotification($headers, $jsonString)
36
  {
37
  self::_validateHeaders($headers);
38
- $snsMsg = new Message($jsonString);
39
  self::_checkForCorrectMessageType($snsMsg);
40
  self::_setMetadataForMessage($snsMsg);
41
  return $snsMsg;
@@ -99,11 +99,10 @@ class SnsMessageParser
99
  *
100
  * @return void
101
  */
102
- private static function _setMetadataForMessage(Message $snsMsg)
103
  {
104
  $notificationMetadata
105
  = new OffAmazonPaymentsNotifications_Model_SnsNotificationMetadata($snsMsg);
106
  $snsMsg->setNotificationMetadata($notificationMetadata);
107
  }
108
  }
109
- ?>
19
  /**
20
  * Parses a json string message into an sns message
21
  */
22
+ class OffAmazonPaymentsNotifications_Impl_SnsMessageParser
23
  {
24
 
25
  /**
30
  *
31
  * @throws OffAmazonPaymentsNotifications_InvalidMessageException if not valid json
32
  *
33
+ * @return OffAmazonPaymentsNotifications_Impl_Message converted message
34
  */
35
  public static function parseNotification($headers, $jsonString)
36
  {
37
  self::_validateHeaders($headers);
38
+ $snsMsg = new OffAmazonPaymentsNotifications_Impl_Message($jsonString);
39
  self::_checkForCorrectMessageType($snsMsg);
40
  self::_setMetadataForMessage($snsMsg);
41
  return $snsMsg;
99
  *
100
  * @return void
101
  */
102
+ private static function _setMetadataForMessage(OffAmazonPaymentsNotifications_Impl_Message $snsMsg)
103
  {
104
  $notificationMetadata
105
  = new OffAmazonPaymentsNotifications_Model_SnsNotificationMetadata($snsMsg);
106
  $snsMsg->setNotificationMetadata($notificationMetadata);
107
  }
108
  }
 
lib/OffAmazonPaymentsNotifications/Impl/SnsMessageValidator.php CHANGED
@@ -22,26 +22,26 @@
22
  * Amazon
23
  *
24
  */
25
- class SnsMessageValidator
26
  {
27
  /**
28
  * Implementation of the signature verification algorithm
29
  *
30
- * @var VerifySignature
31
  */
32
  private $_verifySignature = null;
33
 
34
  /**
35
  * Create new instance of the SnsMessageValidator
36
  *
37
- * @param VerifySignature $verifySignature implementation of the
38
  * verify signature algorithm
39
  *
40
  * @throws OffAmazonPaymentsNotifications_InvalidMessageException if verification fails
41
  *
42
  * @return void
43
  */
44
- public function __construct(VerifySignature $verifySignature)
45
  {
46
  $this->_verifySignature = $verifySignature;
47
  }
@@ -51,7 +51,7 @@ class SnsMessageValidator
51
  * defined as being signed by Amazon and that the
52
  * signature matches the message contents
53
  *
54
- * @param Message $snsMessage sns message to check
55
  *
56
  * @throws OffAmazonPaymentsNotifications_InvalidMessageException if the
57
  * validation
@@ -59,7 +59,7 @@ class SnsMessageValidator
59
  *
60
  * @return void
61
  */
62
- public function validateMessage(Message $snsMessage)
63
  {
64
  switch($snsMessage->getMandatoryField("SignatureVersion")) {
65
  case "1":
@@ -77,7 +77,7 @@ class SnsMessageValidator
77
  /**
78
  * Implement the version one signature verification algorithm
79
  *
80
- * @param Message $snsMessage sns message
81
  *
82
  * @throws OffAmazonPaymentsNotifications_InvalidMessageException if the
83
  * validation
@@ -85,7 +85,7 @@ class SnsMessageValidator
85
  *
86
  * @return void
87
  */
88
- private function _verifySignatureWithVersionOneAlgorithm(Message $snsMessage)
89
  {
90
  $result = $this->_verifySignature->verifySignatureIsCorrect(
91
  $this->_constructSignatureFromSnsMessage($snsMessage),
@@ -109,7 +109,7 @@ class SnsMessageValidator
109
  * Recreate the signature based on the field values for the
110
  * sns message
111
  *
112
- * @param Message $snsMessage sns message
113
  *
114
  * @throws OffAmazonPaymentsNotifications_InvalidMessageException if the
115
  * validation
@@ -117,7 +117,7 @@ class SnsMessageValidator
117
  *
118
  * @return string signature string
119
  */
120
- private function _constructSignatureFromSnsMessage(Message $snsMessage)
121
  {
122
  if (strcmp($snsMessage->getMandatoryField("Type"), "Notification") != 0) {
123
  throw new OffAmazonPaymentsNotifications_InvalidMessageException(
@@ -159,4 +159,4 @@ class SnsMessageValidator
159
  return implode("\n", $signatureFields) . "\n";
160
  }
161
  }
162
- ?>
22
  * Amazon
23
  *
24
  */
25
+ class OffAmazonPaymentsNotifications_Impl_SnsMessageValidator
26
  {
27
  /**
28
  * Implementation of the signature verification algorithm
29
  *
30
+ * @var OffAmazonPaymentsNotifications_Impl_VerifySignature
31
  */
32
  private $_verifySignature = null;
33
 
34
  /**
35
  * Create new instance of the SnsMessageValidator
36
  *
37
+ * @param OffAmazonPaymentsNotifications_Impl_VerifySignature $verifySignature implementation of the
38
  * verify signature algorithm
39
  *
40
  * @throws OffAmazonPaymentsNotifications_InvalidMessageException if verification fails
41
  *
42
  * @return void
43
  */
44
+ public function __construct(OffAmazonPaymentsNotifications_Impl_VerifySignature $verifySignature)
45
  {
46
  $this->_verifySignature = $verifySignature;
47
  }
51
  * defined as being signed by Amazon and that the
52
  * signature matches the message contents
53
  *
54
+ * @param OffAmazonPaymentsNotifications_Impl_Message $snsMessage sns message to check
55
  *
56
  * @throws OffAmazonPaymentsNotifications_InvalidMessageException if the
57
  * validation
59
  *
60
  * @return void
61
  */
62
+ public function validateMessage(OffAmazonPaymentsNotifications_Impl_Message $snsMessage)
63
  {
64
  switch($snsMessage->getMandatoryField("SignatureVersion")) {
65
  case "1":
77
  /**
78
  * Implement the version one signature verification algorithm
79
  *
80
+ * @param OffAmazonPaymentsNotifications_Impl_Message $snsMessage sns message
81
  *
82
  * @throws OffAmazonPaymentsNotifications_InvalidMessageException if the
83
  * validation
85
  *
86
  * @return void
87
  */
88
+ private function _verifySignatureWithVersionOneAlgorithm(OffAmazonPaymentsNotifications_Impl_Message $snsMessage)
89
  {
90
  $result = $this->_verifySignature->verifySignatureIsCorrect(
91
  $this->_constructSignatureFromSnsMessage($snsMessage),
109
  * Recreate the signature based on the field values for the
110
  * sns message
111
  *
112
+ * @param OffAmazonPaymentsNotifications_Impl_Message $snsMessage sns message
113
  *
114
  * @throws OffAmazonPaymentsNotifications_InvalidMessageException if the
115
  * validation
117
  *
118
  * @return string signature string
119
  */
120
+ private function _constructSignatureFromSnsMessage(OffAmazonPaymentsNotifications_Impl_Message $snsMessage)
121
  {
122
  if (strcmp($snsMessage->getMandatoryField("Type"), "Notification") != 0) {
123
  throw new OffAmazonPaymentsNotifications_InvalidMessageException(
159
  return implode("\n", $signatureFields) . "\n";
160
  }
161
  }
162
+
lib/OffAmazonPaymentsNotifications/Impl/VerifySignature.php CHANGED
@@ -20,7 +20,7 @@
20
  * signature verification algorithm
21
  *
22
  */
23
- interface VerifySignature
24
  {
25
  /**
26
  * Verify that the signature is correct for the given data and
@@ -38,4 +38,3 @@ interface VerifySignature
38
  */
39
  function verifySignatureIsCorrect($data, $signature, $certificatePath);
40
  }
41
- ?>
20
  * signature verification algorithm
21
  *
22
  */
23
+ interface OffAmazonPaymentsNotifications_Impl_VerifySignature
24
  {
25
  /**
26
  * Verify that the signature is correct for the given data and
38
  */
39
  function verifySignatureIsCorrect($data, $signature, $certificatePath);
40
  }
 
lib/OffAmazonPaymentsNotifications/Impl/XmlNotificationParser.php CHANGED
@@ -21,7 +21,7 @@
21
  * Wrapper around a decoded IPN notification message to create
22
  * the notification
23
  */
24
- class XmlNotificationParser
25
  {
26
  /**
27
  * Converts a ipn message into a
@@ -31,9 +31,9 @@ class XmlNotificationParser
31
  *
32
  * @throws OffAmazonPaymentsNotifications if there is an error
33
  *
34
- * @return Message
35
  */
36
- public static function parseIpnMessage(Message $ipnMsg)
37
  {
38
  $xmlDocumentElement = self::_getXmlFromIpnMessage($ipnMsg);
39
  return self::_createNotificationForNotificationType(
@@ -46,13 +46,13 @@ class XmlNotificationParser
46
  * Convert the xml message from the ipn payload
47
  * into an xml document
48
  *
49
- * @param Message $ipnMsg ipn message
50
  *
51
  * @throws OffAmazonPaymentsNotifications_InvalidMessageException
52
  *
53
  * @return XmlElement xml document element
54
  */
55
- private static function _getXmlFromIpnMessage(Message $ipnMsg)
56
  {
57
  // Try and load the notification data as xml
58
  $notificationData = $ipnMsg->getMandatoryField("NotificationData");
@@ -75,7 +75,7 @@ class XmlNotificationParser
75
  /**
76
  * Return a notification object initialised by the xml
77
  *
78
- * @param Message $ipnMsg ipn message
79
  * @param XmlNode $xmlDocumentElement xml message
80
  *
81
  * @throws OffAmazonPaymentsNotifications_InvalidMessageException
@@ -83,7 +83,7 @@ class XmlNotificationParser
83
  * @return OffAmazonPaymentsNotifications_Notification
84
  */
85
  private static function _createNotificationForNotificationType(
86
- Message $ipnMsg,
87
  $xmlDocumentElement
88
  ) {
89
  // Construct an instance of the notification class
@@ -155,4 +155,3 @@ class XmlNotificationParser
155
  return $notification;
156
  }
157
  }
158
- ?>
21
  * Wrapper around a decoded IPN notification message to create
22
  * the notification
23
  */
24
+ class OffAmazonPaymentsNotifications_Impl_XmlNotificationParser
25
  {
26
  /**
27
  * Converts a ipn message into a
31
  *
32
  * @throws OffAmazonPaymentsNotifications if there is an error
33
  *
34
+ * @return OffAmazonPaymentsNotifications_Impl_Message
35
  */
36
+ public static function parseIpnMessage(OffAmazonPaymentsNotifications_Impl_Message $ipnMsg)
37
  {
38
  $xmlDocumentElement = self::_getXmlFromIpnMessage($ipnMsg);
39
  return self::_createNotificationForNotificationType(
46
  * Convert the xml message from the ipn payload
47
  * into an xml document
48
  *
49
+ * @param OffAmazonPaymentsNotifications_Impl_Message $ipnMsg ipn message
50
  *
51
  * @throws OffAmazonPaymentsNotifications_InvalidMessageException
52
  *
53
  * @return XmlElement xml document element
54
  */
55
+ private static function _getXmlFromIpnMessage(OffAmazonPaymentsNotifications_Impl_Message $ipnMsg)
56
  {
57
  // Try and load the notification data as xml
58
  $notificationData = $ipnMsg->getMandatoryField("NotificationData");
75
  /**
76
  * Return a notification object initialised by the xml
77
  *
78
+ * @param OffAmazonPaymentsNotifications_Impl_Message $ipnMsg ipn message
79
  * @param XmlNode $xmlDocumentElement xml message
80
  *
81
  * @throws OffAmazonPaymentsNotifications_InvalidMessageException
83
  * @return OffAmazonPaymentsNotifications_Notification
84
  */
85
  private static function _createNotificationForNotificationType(
86
+ OffAmazonPaymentsNotifications_Impl_Message $ipnMsg,
87
  $xmlDocumentElement
88
  ) {
89
  // Construct an instance of the notification class
155
  return $notification;
156
  }
157
  }
 
lib/OffAmazonPaymentsNotifications/Interface.php CHANGED
@@ -36,4 +36,3 @@ interface OffAmazonPaymentsNotifications_Interface
36
  public function parseRawMessage($headers, $body);
37
  }
38
 
39
- ?>
36
  public function parseRawMessage($headers, $body);
37
  }
38
 
 
lib/OffAmazonPaymentsNotifications/InvalidCertificateException.php CHANGED
@@ -24,4 +24,4 @@ class OffAmazonPaymentsNotifications_InvalidCertificateException
24
  extends Exception
25
  {
26
  }
27
- ?>
24
  extends Exception
25
  {
26
  }
27
+
lib/OffAmazonPaymentsNotifications/InvalidMessageException.php CHANGED
@@ -24,4 +24,3 @@ class OffAmazonPaymentsNotifications_InvalidMessageException
24
  extends Exception
25
  {
26
  }
27
- ?>
24
  extends Exception
25
  {
26
  }
 
lib/OffAmazonPaymentsNotifications/Model/AuthorizationDetails.php CHANGED
@@ -741,4 +741,3 @@ class OffAmazonPaymentsNotifications_Model_AuthorizationDetails extends OffAmazo
741
  return !is_null($this->fields['SoftDescriptor']['FieldValue']);
742
  }
743
  }
744
- ?>
741
  return !is_null($this->fields['SoftDescriptor']['FieldValue']);
742
  }
743
  }
 
lib/OffAmazonPaymentsNotifications/Model/AuthorizationNotification.php CHANGED
@@ -28,7 +28,7 @@
28
  * </ul>
29
  */
30
  class OffAmazonPaymentsNotifications_Model_AuthorizationNotification
31
- extends OffAmazonPaymentsNotifications_NotificationImpl
32
  {
33
  /**
34
  * Construct new OffAmazonPaymentsNotifications_Model_AuthorizationNotification
@@ -156,4 +156,3 @@ class OffAmazonPaymentsNotifications_Model_AuthorizationNotification
156
  return $xml;
157
  }
158
  }
159
- ?>
28
  * </ul>
29
  */
30
  class OffAmazonPaymentsNotifications_Model_AuthorizationNotification
31
+ extends OffAmazonPaymentsNotifications_Model_NotificationImpl
32
  {
33
  /**
34
  * Construct new OffAmazonPaymentsNotifications_Model_AuthorizationNotification
156
  return $xml;
157
  }
158
  }
 
lib/OffAmazonPaymentsNotifications/Model/BillingAgreement.php CHANGED
@@ -351,4 +351,3 @@ class OffAmazonPaymentsNotifications_Model_BillingAgreement extends OffAmazonPay
351
  return ! is_null($this->fields['BillingAgreementConsent']['FieldValue']);
352
  }
353
  }
354
- ?>
351
  return ! is_null($this->fields['BillingAgreementConsent']['FieldValue']);
352
  }
353
  }
 
lib/OffAmazonPaymentsNotifications/Model/BillingAgreementLimits.php CHANGED
@@ -250,4 +250,3 @@ class OffAmazonPaymentsNotifications_Model_BillingAgreementLimits extends OffAma
250
  return ! is_null($this->fields['CurrentRemainingBalance']['FieldValue']);
251
  }
252
  }
253
- ?>
250
  return ! is_null($this->fields['CurrentRemainingBalance']['FieldValue']);
251
  }
252
  }
 
lib/OffAmazonPaymentsNotifications/Model/BillingAgreementNotification.php CHANGED
@@ -25,7 +25,7 @@
25
  *
26
  * </ul>
27
  */
28
- class OffAmazonPaymentsNotifications_Model_BillingAgreementNotification extends OffAmazonPaymentsNotifications_NotificationImpl
29
  {
30
 
31
  /**
@@ -144,4 +144,3 @@ class OffAmazonPaymentsNotifications_Model_BillingAgreementNotification extends
144
  return $xml;
145
  }
146
  }
147
- ?>
25
  *
26
  * </ul>
27
  */
28
+ class OffAmazonPaymentsNotifications_Model_BillingAgreementNotification extends OffAmazonPaymentsNotifications_Model_NotificationImpl
29
  {
30
 
31
  /**
144
  return $xml;
145
  }
146
  }
 
lib/OffAmazonPaymentsNotifications/Model/BillingAgreementStatus.php CHANGED
@@ -245,4 +245,3 @@ class OffAmazonPaymentsNotifications_Model_BillingAgreementStatus extends OffAma
245
  return ! is_null($this->fields['ReasonDescription']['FieldValue']);
246
  }
247
  }
248
- ?>
245
  return ! is_null($this->fields['ReasonDescription']['FieldValue']);
246
  }
247
  }
 
lib/OffAmazonPaymentsNotifications/Model/CaptureDetails.php CHANGED
@@ -581,4 +581,3 @@ class OffAmazonPaymentsNotifications_Model_CaptureDetails
581
 
582
  }
583
  }
584
- ?>
581
 
582
  }
583
  }
 
lib/OffAmazonPaymentsNotifications/Model/CaptureNotification.php CHANGED
@@ -27,7 +27,7 @@
27
  * </ul>
28
  */
29
  class OffAmazonPaymentsNotifications_Model_CaptureNotification
30
- extends OffAmazonPaymentsNotifications_NotificationImpl
31
  {
32
  /**
33
  * Construct new OffAmazonPaymentsNotifications_Model_CaptureNotification
@@ -155,4 +155,3 @@ class OffAmazonPaymentsNotifications_Model_CaptureNotification
155
  return $xml;
156
  }
157
  }
158
- ?>
27
  * </ul>
28
  */
29
  class OffAmazonPaymentsNotifications_Model_CaptureNotification
30
+ extends OffAmazonPaymentsNotifications_Model_NotificationImpl
31
  {
32
  /**
33
  * Construct new OffAmazonPaymentsNotifications_Model_CaptureNotification
155
  return $xml;
156
  }
157
  }
 
lib/OffAmazonPaymentsNotifications/Model/IdList.php CHANGED
@@ -106,4 +106,3 @@ class OffAmazonPaymentsNotifications_Model_IdList extends OffAmazonPayments_Mode
106
  return count($this->fields['Id']['FieldValue']) > 0;
107
  }
108
  }
109
- ?>
106
  return count($this->fields['Id']['FieldValue']) > 0;
107
  }
108
  }
 
lib/OffAmazonPaymentsNotifications/Model/IpnNotificationMetadata.php CHANGED
@@ -19,7 +19,7 @@
19
  /**
20
  * IPN Message information
21
  */
22
- class OffAmazonPaymentsNotifications_Model_IPNNotificationMetadata
23
  extends OffAmazonPaymentsNotifications_Model_NotificationMetadataImpl
24
  {
25
  /**
@@ -64,7 +64,7 @@ class OffAmazonPaymentsNotifications_Model_IPNNotificationMetadata
64
  * @return void
65
  */
66
  public function __construct(
67
- Message $message,
68
  OffAmazonPaymentsNotifications_NotificationMetadata $parentNotificationMetadata = null
69
  ) {
70
  $this->_timestamp
@@ -118,4 +118,3 @@ class OffAmazonPaymentsNotifications_Model_IPNNotificationMetadata
118
  return self::SOURCE_MESSAGE_TYPE;
119
  }
120
  }
121
- ?>
19
  /**
20
  * IPN Message information
21
  */
22
+ class OffAmazonPaymentsNotifications_Model_IpnNotificationMetadata
23
  extends OffAmazonPaymentsNotifications_Model_NotificationMetadataImpl
24
  {
25
  /**
64
  * @return void
65
  */
66
  public function __construct(
67
+ OffAmazonPaymentsNotifications_Impl_Message $message,
68
  OffAmazonPaymentsNotifications_NotificationMetadata $parentNotificationMetadata = null
69
  ) {
70
  $this->_timestamp
118
  return self::SOURCE_MESSAGE_TYPE;
119
  }
120
  }
 
lib/OffAmazonPaymentsNotifications/Model/NotificationImpl.php CHANGED
@@ -21,7 +21,7 @@
21
  * an implementation of the notification interface
22
  *
23
  */
24
- abstract class OffAmazonPaymentsNotifications_NotificationImpl
25
  extends OffAmazonPayments_Model
26
  implements OffAmazonPaymentsNotifications_Notification
27
  {
@@ -82,4 +82,3 @@ abstract class OffAmazonPaymentsNotifications_NotificationImpl
82
  return $this->_notificationMetadata;
83
  }
84
  }
85
- ?>
21
  * an implementation of the notification interface
22
  *
23
  */
24
+ abstract class OffAmazonPaymentsNotifications_Model_NotificationImpl
25
  extends OffAmazonPayments_Model
26
  implements OffAmazonPaymentsNotifications_Notification
27
  {
82
  return $this->_notificationMetadata;
83
  }
84
  }
 
lib/OffAmazonPaymentsNotifications/Model/NotificationMetadataImpl.php CHANGED
@@ -67,4 +67,3 @@ abstract class OffAmazonPaymentsNotifications_Model_NotificationMetadataImpl
67
  return !is_null($this->_parentNotificationMetadata);
68
  }
69
  }
70
- ?>
67
  return !is_null($this->_parentNotificationMetadata);
68
  }
69
  }
 
lib/OffAmazonPaymentsNotifications/Model/OrderItemCategories.php CHANGED
@@ -108,4 +108,3 @@ class OffAmazonPaymentsNotifications_Model_OrderItemCategories extends OffAmazon
108
  return count($this->fields['OrderItemCategory']['FieldValue']) > 0;
109
  }
110
  }
111
- ?>
108
  return count($this->fields['OrderItemCategory']['FieldValue']) > 0;
109
  }
110
  }
 
lib/OffAmazonPaymentsNotifications/Model/OrderReference.php CHANGED
@@ -369,4 +369,3 @@ class OffAmazonPaymentsNotifications_Model_OrderReference
369
  return !is_null($this->fields['ExpirationTimestamp']['FieldValue']);
370
  }
371
  }
372
- ?>
369
  return !is_null($this->fields['ExpirationTimestamp']['FieldValue']);
370
  }
371
  }
 
lib/OffAmazonPaymentsNotifications/Model/OrderReferenceNotification.php CHANGED
@@ -27,7 +27,7 @@
27
  * </ul>
28
  */
29
  class OffAmazonPaymentsNotifications_Model_OrderReferenceNotification
30
- extends OffAmazonPaymentsNotifications_NotificationImpl
31
  {
32
  /**
33
  * Construct new OffAmazonPaymentsNotifications_Model_OrderReferenceNotification
@@ -154,4 +154,3 @@ class OffAmazonPaymentsNotifications_Model_OrderReferenceNotification
154
  return $xml;
155
  }
156
  }
157
- ?>
27
  * </ul>
28
  */
29
  class OffAmazonPaymentsNotifications_Model_OrderReferenceNotification
30
+ extends OffAmazonPaymentsNotifications_Model_NotificationImpl
31
  {
32
  /**
33
  * Construct new OffAmazonPaymentsNotifications_Model_OrderReferenceNotification
154
  return $xml;
155
  }
156
  }
 
lib/OffAmazonPaymentsNotifications/Model/OrderReferenceStatus.php CHANGED
@@ -240,4 +240,3 @@ class OffAmazonPaymentsNotifications_Model_OrderReferenceStatus extends OffAmazo
240
  return !is_null($this->fields['ReasonDescription']['FieldValue']);
241
  }
242
  }
243
- ?>
240
  return !is_null($this->fields['ReasonDescription']['FieldValue']);
241
  }
242
  }
 
lib/OffAmazonPaymentsNotifications/Model/OrderTotal.php CHANGED
@@ -147,4 +147,3 @@ class OffAmazonPaymentsNotifications_Model_OrderTotal
147
  return !is_null($this->fields['Amount']['FieldValue']);
148
  }
149
  }
150
- ?>
147
  return !is_null($this->fields['Amount']['FieldValue']);
148
  }
149
  }
 
lib/OffAmazonPaymentsNotifications/Model/Price.php CHANGED
@@ -145,4 +145,3 @@ class OffAmazonPaymentsNotifications_Model_Price extends OffAmazonPayments_Model
145
  return !is_null($this->fields['CurrencyCode']['FieldValue']);
146
  }
147
  }
148
- ?>
145
  return !is_null($this->fields['CurrencyCode']['FieldValue']);
146
  }
147
  }
 
lib/OffAmazonPaymentsNotifications/Model/ProviderCreditNotification.php CHANGED
@@ -27,7 +27,7 @@
27
  * </ul>
28
  */
29
  class OffAmazonPaymentsNotifications_Model_ProviderCreditNotification
30
- extends OffAmazonPaymentsNotifications_NotificationImpl
31
  {
32
  /**
33
  * Construct new OffAmazonPaymentsNotifications_Model_ProviderCreditNotification
@@ -154,4 +154,3 @@ class OffAmazonPaymentsNotifications_Model_ProviderCreditNotification
154
  return $xml;
155
  }
156
  }
157
- ?>
27
  * </ul>
28
  */
29
  class OffAmazonPaymentsNotifications_Model_ProviderCreditNotification
30
+ extends OffAmazonPaymentsNotifications_Model_NotificationImpl
31
  {
32
  /**
33
  * Construct new OffAmazonPaymentsNotifications_Model_ProviderCreditNotification
154
  return $xml;
155
  }
156
  }
 
lib/OffAmazonPaymentsNotifications/Model/ProviderCreditReversalNotification.php CHANGED
@@ -27,7 +27,7 @@
27
  * </ul>
28
  */
29
  class OffAmazonPaymentsNotifications_Model_ProviderCreditReversalNotification
30
- extends OffAmazonPaymentsNotifications_NotificationImpl
31
  {
32
  /**
33
  * Construct new OffAmazonPaymentsNotifications_Model_ProviderCreditReversalNotification
@@ -154,4 +154,3 @@ class OffAmazonPaymentsNotifications_Model_ProviderCreditReversalNotification
154
  return $xml;
155
  }
156
  }
157
- ?>
27
  * </ul>
28
  */
29
  class OffAmazonPaymentsNotifications_Model_ProviderCreditReversalNotification
30
+ extends OffAmazonPaymentsNotifications_Model_NotificationImpl
31
  {
32
  /**
33
  * Construct new OffAmazonPaymentsNotifications_Model_ProviderCreditReversalNotification
154
  return $xml;
155
  }
156
  }
 
lib/OffAmazonPaymentsNotifications/Model/RefundDetails.php CHANGED
@@ -525,4 +525,3 @@ class OffAmazonPaymentsNotifications_Model_RefundDetails extends OffAmazonPaymen
525
 
526
  }
527
  }
528
- ?>
525
 
526
  }
527
  }
 
lib/OffAmazonPaymentsNotifications/Model/RefundNotification.php CHANGED
@@ -27,7 +27,7 @@
27
  * </ul>
28
  */
29
  class OffAmazonPaymentsNotifications_Model_RefundNotification
30
- extends OffAmazonPaymentsNotifications_NotificationImpl
31
  {
32
  /**
33
  * Construct new OffAmazonPaymentsNotifications_Model_RefundNotification
@@ -152,4 +152,3 @@ class OffAmazonPaymentsNotifications_Model_RefundNotification
152
  return $xml;
153
  }
154
  }
155
- ?>
27
  * </ul>
28
  */
29
  class OffAmazonPaymentsNotifications_Model_RefundNotification
30
+ extends OffAmazonPaymentsNotifications_Model_NotificationImpl
31
  {
32
  /**
33
  * Construct new OffAmazonPaymentsNotifications_Model_RefundNotification
152
  return $xml;
153
  }
154
  }
 
lib/OffAmazonPaymentsNotifications/Model/SellerBillingAgreementAttributes.php CHANGED
@@ -145,4 +145,3 @@ class OffAmazonPaymentsNotifications_Model_SellerBillingAgreementAttributes exte
145
  return ! is_null($this->fields['SellerId']['FieldValue']);
146
  }
147
  }
148
- ?>
145
  return ! is_null($this->fields['SellerId']['FieldValue']);
146
  }
147
  }
 
lib/OffAmazonPaymentsNotifications/Model/SellerOrderAttributes.php CHANGED
@@ -208,4 +208,3 @@ class OffAmazonPaymentsNotifications_Model_SellerOrderAttributes
208
  return !is_null($this->fields['OrderItemCategories']['FieldValue']);
209
  }
210
  }
211
- ?>
208
  return !is_null($this->fields['OrderItemCategories']['FieldValue']);
209
  }
210
  }
 
lib/OffAmazonPaymentsNotifications/Model/SnsNotificationMetadata.php CHANGED
@@ -64,7 +64,7 @@ class OffAmazonPaymentsNotifications_Model_SnsNotificationMetadata
64
  * @return void
65
  */
66
  public function __construct(
67
- Message $message,
68
  NotificationMetadata $parentNotificationMetadata = null
69
  ) {
70
  $this->_timestamp
@@ -117,4 +117,3 @@ class OffAmazonPaymentsNotifications_Model_SnsNotificationMetadata
117
  return self::SOURCE_MESSAGE_TYPE;
118
  }
119
  }
120
- ?>
64
  * @return void
65
  */
66
  public function __construct(
67
+ OffAmazonPaymentsNotifications_Impl_Message $message,
68
  NotificationMetadata $parentNotificationMetadata = null
69
  ) {
70
  $this->_timestamp
117
  return self::SOURCE_MESSAGE_TYPE;
118
  }
119
  }
 
lib/OffAmazonPaymentsNotifications/Model/SolutionProviderMerchantNotification.php CHANGED
@@ -27,7 +27,7 @@
27
  * </ul>
28
  */
29
  class OffAmazonPaymentsNotifications_Model_SolutionProviderMerchantNotification
30
- extends OffAmazonPaymentsNotifications_NotificationImpl
31
  {
32
  /**
33
  * Construct new OffAmazonPaymentsNotifications_Model_SolutionProviderMerchantNotification
@@ -154,4 +154,3 @@ class OffAmazonPaymentsNotifications_Model_SolutionProviderMerchantNotification
154
  return $xml;
155
  }
156
  }
157
- ?>
27
  * </ul>
28
  */
29
  class OffAmazonPaymentsNotifications_Model_SolutionProviderMerchantNotification
30
+ extends OffAmazonPaymentsNotifications_Model_NotificationImpl
31
  {
32
  /**
33
  * Construct new OffAmazonPaymentsNotifications_Model_SolutionProviderMerchantNotification
154
  return $xml;
155
  }
156
  }
 
lib/OffAmazonPaymentsNotifications/Model/Status.php CHANGED
@@ -260,4 +260,3 @@ class OffAmazonPaymentsNotifications_Model_Status extends OffAmazonPayments_Mode
260
  return !is_null($this->fields['ReasonDescription']['FieldValue']);
261
  }
262
  }
263
- ?>
260
  return !is_null($this->fields['ReasonDescription']['FieldValue']);
261
  }
262
  }
 
lib/OffAmazonPaymentsNotifications/Notification.php CHANGED
@@ -37,4 +37,3 @@ interface OffAmazonPaymentsNotifications_Notification
37
  */
38
  public function getNotificationMetadata();
39
  }
40
- ?>
37
  */
38
  public function getNotificationMetadata();
39
  }
 
lib/OffAmazonPaymentsNotifications/NotificationMetadata.php CHANGED
@@ -43,4 +43,3 @@ interface OffAmazonPaymentsNotifications_NotificationMetadata
43
  */
44
  public function hasParentNotificationMetadata();
45
  }
46
- ?>
43
  */
44
  public function hasParentNotificationMetadata();
45
  }
 
lib/OffAmazonPaymentsService/Client.php CHANGED
@@ -1831,4 +1831,3 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
1831
  }
1832
 
1833
  }
1834
- ?>
1831
  }
1832
 
1833
  }
 
lib/OffAmazonPaymentsService/Environments.php CHANGED
@@ -21,4 +21,3 @@ final class OffAmazonPaymentsService_Environments
21
  const SANDBOX = "sandbox";
22
  const LIVE = "live";
23
  }
24
- ?>
21
  const SANDBOX = "sandbox";
22
  const LIVE = "live";
23
  }
 
lib/OffAmazonPaymentsService/Exception.php CHANGED
@@ -142,4 +142,3 @@ class OffAmazonPaymentsService_Exception extends Exception
142
  return $this->_responseHeaderMetadata;
143
  }
144
  }
145
- ?>
142
  return $this->_responseHeaderMetadata;
143
  }
144
  }
 
lib/OffAmazonPaymentsService/Interface.php CHANGED
@@ -335,4 +335,3 @@ interface OffAmazonPaymentsService_Interface
335
  public function reverseProviderCredit($request);
336
 
337
  }
338
- ?>
335
  public function reverseProviderCredit($request);
336
 
337
  }
 
lib/OffAmazonPaymentsService/MerchantValues.php CHANGED
@@ -200,4 +200,4 @@ class OffAmazonPaymentsService_MerchantValues
200
  return $instance;
201
  }
202
  }
203
- ?>
200
  return $instance;
201
  }
202
  }
203
+
lib/OffAmazonPaymentsService/Model.php CHANGED
@@ -299,4 +299,3 @@ abstract class OffAmazonPaymentsService_Model
299
  return is_array($var) && array_keys($var) === range(0, sizeof($var) - 1);
300
  }
301
  }
302
- ?>
299
  return is_array($var) && array_keys($var) === range(0, sizeof($var) - 1);
300
  }
301
  }
 
lib/OffAmazonPaymentsService/Model/Address.php CHANGED
@@ -580,4 +580,3 @@ class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Mo
580
  return !is_null($this->_fields['Phone']['FieldValue']);
581
  }
582
  }
583
- ?>
580
  return !is_null($this->_fields['Phone']['FieldValue']);
581
  }
582
  }
 
lib/OffAmazonPaymentsService/Model/AuthorizationDetails.php CHANGED
@@ -791,4 +791,3 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
791
  }
792
 
793
  }
794
- ?>
791
  }
792
 
793
  }
 
lib/OffAmazonPaymentsService/Model/AuthorizeOnBillingAgreementRequest.php CHANGED
@@ -650,4 +650,3 @@ class OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest extends
650
  return ! is_null($this->_fields['InheritShippingAddress']['FieldValue']);
651
  }
652
  }
653
- ?>
650
  return ! is_null($this->_fields['InheritShippingAddress']['FieldValue']);
651
  }
652
  }
 
lib/OffAmazonPaymentsService/Model/AuthorizeOnBillingAgreementResponse.php CHANGED
@@ -199,4 +199,3 @@ class OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResponse extends
199
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
200
  }
201
  }
202
- ?>
199
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
200
  }
201
  }
 
lib/OffAmazonPaymentsService/Model/AuthorizeOnBillingAgreementResult.php CHANGED
@@ -147,4 +147,3 @@ class OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResult extends O
147
  return ! is_null($this->_fields['AmazonOrderReferenceId']['FieldValue']);
148
  }
149
  }
150
- ?>
147
  return ! is_null($this->_fields['AmazonOrderReferenceId']['FieldValue']);
148
  }
149
  }
 
lib/OffAmazonPaymentsService/Model/AuthorizeRequest.php CHANGED
@@ -537,4 +537,3 @@ class OffAmazonPaymentsService_Model_AuthorizeRequest extends OffAmazonPaymentsS
537
 
538
  }
539
  }
540
- ?>
537
 
538
  }
539
  }
 
lib/OffAmazonPaymentsService/Model/AuthorizeResponse.php CHANGED
@@ -203,4 +203,3 @@ class OffAmazonPaymentsService_Model_AuthorizeResponse extends OffAmazonPayments
203
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
204
  }
205
  }
206
- ?>
203
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
204
  }
205
  }
 
lib/OffAmazonPaymentsService/Model/AuthorizeResult.php CHANGED
@@ -103,4 +103,3 @@ class OffAmazonPaymentsService_Model_AuthorizeResult extends OffAmazonPaymentsSe
103
 
104
  }
105
  }
106
- ?>
103
 
104
  }
105
  }
 
lib/OffAmazonPaymentsService/Model/BillingAddress.php CHANGED
@@ -151,4 +151,4 @@ class OffAmazonPaymentsService_Model_BillingAddress extends OffAmazonPaymentsSer
151
 
152
  }
153
  }
154
- ?>
151
 
152
  }
153
  }
154
+
lib/OffAmazonPaymentsService/Model/BillingAgreementAttributes.php CHANGED
@@ -197,4 +197,3 @@ class OffAmazonPaymentsService_Model_BillingAgreementAttributes extends OffAmazo
197
  return ! is_null($this->_fields['SellerBillingAgreementAttributes']['FieldValue']);
198
  }
199
  }
200
- ?>
197
  return ! is_null($this->_fields['SellerBillingAgreementAttributes']['FieldValue']);
198
  }
199
  }
 
lib/OffAmazonPaymentsService/Model/BillingAgreementDetails.php CHANGED
@@ -755,4 +755,4 @@ class OffAmazonPaymentsService_Model_BillingAgreementDetails extends OffAmazonPa
755
  return ! is_null($this->_fields['BillingAgreementConsent']['FieldValue']);
756
  }
757
  }
758
- ?>
755
  return ! is_null($this->_fields['BillingAgreementConsent']['FieldValue']);
756
  }
757
  }
758
+
lib/OffAmazonPaymentsService/Model/BillingAgreementLimits.php CHANGED
@@ -249,4 +249,3 @@ class OffAmazonPaymentsService_Model_BillingAgreementLimits extends OffAmazonPay
249
  return ! is_null($this->_fields['CurrentRemainingBalance']['FieldValue']);
250
  }
251
  }
252
- ?>
249
  return ! is_null($this->_fields['CurrentRemainingBalance']['FieldValue']);
250
  }
251
  }
 
lib/OffAmazonPaymentsService/Model/BillingAgreementStatus.php CHANGED
@@ -245,4 +245,3 @@ class OffAmazonPaymentsService_Model_BillingAgreementStatus extends OffAmazonPay
245
  return ! is_null($this->_fields['ReasonDescription']['FieldValue']);
246
  }
247
  }
248
- ?>
245
  return ! is_null($this->_fields['ReasonDescription']['FieldValue']);
246
  }
247
  }
 
lib/OffAmazonPaymentsService/Model/Buyer.php CHANGED
@@ -196,4 +196,3 @@ class OffAmazonPaymentsService_Model_Buyer extends OffAmazonPaymentsService_Mode
196
  return !is_null($this->_fields['Phone']['FieldValue']);
197
  }
198
  }
199
- ?>
196
  return !is_null($this->_fields['Phone']['FieldValue']);
197
  }
198
  }
 
lib/OffAmazonPaymentsService/Model/CancelOrderReferenceRequest.php CHANGED
@@ -196,4 +196,3 @@ class OffAmazonPaymentsService_Model_CancelOrderReferenceRequest extends OffAmaz
196
  return !is_null($this->_fields['CancelationReason']['FieldValue']);
197
  }
198
  }
199
- ?>
196
  return !is_null($this->_fields['CancelationReason']['FieldValue']);
197
  }
198
  }
 
lib/OffAmazonPaymentsService/Model/CancelOrderReferenceResponse.php CHANGED
@@ -203,4 +203,3 @@ class OffAmazonPaymentsService_Model_CancelOrderReferenceResponse extends OffAma
203
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
204
  }
205
  }
206
- ?>
203
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
204
  }
205
  }
 
lib/OffAmazonPaymentsService/Model/CancelOrderReferenceResult.php CHANGED
@@ -52,4 +52,3 @@ class OffAmazonPaymentsService_Model_CancelOrderReferenceResult extends OffAmazo
52
  parent::__construct($data);
53
  }
54
  }
55
- ?>
52
  parent::__construct($data);
53
  }
54
  }
 
lib/OffAmazonPaymentsService/Model/CaptureDetails.php CHANGED
@@ -597,4 +597,3 @@ class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsSer
597
  }
598
 
599
  }
600
- ?>
597
  }
598
 
599
  }
 
lib/OffAmazonPaymentsService/Model/CaptureRequest.php CHANGED
@@ -390,4 +390,3 @@ class OffAmazonPaymentsService_Model_CaptureRequest extends OffAmazonPaymentsSer
390
 
391
  }
392
  }
393
- ?>
390
 
391
  }
392
  }
 
lib/OffAmazonPaymentsService/Model/CaptureResponse.php CHANGED
@@ -203,4 +203,3 @@ class OffAmazonPaymentsService_Model_CaptureResponse extends OffAmazonPaymentsSe
203
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
204
  }
205
  }
206
- ?>
203
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
204
  }
205
  }
 
lib/OffAmazonPaymentsService/Model/CaptureResult.php CHANGED
@@ -103,4 +103,3 @@ class OffAmazonPaymentsService_Model_CaptureResult extends OffAmazonPaymentsServ
103
 
104
  }
105
  }
106
- ?>
103
 
104
  }
105
  }
 
lib/OffAmazonPaymentsService/Model/CloseAuthorizationRequest.php CHANGED
@@ -196,4 +196,3 @@ class OffAmazonPaymentsService_Model_CloseAuthorizationRequest extends OffAmazon
196
  return !is_null($this->_fields['ClosureReason']['FieldValue']);
197
  }
198
  }
199
- ?>
196
  return !is_null($this->_fields['ClosureReason']['FieldValue']);
197
  }
198
  }
 
lib/OffAmazonPaymentsService/Model/CloseAuthorizationResponse.php CHANGED
@@ -203,4 +203,3 @@ class OffAmazonPaymentsService_Model_CloseAuthorizationResponse extends OffAmazo
203
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
204
  }
205
  }
206
- ?>
203
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
204
  }
205
  }
 
lib/OffAmazonPaymentsService/Model/CloseAuthorizationResult.php CHANGED
@@ -52,4 +52,3 @@ class OffAmazonPaymentsService_Model_CloseAuthorizationResult extends OffAmazonP
52
  parent::__construct($data);
53
  }
54
  }
55
- ?>
52
  parent::__construct($data);
53
  }
54
  }
 
lib/OffAmazonPaymentsService/Model/CloseBillingAgreementRequest.php CHANGED
@@ -245,4 +245,3 @@ class OffAmazonPaymentsService_Model_CloseBillingAgreementRequest extends OffAma
245
  return ! is_null($this->_fields['ReasonCode']['FieldValue']);
246
  }
247
  }
248
- ?>
245
  return ! is_null($this->_fields['ReasonCode']['FieldValue']);
246
  }
247
  }
 
lib/OffAmazonPaymentsService/Model/CloseBillingAgreementResponse.php CHANGED
@@ -198,4 +198,3 @@ class OffAmazonPaymentsService_Model_CloseBillingAgreementResponse extends OffAm
198
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
199
  }
200
  }
201
- ?>
198
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
199
  }
200
  }
 
lib/OffAmazonPaymentsService/Model/CloseBillingAgreementResult.php CHANGED
@@ -44,4 +44,3 @@ class OffAmazonPaymentsService_Model_CloseBillingAgreementResult extends OffAmaz
44
  parent::__construct($data);
45
  }
46
  }
47
- ?>
44
  parent::__construct($data);
45
  }
46
  }
 
lib/OffAmazonPaymentsService/Model/CloseOrderReferenceRequest.php CHANGED
@@ -196,4 +196,3 @@ class OffAmazonPaymentsService_Model_CloseOrderReferenceRequest extends OffAmazo
196
  return !is_null($this->_fields['ClosureReason']['FieldValue']);
197
  }
198
  }
199
- ?>
196
  return !is_null($this->_fields['ClosureReason']['FieldValue']);
197
  }
198
  }
 
lib/OffAmazonPaymentsService/Model/CloseOrderReferenceResponse.php CHANGED
@@ -203,4 +203,3 @@ class OffAmazonPaymentsService_Model_CloseOrderReferenceResponse extends OffAmaz
203
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
204
  }
205
  }
206
- ?>
203
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
204
  }
205
  }
 
lib/OffAmazonPaymentsService/Model/CloseOrderReferenceResult.php CHANGED
@@ -52,4 +52,3 @@ class OffAmazonPaymentsService_Model_CloseOrderReferenceResult extends OffAmazon
52
  parent::__construct($data);
53
  }
54
  }
55
- ?>
52
  parent::__construct($data);
53
  }
54
  }
 
lib/OffAmazonPaymentsService/Model/ConfirmBillingAgreementRequest.php CHANGED
@@ -145,4 +145,3 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementRequest extends OffA
145
  return ! is_null($this->_fields['AmazonBillingAgreementId']['FieldValue']);
146
  }
147
  }
148
- ?>
145
  return ! is_null($this->_fields['AmazonBillingAgreementId']['FieldValue']);
146
  }
147
  }
 
lib/OffAmazonPaymentsService/Model/ConfirmBillingAgreementResponse.php CHANGED
@@ -198,4 +198,3 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse extends Off
198
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
199
  }
200
  }
201
- ?>
198
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
199
  }
200
  }
 
lib/OffAmazonPaymentsService/Model/ConfirmBillingAgreementResult.php CHANGED
@@ -44,4 +44,3 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementResult extends OffAm
44
  parent::__construct($data);
45
  }
46
  }
47
- ?>
44
  parent::__construct($data);
45
  }
46
  }
 
lib/OffAmazonPaymentsService/Model/ConfirmOrderReferenceRequest.php CHANGED
@@ -148,4 +148,3 @@ class OffAmazonPaymentsService_Model_ConfirmOrderReferenceRequest extends OffAma
148
  return !is_null($this->_fields['SellerId']['FieldValue']);
149
  }
150
  }
151
- ?>
148
  return !is_null($this->_fields['SellerId']['FieldValue']);
149
  }
150
  }
 
lib/OffAmazonPaymentsService/Model/ConfirmOrderReferenceResponse.php CHANGED
@@ -152,4 +152,3 @@ class OffAmazonPaymentsService_Model_ConfirmOrderReferenceResponse extends OffAm
152
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
153
  }
154
  }
155
- ?>
152
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
153
  }
154
  }
 
lib/OffAmazonPaymentsService/Model/Constraint.php CHANGED
@@ -148,4 +148,3 @@ class OffAmazonPaymentsService_Model_Constraint extends OffAmazonPaymentsService
148
  return !is_null($this->_fields['Description']['FieldValue']);
149
  }
150
  }
151
- ?>
148
  return !is_null($this->_fields['Description']['FieldValue']);
149
  }
150
  }
 
lib/OffAmazonPaymentsService/Model/Constraints.php CHANGED
@@ -109,4 +109,3 @@ class OffAmazonPaymentsService_Model_Constraints extends OffAmazonPaymentsServic
109
  return count ($this->_fields['Constraint']['FieldValue']) > 0;
110
  }
111
  }
112
- ?>
109
  return count ($this->_fields['Constraint']['FieldValue']) > 0;
110
  }
111
  }
 
lib/OffAmazonPaymentsService/Model/CreateOrderReferenceForIdRequest.php CHANGED
@@ -347,4 +347,3 @@ class OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest extends Of
347
  return ! is_null($this->_fields['OrderReferenceAttributes']['FieldValue']);
348
  }
349
  }
350
- ?>
347
  return ! is_null($this->_fields['OrderReferenceAttributes']['FieldValue']);
348
  }
349
  }
 
lib/OffAmazonPaymentsService/Model/CreateOrderReferenceForIdResponse.php CHANGED
@@ -198,4 +198,3 @@ class OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse extends O
198
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
199
  }
200
  }
201
- ?>
198
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
199
  }
200
  }
 
lib/OffAmazonPaymentsService/Model/CreateOrderReferenceForIdResult.php CHANGED
@@ -97,4 +97,3 @@ class OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResult extends Off
97
  return ! is_null($this->_fields['OrderReferenceDetails']['FieldValue']);
98
  }
99
  }
100
- ?>
97
  return ! is_null($this->_fields['OrderReferenceDetails']['FieldValue']);
98
  }
99
  }
 
lib/OffAmazonPaymentsService/Model/Destination.php CHANGED
@@ -151,4 +151,3 @@ class OffAmazonPaymentsService_Model_Destination extends OffAmazonPaymentsServic
151
 
152
  }
153
  }
154
- ?>
151
 
152
  }
153
  }
 
lib/OffAmazonPaymentsService/Model/Error.php CHANGED
@@ -246,4 +246,3 @@ class OffAmazonPaymentsService_Model_Error extends OffAmazonPaymentsService_Mode
246
 
247
  }
248
  }
249
- ?>
246
 
247
  }
248
  }
 
lib/OffAmazonPaymentsService/Model/ErrorResponse.php CHANGED
@@ -206,4 +206,3 @@ class OffAmazonPaymentsService_Model_ErrorResponse extends OffAmazonPaymentsServ
206
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
207
  }
208
  }
209
- ?>
206
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
207
  }
208
  }
 
lib/OffAmazonPaymentsService/Model/GetAuthorizationDetailsRequest.php CHANGED
@@ -148,4 +148,3 @@ class OffAmazonPaymentsService_Model_GetAuthorizationDetailsRequest extends OffA
148
  return !is_null($this->_fields['AmazonAuthorizationId']['FieldValue']);
149
  }
150
  }
151
- ?>
148
  return !is_null($this->_fields['AmazonAuthorizationId']['FieldValue']);
149
  }
150
  }
 
lib/OffAmazonPaymentsService/Model/GetAuthorizationDetailsResponse.php CHANGED
@@ -204,4 +204,3 @@ class OffAmazonPaymentsService_Model_GetAuthorizationDetailsResponse extends Off
204
  }
205
 
206
  }
207
- ?>
204
  }
205
 
206
  }
 
lib/OffAmazonPaymentsService/Model/GetBillingAgreementDetailsRequest.php CHANGED
@@ -195,4 +195,3 @@ class OffAmazonPaymentsService_Model_GetBillingAgreementDetailsRequest extends O
195
  return ! is_null($this->_fields['AddressConsentToken']['FieldValue']);
196
  }
197
  }
198
- ?>
195
  return ! is_null($this->_fields['AddressConsentToken']['FieldValue']);
196
  }
197
  }
 
lib/OffAmazonPaymentsService/Model/GetBillingAgreementDetailsResponse.php CHANGED
@@ -198,4 +198,3 @@ class OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse extends
198
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
199
  }
200
  }
201
- ?>
198
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
199
  }
200
  }
 
lib/OffAmazonPaymentsService/Model/GetBillingAgreementDetailsResult.php CHANGED
@@ -97,4 +97,3 @@ class OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResult extends Of
97
  return ! is_null($this->_fields['BillingAgreementDetails']['FieldValue']);
98
  }
99
  }
100
- ?>
97
  return ! is_null($this->_fields['BillingAgreementDetails']['FieldValue']);
98
  }
99
  }
 
lib/OffAmazonPaymentsService/Model/GetCaptureDetailsRequest.php CHANGED
@@ -148,4 +148,3 @@ class OffAmazonPaymentsService_Model_GetCaptureDetailsRequest extends OffAmazonP
148
  return !is_null($this->_fields['AmazonCaptureId']['FieldValue']);
149
  }
150
  }
151
- ?>
148
  return !is_null($this->_fields['AmazonCaptureId']['FieldValue']);
149
  }
150
  }
 
lib/OffAmazonPaymentsService/Model/GetCaptureDetailsResponse.php CHANGED
@@ -204,4 +204,3 @@ class OffAmazonPaymentsService_Model_GetCaptureDetailsResponse extends OffAmazon
204
  }
205
 
206
  }
207
- ?>
204
  }
205
 
206
  }
 
lib/OffAmazonPaymentsService/Model/GetCaptureDetailsResult.php CHANGED
@@ -107,4 +107,3 @@ class OffAmazonPaymentsService_Model_GetCaptureDetailsResult extends OffAmazonPa
107
 
108
 
109
  }
110
- ?>
107
 
108
 
109
  }
 
lib/OffAmazonPaymentsService/Model/GetOrderReferenceDetailsRequest.php CHANGED
@@ -197,4 +197,3 @@ class OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest extends Off
197
  }
198
 
199
  }
200
- ?>
197
  }
198
 
199
  }
 
lib/OffAmazonPaymentsService/Model/GetOrderReferenceDetailsResponse.php CHANGED
@@ -204,4 +204,3 @@ class OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResponse extends Of
204
  }
205
 
206
  }
207
- ?>
204
  }
205
 
206
  }
 
lib/OffAmazonPaymentsService/Model/GetOrderReferenceDetailsResult.php CHANGED
@@ -107,4 +107,3 @@ class OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResult extends OffA
107
 
108
 
109
  }
110
- ?>
107
 
108
 
109
  }
 
lib/OffAmazonPaymentsService/Model/GetRefundDetailsRequest.php CHANGED
@@ -152,4 +152,3 @@ class OffAmazonPaymentsService_Model_GetRefundDetailsRequest extends OffAmazonPa
152
 
153
 
154
  }
155
- ?>
152
 
153
 
154
  }
 
lib/OffAmazonPaymentsService/Model/GetRefundDetailsResponse.php CHANGED
@@ -204,4 +204,3 @@ class OffAmazonPaymentsService_Model_GetRefundDetailsResponse extends OffAmazonP
204
  }
205
 
206
  }
207
- ?>
204
  }
205
 
206
  }
 
lib/OffAmazonPaymentsService/Model/GetRefundDetailsResult.php CHANGED
@@ -107,4 +107,3 @@ class OffAmazonPaymentsService_Model_GetRefundDetailsResult extends OffAmazonPay
107
 
108
 
109
  }
110
- ?>
107
 
108
 
109
  }
 
lib/OffAmazonPaymentsService/Model/IdList.php CHANGED
@@ -112,4 +112,3 @@ class OffAmazonPaymentsService_Model_IdList extends OffAmazonPaymentsService_Mod
112
 
113
 
114
  }
115
- ?>
112
 
113
 
114
  }
 
lib/OffAmazonPaymentsService/Model/OrderItemCategories.php CHANGED
@@ -112,4 +112,3 @@ class OffAmazonPaymentsService_Model_OrderItemCategories extends OffAmazonPaymen
112
 
113
 
114
  }
115
- ?>
112
 
113
 
114
  }
 
lib/OffAmazonPaymentsService/Model/OrderReferenceAttributes.php CHANGED
@@ -254,4 +254,3 @@ class OffAmazonPaymentsService_Model_OrderReferenceAttributes extends OffAmazonP
254
 
255
 
256
  }
257
- ?>
254
 
255
 
256
  }
 
lib/OffAmazonPaymentsService/Model/OrderReferenceDetails.php CHANGED
@@ -798,4 +798,3 @@ class OffAmazonPaymentsService_Model_OrderReferenceDetails extends OffAmazonPaym
798
  }
799
 
800
  }
801
- ?>
798
  }
799
 
800
  }
 
lib/OffAmazonPaymentsService/Model/OrderReferenceStatus.php CHANGED
@@ -248,4 +248,3 @@ class OffAmazonPaymentsService_Model_OrderReferenceStatus extends OffAmazonPayme
248
 
249
 
250
  }
251
- ?>
248
 
249
 
250
  }
 
lib/OffAmazonPaymentsService/Model/OrderTotal.php CHANGED
@@ -152,4 +152,3 @@ class OffAmazonPaymentsService_Model_OrderTotal extends OffAmazonPaymentsService
152
 
153
 
154
  }
155
- ?>
152
 
153
 
154
  }
 
lib/OffAmazonPaymentsService/Model/ParentDetails.php CHANGED
@@ -149,4 +149,3 @@ class OffAmazonPaymentsService_Model_ParentDetails extends OffAmazonPaymentsServ
149
  return ! is_null($this->_fields['Type']['FieldValue']);
150
  }
151
  }
152
- ?>
149
  return ! is_null($this->_fields['Type']['FieldValue']);
150
  }
151
  }
 
lib/OffAmazonPaymentsService/Model/Price.php CHANGED
@@ -152,4 +152,3 @@ class OffAmazonPaymentsService_Model_Price extends OffAmazonPaymentsService_Mode
152
 
153
 
154
  }
155
- ?>
152
 
153
 
154
  }
 
lib/OffAmazonPaymentsService/Model/RefundDetails.php CHANGED
@@ -542,4 +542,3 @@ class OffAmazonPaymentsService_Model_RefundDetails extends OffAmazonPaymentsServ
542
  }
543
 
544
  }
545
- ?>
542
  }
543
 
544
  }
 
lib/OffAmazonPaymentsService/Model/RefundRequest.php CHANGED
@@ -393,4 +393,3 @@ class OffAmazonPaymentsService_Model_RefundRequest extends OffAmazonPaymentsServ
393
  }
394
 
395
  }
396
- ?>
393
  }
394
 
395
  }
 
lib/OffAmazonPaymentsService/Model/RefundResponse.php CHANGED
@@ -204,4 +204,3 @@ class OffAmazonPaymentsService_Model_RefundResponse extends OffAmazonPaymentsSer
204
  }
205
 
206
  }
207
- ?>
204
  }
205
 
206
  }
 
lib/OffAmazonPaymentsService/Model/RefundResult.php CHANGED
@@ -107,4 +107,3 @@ class OffAmazonPaymentsService_Model_RefundResult extends OffAmazonPaymentsServi
107
 
108
 
109
  }
110
- ?>
107
 
108
 
109
  }
 
lib/OffAmazonPaymentsService/Model/ResponseHeaderMetadata.php CHANGED
@@ -49,4 +49,3 @@ class OffAmazonPaymentsService_Model_ResponseHeaderMetadata {
49
  }
50
  }
51
 
52
- ?>
49
  }
50
  }
51
 
 
lib/OffAmazonPaymentsService/Model/ResponseMetadata.php CHANGED
@@ -104,4 +104,3 @@ class OffAmazonPaymentsService_Model_ResponseMetadata extends OffAmazonPaymentsS
104
 
105
 
106
  }
107
- ?>
104
 
105
 
106
  }
 
lib/OffAmazonPaymentsService/Model/SellerBillingAgreementAttributes.php CHANGED
@@ -195,4 +195,3 @@ class OffAmazonPaymentsService_Model_SellerBillingAgreementAttributes extends Of
195
  return ! is_null($this->_fields['CustomInformation']['FieldValue']);
196
  }
197
  }
198
- ?>
195
  return ! is_null($this->_fields['CustomInformation']['FieldValue']);
196
  }
197
  }
 
lib/OffAmazonPaymentsService/Model/SellerOrderAttributes.php CHANGED
@@ -251,4 +251,3 @@ class OffAmazonPaymentsService_Model_SellerOrderAttributes extends OffAmazonPaym
251
 
252
 
253
  }
254
- ?>
251
 
252
 
253
  }
 
lib/OffAmazonPaymentsService/Model/SetBillingAgreementDetailsRequest.php CHANGED
@@ -197,4 +197,3 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest extends O
197
  return ! is_null($this->_fields['BillingAgreementAttributes']['FieldValue']);
198
  }
199
  }
200
- ?>
197
  return ! is_null($this->_fields['BillingAgreementAttributes']['FieldValue']);
198
  }
199
  }
 
lib/OffAmazonPaymentsService/Model/SetBillingAgreementDetailsResponse.php CHANGED
@@ -198,4 +198,3 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse extends
198
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
199
  }
200
  }
201
- ?>
198
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
199
  }
200
  }
 
lib/OffAmazonPaymentsService/Model/SetBillingAgreementDetailsResult.php CHANGED
@@ -97,4 +97,3 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResult extends Of
97
  return ! is_null($this->_fields['BillingAgreementDetails']['FieldValue']);
98
  }
99
  }
100
- ?>
97
  return ! is_null($this->_fields['BillingAgreementDetails']['FieldValue']);
98
  }
99
  }
 
lib/OffAmazonPaymentsService/Model/SetOrderReferenceDetailsRequest.php CHANGED
@@ -203,4 +203,3 @@ class OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest extends Off
203
 
204
 
205
  }
206
- ?>
203
 
204
 
205
  }
 
lib/OffAmazonPaymentsService/Model/SetOrderReferenceDetailsResponse.php CHANGED
@@ -204,4 +204,3 @@ class OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResponse extends Of
204
  }
205
 
206
  }
207
- ?>
204
  }
205
 
206
  }
 
lib/OffAmazonPaymentsService/Model/SetOrderReferenceDetailsResult.php CHANGED
@@ -107,4 +107,3 @@ class OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResult extends OffA
107
 
108
 
109
  }
110
- ?>
107
 
108
 
109
  }
 
lib/OffAmazonPaymentsService/Model/Status.php CHANGED
@@ -248,4 +248,3 @@ class OffAmazonPaymentsService_Model_Status extends OffAmazonPaymentsService_Mod
248
 
249
 
250
  }
251
- ?>
248
 
249
 
250
  }
 
lib/OffAmazonPaymentsService/Model/ValidateBillingAgreementRequest.php CHANGED
@@ -145,4 +145,3 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementRequest extends Off
145
  return ! is_null($this->_fields['SellerId']['FieldValue']);
146
  }
147
  }
148
- ?>
145
  return ! is_null($this->_fields['SellerId']['FieldValue']);
146
  }
147
  }
 
lib/OffAmazonPaymentsService/Model/ValidateBillingAgreementResponse.php CHANGED
@@ -198,4 +198,3 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse extends Of
198
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
199
  }
200
  }
201
- ?>
198
  return $this->_responseHeaderMetadata = $responseHeaderMetadata;
199
  }
200
  }
 
lib/OffAmazonPaymentsService/Model/ValidateBillingAgreementResult.php CHANGED
@@ -197,4 +197,3 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResult extends OffA
197
  return ! is_null($this->_fields['BillingAgreementStatus']['FieldValue']);
198
  }
199
  }
200
- ?>
197
  return ! is_null($this->_fields['BillingAgreementStatus']['FieldValue']);
198
  }
199
  }
 
lib/OffAmazonPaymentsService/RegionSpecificProperties.php CHANGED
@@ -226,4 +226,3 @@ class OffAmazonPaymentsService_RegionSpecificProperties
226
  }
227
  }
228
 
229
- ?>
226
  }
227
  }
228
 
 
lib/OffAmazonPaymentsService/Regions.php CHANGED
@@ -23,4 +23,4 @@ final class OffAmazonPaymentsService_Regions
23
  const US = "us";
24
  const NA = "na";
25
  }
26
- ?>
23
  const US = "us";
24
  const NA = "na";
25
  }
26
+
package.xml CHANGED
@@ -1,18 +1,26 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Creativestyle_AmazonPayments</name>
4
- <version>1.2.6.2</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>FIXED: class 'OffAmazonPaymentsNotifications_NotificationImpl' not found issue when accessing IPN endpoint</notes>
 
 
 
 
 
 
 
 
12
  <authors><author><name>creativestyle GmbH</name><user>creativestyle</user><email>amazon@creativestyle.de</email></author></authors>
13
- <date>2014-11-03</date>
14
- <time>22:35:20</time>
15
- <contents><target name="magecommunity"><dir name="Creativestyle"><dir name="AmazonPayments"><dir name="Block"><file name="Abstract.php" hash="a8879b92a7537e5c443f3488a22787fe"/><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="dc185fbffc8851d0031769e9a623ddda"/><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="16b7b49b8c16da0a783104acc3a2b7d2"/></dir><dir name="Checkout"><file name="Abstract.php" hash="db5cf0b3d9dd37ad4552987b9df5e09c"/><file name="Js.php" hash="afaf494ccbd59a780c4d5079abf68bdd"/><file name="Notice.php" hash="3bd2869322fac80a80436f8e2daa8d70"/><file name="SandboxToolbox.php" hash="047b1bfde3f5469195b9a7ccfee3f16d"/></dir><file name="Checkout.php" hash="2f5dfbc18879c9a9c6d4dc84ac54eb9e"/><file name="Head.php" hash="3a0e8a708cff9b769b68dcd48dbac274"/><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="Head.php" hash="8e2f097d5c170aba4c1f11973463181a"/><file name="Logout.php" hash="79701fe73b6ad3e32b5f75367dd8bcd0"/></dir><dir name="Onepage"><file name="Button.php" hash="b122db0163e8580f42679f13a3a45726"/></dir><dir name="Pay"><file name="Abstract.php" hash="2e96e1d4a1a0e2c74cee40a46a75241c"/><file name="Button.php" hash="b76cbc47c91b88ceb9fc1fde609fa2dc"/></dir><dir name="Payment"><file name="Info.php" hash="c6285a5688834b456765317d3471bf2a"/></dir></dir><file name="Exception.php" hash="ca655a29842b38dd2ebf438208a6c70c"/><dir name="Helper"><file name="Data.php" hash="07d5ae485061f4edf314899291f11e28"/><file name="Debug.php" hash="782ae864f43f5bb85b439cf1a4c35334"/></dir><dir name="Model"><dir name="Api"><file name="Abstract.php" hash="1814fcd0d61599f15d808d9c2990ebe4"/><file name="Advanced.php" hash="f07d08dc5ca8fa80d2684a7726496a6e"/><file name="Ipn.php" hash="7796776a38fe90b9805cbd88094a773d"/><file name="Login.php" hash="1d3ed64e3d7e10128780bf07fb334867"/></dir><file name="Autoload.php" hash="78c134bfb6124bfb04132dca6a7688c2"/><file name="Checkout.php" hash="5aabd463b8e45f9390a7719d7c730c8d"/><file name="Config.php" hash="5ea50ded4beaf93e5e1fe1aad282ec5e"/><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"/><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="PaymentAction.php" hash="6d0c15996ec3caf112d88e07ea703bb4"/><file name="Region.php" hash="8f5cc8ab970aa165e16085368b320f89"/></dir><file name="Manager.php" hash="3deaebb7cc0d613c63470d866d7aafb7"/><file name="Observer.php" hash="078d6526c0720a010c6e97ef9dad9742"/><dir name="Payment"><file name="Abstract.php" hash="5667d8b7b4eae1f3b29e8fc6c043b9ce"/><dir name="Advanced"><file name="Abstract.php" hash="5f6d0e84f0cb051d0515aa5c3241be74"/><file name="Sandbox.php" hash="a1509cd32ad92e6e6d3a8f348be1d3bb"/></dir><file name="Advanced.php" hash="72006ba9aaa96486f6d7505814ffaf54"/></dir><dir name="Service"><file name="Login.php" hash="3ba988940839a636e6b42070db99e41e"/><file name="Quote.php" hash="3f83d1e1b1c6e19e0e23cb1a8c8b41f5"/></dir><file name="Simulator.php" hash="be19c4b71f46f3251455c497aeb407f6"/><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="1293b8aa3851f09b7559306e37a6a6ea"/><file name="SystemController.php" hash="52c60fa39dba8582b4ca81c2f065dbc5"/></dir><dir name="Advanced"><file name="CheckoutController.php" hash="4b0f052d67439041bf68a6b7229ee59a"/><file name="IpnController.php" hash="0d8a52a891d493870dd1081f9a407170"/><file name="LoginController.php" hash="d636ea6b2e3033615d877a87f37abfb2"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="2dc1b70997469f8f0cd6a80eff845842"/><file name="config.xml" hash="6f1eb776c2dba7111b4a9e1ecb3b61c7"/><file name="system.xml" hash="d8004b1e1d07523825f81a5282999623"/></dir><dir name="sql"><dir name="amazonpayments_setup"><file name="mysql4-install-1.0.0.php" hash="d4681b9a39905cc9e9dcc660688dea85"/><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="200af8569ab7792e7f16c5f4a93c6897"/><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="97aa4f974470707e890c72454b468c0d"/></dir><dir name="template"><dir name="creativestyle"><dir name="amazonpayments"><dir name="button"><file name="js.phtml" hash="ff2502a96e1edfe14c2777efb738ef21"/><file name="tooltip.phtml" hash="6e430b0cba211ae63f69df86d943f9ee"/></dir><dir name="checkout"><file name="capture_notice.phtml" hash="f9c75cd05a596d0a16c55f0169b4ee6c"/><file name="js.phtml" hash="d9ca7b6c98e1521b2f7be308261596a2"/><dir name="review"><file name="button.phtml" hash="1312572385c9ff653d283bb0c3f47b1b"/></dir><file name="sandbox_toolbox.phtml" hash="ff639266f99827e3ec3a9e8305bd7eb7"/><file name="shipping_method.phtml" hash="8a8c97b4eb2a7c8cfc8248bd499b95eb"/></dir><file name="checkout.phtml" hash="083f3118e3e9665eda2851b285c7815d"/><file name="head.phtml" hash="271adf18a0fa0da90dce2d0f5c6ef4d7"/><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="head.phtml" hash="dfe0af795b7075a22cf2b0865e94df61"/><file name="logout.phtml" hash="066465552b22eb23867e641fba7f7f96"/></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="f2bae0bb7e9c61e2692b6f9e9d698f61"/><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="97121388fa441b1779504845ea98c159"/><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="5c61c08241a8ce7dcd891e2fe0f16606"/><dir name="template"><dir name="email"><file name="amazon_payments_failed.html" hash="4879ccbfbea101548700da52b058bd0b"/></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="creativestyle"><file name="apa_checkout.min.js" hash="ac6c62c9dcefeeb0d342b7c9cf481de5"/><file name="apa_sandbox_toolbox.min.js" hash="43db69188712b5b4665b586fc70f39de"/><dir name="vendors"><file name="prism.js" hash="c700de3d980f7ef1e056dc5400acfd44"/></dir></dir></dir></target><target name="magelib"><dir name="OffAmazonPayments"><file name="Model.php" hash="e3a28207e23b6721fe6365e43599f118"/></dir><dir name="OffAmazonPaymentsNotifications"><file name="Client.php" hash="1dec75c9bc526f12e55fc71014c68e0b"/><dir name="Impl"><file name="Certificate.php" hash="e0998510c161b545184442f86f223be6"/><file name="IpnNotificationParser.php" hash="f64aafc6a51f8d7103498ec2e2573d9a"/><file name="Message.php" hash="d619a69bb302c088788da1f8f5719dbf"/><file name="OpenSslVerifySignature.php" hash="4af11b596876b58416bad4a1dd4ced72"/><file name="SnsMessageParser.php" hash="d758f092216419d91497a044fa771553"/><file name="SnsMessageValidator.php" hash="8aae89c1e2fa20b04b0a2d5f77ac68c7"/><file name="VerifySignature.php" hash="b18edb328fbe91c1c7b0aa8afe2904d0"/><file name="XmlNotificationParser.php" hash="725375499131ed3a4822cd92934113b4"/></dir><file name="Interface.php" hash="effe919508aab0c2aa1e585d2783c4e6"/><file name="InvalidCertificateException.php" hash="41bd42da2146c9c6263ddabefd9bfa62"/><file name="InvalidMessageException.php" hash="2edda9cd6cc0c059846c4858cedfcd66"/><dir name="Model"><file name="AuthorizationDetails.php" hash="6156de0995394ffc98b68fd84b136e3b"/><file name="AuthorizationNotification.php" hash="8e16a899a86fb00227ba2c5c4ad959c2"/><file name="BillingAgreement.php" hash="9da534b752fa0f415a020290a74abec3"/><file name="BillingAgreementLimits.php" hash="9c9b5baf17601c48355dcb07858090ef"/><file name="BillingAgreementNotification.php" hash="61aead8581ede00a174f384a11250b43"/><file name="BillingAgreementStatus.php" hash="6742b7532befc0abbb53cb0fbec9b43a"/><file name="CaptureDetails.php" hash="325f72a9c552a7b2f5f32391a0e0bafd"/><file name="CaptureNotification.php" hash="43b56cb3bea3c0f50f5f4b1a2b80e582"/><file name="IdList.php" hash="94c58bd555c5f4b49ec4c7156913957c"/><file name="IpnNotificationMetadata.php" hash="8c9e9affd803a359d966bcadc4f82579"/><file name="MerchantRegistrationDetails.php" hash="d4de7689d8e216567abd710dde7ef4ed"/><file name="NotificationImpl.php" hash="b8cd375f86b58e3afb8459753315afe0"/><file name="NotificationMetadataImpl.php" hash="d115d664275afe97b64c5994a05b81b6"/><file name="OrderItemCategories.php" hash="e5799dea7ee1ba6b09dc0511c0209b95"/><file name="OrderReference.php" hash="31b4d7b1c704a3610616b807d979c974"/><file name="OrderReferenceNotification.php" hash="4cdf1834e8ac28907b9783bea5a091e9"/><file name="OrderReferenceStatus.php" hash="a834fd68d60220a43cdeb73676ff14cf"/><file name="OrderTotal.php" hash="a29ae92dde221fc5fc62890829642c93"/><file name="Price.php" hash="14a21d4e21e85876880f0dac5efd9800"/><file name="ProviderCreditDetails.php" hash="d355185842eb0816de151fb535b14edc"/><file name="ProviderCreditNotification.php" hash="21e2ec363636e5dc1817852ce3c80a38"/><file name="ProviderCreditReversalDetails.php" hash="a789bbf3c7074bc800053967e64286c7"/><file name="ProviderCreditReversalNotification.php" hash="4b915017f53aa074aec91764ee353009"/><file name="ProviderCreditReversalSummary.php" hash="1f9cd50005ade77d793a15e029b3cf69"/><file name="ProviderCreditReversalSummaryList.php" hash="6d3a3913ea433fa54ac34197825354ff"/><file name="ProviderCreditSummary.php" hash="4403e12b73867b58021655df3fcf6720"/><file name="ProviderCreditSummaryList.php" hash="8a5a83e94ce75fc3992f98525d47765d"/><file name="RefundDetails.php" hash="bafddf5e7ebb0e41d0d4b0f3f46fc01b"/><file name="RefundNotification.php" hash="665c33d7489219e983ac5dae9059c679"/><file name="SellerBillingAgreementAttributes.php" hash="9a14fbde36b33da97339a756246ad2a7"/><file name="SellerOrderAttributes.php" hash="35bb678c57904c333ea6aae5ac520ced"/><file name="SnsNotificationMetadata.php" hash="3f8afa5a4ed51cf738bb1e721bdf1556"/><file name="SolutionProviderMerchantNotification.php" hash="3921eca9a0d7b9cd02772205f0918bdd"/><file name="SolutionProviderOption.php" hash="df8fbbb1ad2fef1796e3b42a9a417a64"/><file name="SolutionProviderOptions.php" hash="8f5f0e7415bb9dfc5dfafaab236d91df"/><file name="Status.php" hash="8753243136d6ff0ca3089c8cc975f5ab"/></dir><file name="Notification.php" hash="edaf311309c64b67a4fd82ccb86393a3"/><file name="NotificationMetadata.php" hash="9ffe2779593da053e82587dbb61da7d1"/></dir><dir name="OffAmazonPaymentsService"><file name="Client.php" hash="aef6bf4604b2cc27d02534483b58de64"/><file name="Environments.php" hash="d84e7322b3394033b427f91be0a0abdb"/><file name="Exception.php" hash="dd85e54cfa5783c7ef7b1f93ca3995b2"/><file name="Interface.php" hash="b0d2b9acda872f079afe324a95579ec8"/><file name="MerchantValues.php" hash="0350a9ad9ddc2b1382a79f012c54e1b8"/><dir name="Model"><file name="Address.php" hash="78a9e512c29f2a8fa9d70985b9e6a742"/><file name="AuthorizationDetails.php" hash="8a84c0aad90b2cbe77f136b93b83925f"/><file name="AuthorizeOnBillingAgreementRequest.php" hash="bea0b83b59acf306a489e9ece548864b"/><file name="AuthorizeOnBillingAgreementResponse.php" hash="bc807f536bfeff6b863213a0132c25ba"/><file name="AuthorizeOnBillingAgreementResult.php" hash="a0cc9be92ae7b7313f8902d4cc98b43f"/><file name="AuthorizeRequest.php" hash="9404796ad770d7408b19f02bc63f3f66"/><file name="AuthorizeResponse.php" hash="67efb0d9fe244eb5a0c106aed777fa6e"/><file name="AuthorizeResult.php" hash="fa06502055d3b45695844610b8bd1c82"/><file name="BillingAddress.php" hash="3921b0b2e0b365454cf8b997165c482f"/><file name="BillingAgreementAttributes.php" hash="e0bbaedf3aee7f1067888d4e9375af59"/><file name="BillingAgreementDetails.php" hash="1b658fc00f87e3f0f021ccfb2f99eefe"/><file name="BillingAgreementLimits.php" hash="dab6ab8f66490ba29a70875653c8e5d9"/><file name="BillingAgreementStatus.php" hash="0ac0344859384092d6d9e8da39a74faf"/><file name="Buyer.php" hash="39f8a6582bc2b01028b05b8d836d3c36"/><file name="CancelOrderReferenceRequest.php" hash="9cc5898b590a2af3b49cd80fa57f814c"/><file name="CancelOrderReferenceResponse.php" hash="0183f41e2b61be4a0b5d467fb790bbb1"/><file name="CancelOrderReferenceResult.php" hash="959a306b37f78385125a99e16b90efcc"/><file name="CaptureDetails.php" hash="abd0aae54d5c5203b2a4ebd9fa6e22d6"/><file name="CaptureRequest.php" hash="fd583e404c6a912ea731f640cb25b5bd"/><file name="CaptureResponse.php" hash="748c7d744436a31f0c167171b6ea4859"/><file name="CaptureResult.php" hash="01e50ce098b5baa49b6e99a1d214b4d0"/><file name="CloseAuthorizationRequest.php" hash="bd2ad1d641a62ff8e9567c28d29d380b"/><file name="CloseAuthorizationResponse.php" hash="5d9d0482f6b7499672965a1059c86309"/><file name="CloseAuthorizationResult.php" hash="551b53340039ec26e2a5b88d978c3487"/><file name="CloseBillingAgreementRequest.php" hash="272cd013fb1c479014ef906e8acb2451"/><file name="CloseBillingAgreementResponse.php" hash="0dcbf7315b300dc5a69258461af26b2c"/><file name="CloseBillingAgreementResult.php" hash="cdb1e83edeb9235e0628e156ca93735d"/><file name="CloseOrderReferenceRequest.php" hash="51a0e90cde8ef7218c9661e665ae0e01"/><file name="CloseOrderReferenceResponse.php" hash="9093e5b5ac5a2e722974298fc6ac293a"/><file name="CloseOrderReferenceResult.php" hash="6c40de823b51817ba5a32d21534098d5"/><file name="ConfirmBillingAgreementRequest.php" hash="ca96eb4f3fc93a6c91049c928a8e97aa"/><file name="ConfirmBillingAgreementResponse.php" hash="a600b340a156a191be8596264e27ff4c"/><file name="ConfirmBillingAgreementResult.php" hash="775de65034edcefb8ab778aabb2e5a82"/><file name="ConfirmOrderReferenceRequest.php" hash="bf5faea5f65cc807e231975560b0264a"/><file name="ConfirmOrderReferenceResponse.php" hash="4ef74b3dc826aff2337c3266d0a30207"/><file name="Constraint.php" hash="303c1db25b181407d8fa7f8b62bc5f05"/><file name="Constraints.php" hash="9da0f4b7e66576b84c4fd6da3704925b"/><file name="CreateOrderReferenceForIdRequest.php" hash="06ea9fb90b1985c7958c7dfefb4a2513"/><file name="CreateOrderReferenceForIdResponse.php" hash="68f6e42176bc5bcd1b5a3690be80418f"/><file name="CreateOrderReferenceForIdResult.php" hash="50600fe328e4c802334d0b12308875ca"/><file name="Destination.php" hash="e87ccf1a85981d7bf8b8c6f72d8731b2"/><file name="Error.php" hash="d21a6c88ec26f46363ccca239f5d3baf"/><file name="ErrorResponse.php" hash="8e351f2f1a5d3f6ffdadea8699ff3b30"/><file name="GetAuthorizationDetailsRequest.php" hash="6a1d43c9245813c57d3be6de557f768d"/><file name="GetAuthorizationDetailsResponse.php" hash="f9272df733a3ab5b556eb4d9032cc1a3"/><file name="GetAuthorizationDetailsResult.php" hash="270d0ebb53cf595593a72ba29ca3d1f0"/><file name="GetBillingAgreementDetailsRequest.php" hash="df8a926714ede6042091da422e04f181"/><file name="GetBillingAgreementDetailsResponse.php" hash="aba22538c8fef15e54edcbbe460dc9ef"/><file name="GetBillingAgreementDetailsResult.php" hash="1775046ceeefcf7ac86b5d737f6c0224"/><file name="GetCaptureDetailsRequest.php" hash="fba43cb1613fceda4f3e1ea282ed89ba"/><file name="GetCaptureDetailsResponse.php" hash="52f0408b003801a2f8364f60a726d1ea"/><file name="GetCaptureDetailsResult.php" hash="8866ba5fcafc8dcb03c43f0a99741f24"/><file name="GetOrderReferenceDetailsRequest.php" hash="a97dba48604325ddbda732f264928858"/><file name="GetOrderReferenceDetailsResponse.php" hash="c0ac35c5f5bc1396ed0798b38f8909b2"/><file name="GetOrderReferenceDetailsResult.php" hash="9a4ecf515761d6ab032d717c0b54a7db"/><file name="GetProviderCreditDetailsRequest.php" hash="1b613acafc8f66e0385379705bcf664c"/><file name="GetProviderCreditDetailsResponse.php" hash="9fcdbd8af985e96579c93378259c5e4a"/><file name="GetProviderCreditDetailsResult.php" hash="3a660d2ad0f6528e16f554987caf9a51"/><file name="GetProviderCreditReversalDetailsRequest.php" hash="592caa40f517ed1cfc66dd9a12e9bac3"/><file name="GetProviderCreditReversalDetailsResponse.php" hash="85d1fb8584f14d443cf7e4956c3dd03f"/><file name="GetProviderCreditReversalDetailsResult.php" hash="06effa515f870d1bd5fff7bc62a1d752"/><file name="GetRefundDetailsRequest.php" hash="e1d0e53d2a153174acf2200eb138c757"/><file name="GetRefundDetailsResponse.php" hash="1e7459d7dd500d0b249c7bea7308f2e7"/><file name="GetRefundDetailsResult.php" hash="543794de2b9d16c857b223dba01aecd4"/><file name="IdList.php" hash="b4268f542c7ba2104e163320ed612d22"/><file name="OrderItemCategories.php" hash="e73be59d18bbf97ac320687c1de50cb8"/><file name="OrderReferenceAttributes.php" hash="5a64aebf99a35f0c777e284f7070a86c"/><file name="OrderReferenceDetails.php" hash="1d9c76fb5f25760a9789dd18ba8d21b5"/><file name="OrderReferenceStatus.php" hash="d89ea6c6b42ac75c3183b8cfcb2fadef"/><file name="OrderTotal.php" hash="60d3ea9eb79100262158c20fbff7721b"/><file name="ParentDetails.php" hash="10956c527c367057d9f5517977a41c02"/><file name="Price.php" hash="09d7333f6c421432b8d5d965eae3995e"/><file name="ProviderCredit.php" hash="331663826ea8f444d5b0c05c59d69874"/><file name="ProviderCreditDetails.php" hash="0b916937d2397ad51d0dc1b0cf86777b"/><file name="ProviderCreditList.php" hash="3467cfe1dc096d07c33e2fadb3cb90d1"/><file name="ProviderCreditReversal.php" hash="b965141481deddd3b8e1c48a68d8c292"/><file name="ProviderCreditReversalDetails.php" hash="aaf5a41e7d6aba6758b5c24de2affe4d"/><file name="ProviderCreditReversalList.php" hash="47ff9cee9313ea98b23cec3257fdd704"/><file name="ProviderCreditReversalSummary.php" hash="decb86a0305f061206625dea1c8aacdb"/><file name="ProviderCreditReversalSummaryList.php" hash="4948d8e2034b7e60fc7157d7be149ea1"/><file name="ProviderCreditSummary.php" hash="06f9ad261e09b3709107d074604a1227"/><file name="ProviderCreditSummaryList.php" hash="28652df460f09e5d907d0c07f98b1b8f"/><file name="RefundDetails.php" hash="540392d28b43eb46f662dbb51f531b64"/><file name="RefundRequest.php" hash="0e712334612fde71d0cb9ddeb821707e"/><file name="RefundResponse.php" hash="43bf08dd68a46d5e8373bd760a3ee0e8"/><file name="RefundResult.php" hash="06df0a0180ed989d6576bc068b74f4bb"/><file name="ResponseHeaderMetadata.php" hash="d8024e3bf444e8a843a6f2f6a2f836ca"/><file name="ResponseMetadata.php" hash="40aa6720f5b801d3e5bdcadc3d496b69"/><file name="ReverseProviderCreditRequest.php" hash="51af6c8b7e31efd4fffafd83994fbc63"/><file name="ReverseProviderCreditResponse.php" hash="3a959a1b22156ddb81e2eed9e02a0da4"/><file name="ReverseProviderCreditResult.php" hash="6dc02bb8141e136a55d28034add4b101"/><file name="SellerBillingAgreementAttributes.php" hash="f46d36c1a55029d1423de6a7f554213f"/><file name="SellerOrderAttributes.php" hash="dfaca734d7b44dc4e38f5ebdcc14d7ef"/><file name="SetBillingAgreementDetailsRequest.php" hash="aa7c723f7f395ef59aded053413a30f0"/><file name="SetBillingAgreementDetailsResponse.php" hash="500823f0d779523ca912470d642f1cee"/><file name="SetBillingAgreementDetailsResult.php" hash="560eb1b417702c6170554b01bbd1666f"/><file name="SetOrderReferenceDetailsRequest.php" hash="01a63c649eafca4294e769d67dd5a176"/><file name="SetOrderReferenceDetailsResponse.php" hash="c88e8abc4e1ee3651e078691da8ea5c7"/><file name="SetOrderReferenceDetailsResult.php" hash="0bc28f81b9a000c14aa41866e53b256e"/><file name="Status.php" hash="0860d27faee2e1438c035fe769423935"/><file name="ValidateBillingAgreementRequest.php" hash="8919fcbfe049f8e655c5a3a649583c00"/><file name="ValidateBillingAgreementResponse.php" hash="7e34a36ef8e4970709308839a5f26a70"/><file name="ValidateBillingAgreementResult.php" hash="e111bac483f675c2f49aa51b3b727419"/></dir><file name="Model.php" hash="dd252b058b5736649cdec6038f825616"/><file name="RegionSpecificProperties.php" hash="5b1fa0f3a863c6f05adfd4e2abf61351"/><file name="Regions.php" hash="a544d12c6321899770c039426e063cce"/></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>
16
  <compatible/>
17
  <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>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Creativestyle_AmazonPayments</name>
4
+ <version>1.3.2</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: cURL error handling for Login API calls&#xD;
12
+ MODIFIED: asynchronous JS loading in the documenty body&#xD;
13
+ MODIFIED: use deminified JS for sandbox mode&#xD;
14
+ MODIFIED: Amazon button tooltip text for virtual orders&#xD;
15
+ MODIFIED: Amazon SDK library (refactor to fix autoloader issues)&#xD;
16
+ FIXED: shipping cost display issue when additional totals are implemented&#xD;
17
+ FIXED: JS merging issue&#xD;
18
+ FIXED: closing OrderReference after successful capture&#xD;
19
+ </notes>
20
  <authors><author><name>creativestyle GmbH</name><user>creativestyle</user><email>amazon@creativestyle.de</email></author></authors>
21
+ <date>2014-12-16</date>
22
+ <time>14:49:49</time>
23
+ <contents><target name="magecommunity"><dir name="Creativestyle"><dir name="AmazonPayments"><dir name="Block"><file name="Abstract.php" hash="a8879b92a7537e5c443f3488a22787fe"/><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="dc185fbffc8851d0031769e9a623ddda"/><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="29f5907c8898af60bdc78d957998da3f"/></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="2f5dfbc18879c9a9c6d4dc84ac54eb9e"/><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"/></dir><dir name="Onepage"><file name="Button.php" hash="b122db0163e8580f42679f13a3a45726"/></dir><dir name="Pay"><file name="Abstract.php" hash="2e96e1d4a1a0e2c74cee40a46a75241c"/><file name="Button.php" hash="b76cbc47c91b88ceb9fc1fde609fa2dc"/></dir><dir name="Payment"><file name="Info.php" hash="c6285a5688834b456765317d3471bf2a"/></dir></dir><file name="Exception.php" hash="ca655a29842b38dd2ebf438208a6c70c"/><dir name="Helper"><file name="Data.php" hash="c545b7bc86fefe023ed0a7bfaefbd3ca"/><file name="Debug.php" hash="782ae864f43f5bb85b439cf1a4c35334"/></dir><dir name="Model"><dir name="Api"><file name="Abstract.php" hash="1814fcd0d61599f15d808d9c2990ebe4"/><file name="Advanced.php" hash="f07d08dc5ca8fa80d2684a7726496a6e"/><file name="Ipn.php" hash="7796776a38fe90b9805cbd88094a773d"/><file name="Login.php" hash="d9297e66749c6930a1010a5babdfde14"/></dir><file name="Checkout.php" hash="8edbab923e21f813e235504bccd8936f"/><file name="Config.php" hash="5ea50ded4beaf93e5e1fe1aad282ec5e"/><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"/><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="PaymentAction.php" hash="6d0c15996ec3caf112d88e07ea703bb4"/><file name="Region.php" hash="8f5cc8ab970aa165e16085368b320f89"/></dir><file name="Manager.php" hash="3deaebb7cc0d613c63470d866d7aafb7"/><file name="Observer.php" hash="41f299c4ac80f4220f93bb5fae692ee5"/><dir name="Payment"><file name="Abstract.php" hash="5667d8b7b4eae1f3b29e8fc6c043b9ce"/><dir name="Advanced"><file name="Abstract.php" hash="9b4709b93da48f60769899838b1230ee"/><file name="Sandbox.php" hash="a1509cd32ad92e6e6d3a8f348be1d3bb"/></dir><file name="Advanced.php" hash="72006ba9aaa96486f6d7505814ffaf54"/></dir><dir name="Service"><file name="Login.php" hash="99f99ff273e0cb6dea7b2053702bf323"/><file name="Quote.php" hash="3f83d1e1b1c6e19e0e23cb1a8c8b41f5"/></dir><file name="Simulator.php" hash="be19c4b71f46f3251455c497aeb407f6"/><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="1293b8aa3851f09b7559306e37a6a6ea"/><file name="SystemController.php" hash="52c60fa39dba8582b4ca81c2f065dbc5"/></dir><dir name="Advanced"><file name="CheckoutController.php" hash="4b0f052d67439041bf68a6b7229ee59a"/><file name="IpnController.php" hash="0d8a52a891d493870dd1081f9a407170"/><file name="LoginController.php" hash="29df0bab4f4bfe08ccdf2267948ce1c9"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="2dc1b70997469f8f0cd6a80eff845842"/><file name="config.xml" hash="e1635cf20c2813dafa06dd73d9b06086"/><file name="system.xml" hash="d8004b1e1d07523825f81a5282999623"/></dir><dir name="sql"><dir name="amazonpayments_setup"><file name="mysql4-install-1.0.0.php" hash="d4681b9a39905cc9e9dcc660688dea85"/><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="200af8569ab7792e7f16c5f4a93c6897"/><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="229dbc619b8a34b227e0229212f91504"/></dir><dir name="template"><dir name="creativestyle"><dir name="amazonpayments"><dir name="button"><file name="js.phtml" hash="b9dca075a662063b4c83ed1181d2eb68"/></dir><dir name="checkout"><file name="capture_notice.phtml" hash="f9c75cd05a596d0a16c55f0169b4ee6c"/><file name="js.phtml" hash="ce0de5a6e7f8d1aa10b5c5c2317bb56d"/><dir name="review"><file name="button.phtml" hash="1312572385c9ff653d283bb0c3f47b1b"/></dir><file name="sandbox_toolbox.phtml" hash="ff639266f99827e3ec3a9e8305bd7eb7"/><file name="shipping_method.phtml" hash="8a8c97b4eb2a7c8cfc8248bd499b95eb"/></dir><file name="checkout.phtml" hash="083f3118e3e9665eda2851b285c7815d"/><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="6c04655e961b70ff1e2014b3d5d32215"/><file name="logout.phtml" hash="553862c063d4d1975fc6ebca031e6614"/></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="0ccc1deed1b65403353df371ce4856d2"/><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="c686d95415778cc30a1e952fab6be4b7"/><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="360b9295a2b7cc4848c1fd7f23f6c38d"/><dir name="template"><dir name="email"><file name="amazon_payments_failed.html" hash="4879ccbfbea101548700da52b058bd0b"/></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="creativestyle"><file name="apa_checkout.min.js" hash="ac6c62c9dcefeeb0d342b7c9cf481de5"/><file name="apa_sandbox_toolbox.min.js" hash="43db69188712b5b4665b586fc70f39de"/><dir name="vendors"><file name="prism.js" hash="c700de3d980f7ef1e056dc5400acfd44"/></dir><file name="apa_checkout.js" hash="e5e96adf46feb0ac5e4776e3dc8659c6"/></dir></dir></target><target name="magelib"><dir name="OffAmazonPayments"><file name="Model.php" hash="36434820209eb10952abc8e41259d96c"/></dir><dir name="OffAmazonPaymentsNotifications"><file name="Client.php" hash="3b2d2c969c03e774ff86fa876e12b278"/><dir name="Impl"><file name="Certificate.php" hash="3b49f95f652daa628a586c5d57a1b96f"/><file name="IpnNotificationParser.php" hash="41c7c75dfb26e2df9071263a464f4810"/><file name="Message.php" hash="d6a798d889d4fa1c6938b1493932925d"/><file name="OpenSslVerifySignature.php" hash="41ebc72238ef3eebe7741e21e18a9788"/><file name="SnsMessageParser.php" hash="7ebf58afecd5d3a3c859f6daf60b19c4"/><file name="SnsMessageValidator.php" hash="4d4a2452b4587d622926b6cfbfb4b179"/><file name="VerifySignature.php" hash="b03c485451a27ada7e67497988093e47"/><file name="XmlNotificationParser.php" hash="17ee03585854ed24eb4add7834e9f02d"/></dir><file name="Interface.php" hash="2c527d58c518632f8cc1b6a973c08e05"/><file name="InvalidCertificateException.php" hash="5412d2fc7ca03ac822bcb4066d558b50"/><file name="InvalidMessageException.php" hash="5fc7cb16c37c4cde49d87744c5a583c0"/><dir name="Model"><file name="AuthorizationDetails.php" hash="fccb851dc730850b8d185016dbca2590"/><file name="AuthorizationNotification.php" hash="80250048069681142a95cac51e3fa21c"/><file name="BillingAgreement.php" hash="087f904ec04b8c63a0120940f177c698"/><file name="BillingAgreementLimits.php" hash="801a01b85a09eababfa08b2186c44cd4"/><file name="BillingAgreementNotification.php" hash="dd8af8bd716a907f507c0dd885b3ed4c"/><file name="BillingAgreementStatus.php" hash="788a292faf04486d93b1f70b14cf156c"/><file name="CaptureDetails.php" hash="326a26f5b981710e4c6328cf1ea91459"/><file name="CaptureNotification.php" hash="50aaaf110b451b3a95e08a1525ec29c4"/><file name="IdList.php" hash="5c4b01c197bd17841dbba5ad37bd7b10"/><file name="IpnNotificationMetadata.php" hash="5e894a2584bbf0469ec73f32d7059ac6"/><file name="MerchantRegistrationDetails.php" hash="d4de7689d8e216567abd710dde7ef4ed"/><file name="NotificationImpl.php" hash="717df190c76f9d3b9a95999dbd962cd4"/><file name="NotificationMetadataImpl.php" hash="045d988afb0c21179d22e086e263a84d"/><file name="OrderItemCategories.php" hash="143c9a7a5d0e048fd8f3d35d7193699c"/><file name="OrderReference.php" hash="aa46198885e00b987c4b19c316920b9a"/><file name="OrderReferenceNotification.php" hash="5757807850c3afa08dd17a49803f317a"/><file name="OrderReferenceStatus.php" hash="91332f4bb02b984d57a6c519df3f90ed"/><file name="OrderTotal.php" hash="9414289b9477ffe27d3dfd0511aa0729"/><file name="Price.php" hash="f8c2a436b7244bc026078fd02887da82"/><file name="ProviderCreditDetails.php" hash="d355185842eb0816de151fb535b14edc"/><file name="ProviderCreditNotification.php" hash="833ef1e2383d6a97a28b1d61d352e824"/><file name="ProviderCreditReversalDetails.php" hash="a789bbf3c7074bc800053967e64286c7"/><file name="ProviderCreditReversalNotification.php" hash="84a36f2d6157424a571ddada073b2be5"/><file name="ProviderCreditReversalSummary.php" hash="1f9cd50005ade77d793a15e029b3cf69"/><file name="ProviderCreditReversalSummaryList.php" hash="6d3a3913ea433fa54ac34197825354ff"/><file name="ProviderCreditSummary.php" hash="4403e12b73867b58021655df3fcf6720"/><file name="ProviderCreditSummaryList.php" hash="8a5a83e94ce75fc3992f98525d47765d"/><file name="RefundDetails.php" hash="4b2dacdc4ce32db6b6dff7613e5b6098"/><file name="RefundNotification.php" hash="55225faad22f6a5b9b44603239488ebb"/><file name="SellerBillingAgreementAttributes.php" hash="c772791d5522be53415d339e169c6a12"/><file name="SellerOrderAttributes.php" hash="116f00df52e1cc7d9b0a23c58dc0c93d"/><file name="SnsNotificationMetadata.php" hash="79a8aacd35588ce20daea2d8ded574ac"/><file name="SolutionProviderMerchantNotification.php" hash="d5829f16e032db871798f1ba45732f39"/><file name="SolutionProviderOption.php" hash="df8fbbb1ad2fef1796e3b42a9a417a64"/><file name="SolutionProviderOptions.php" hash="8f5f0e7415bb9dfc5dfafaab236d91df"/><file name="Status.php" hash="5ac5d81fafbb7a45c7ef67b7d61e3ccf"/></dir><file name="Notification.php" hash="f14f5fded3845499c03ed011ff115b13"/><file name="NotificationMetadata.php" hash="fcbdda900353d35a850ab518c24506ca"/></dir><dir name="OffAmazonPaymentsService"><file name="Client.php" hash="bba604078e0d7491ee6dbcce80258aea"/><file name="Environments.php" hash="5c469c72e7e1fc24eeda2b6a22917d77"/><file name="Exception.php" hash="965ca3466457e04d79ee9250fc946803"/><file name="Interface.php" hash="822113682cd65aa8b02f61f18ab07984"/><file name="MerchantValues.php" hash="ef10d79a38b3ae5ded1c2ed9d55e1f6c"/><dir name="Model"><file name="Address.php" hash="2cac12c7465df053c1fbfebd7c0c3e4b"/><file name="AuthorizationDetails.php" hash="9ef03efd7eb35c2f1c764e60a7492be6"/><file name="AuthorizeOnBillingAgreementRequest.php" hash="08084c850ebbc53f1a691fec0db5d011"/><file name="AuthorizeOnBillingAgreementResponse.php" hash="c2bc2dab6950c7a6be5ec3c55b71b4f9"/><file name="AuthorizeOnBillingAgreementResult.php" hash="b52d0c0ad908617cbd39345aba54882b"/><file name="AuthorizeRequest.php" hash="d01f4a32ec8e57a44a0804ba7350bfef"/><file name="AuthorizeResponse.php" hash="ccbb769ef3012724c48b1d76acd6e0ef"/><file name="AuthorizeResult.php" hash="a90eaf3bb2a12a6945407c01a0f967d0"/><file name="BillingAddress.php" hash="9d3881a26603f1392f9b93b55a8a8a5a"/><file name="BillingAgreementAttributes.php" hash="30046b148b8a7b4cd6026ebd0fc482b5"/><file name="BillingAgreementDetails.php" hash="9b9d0d8722afa825d45f98b9c5cece6e"/><file name="BillingAgreementLimits.php" hash="9984271b285397d7e08322c91d9ccd08"/><file name="BillingAgreementStatus.php" hash="f3a6ac460a66e62a4e5cff1f966e1a4a"/><file name="Buyer.php" hash="10df01a4c7815bf4760e56308957351a"/><file name="CancelOrderReferenceRequest.php" hash="2a1aea8fad7cf8a87d2a9f6ff6fcea78"/><file name="CancelOrderReferenceResponse.php" hash="c3f81641827af137bf4a6010e58bb62c"/><file name="CancelOrderReferenceResult.php" hash="504557ccf47b0b5b6a071f138ba962f0"/><file name="CaptureDetails.php" hash="f907d38d2148b1c1703d6f1a3d958f34"/><file name="CaptureRequest.php" hash="f2ddfd0218c81f234b0ba05c74efe1dd"/><file name="CaptureResponse.php" hash="6faf1938d380ebaeb6fcf1ff6e865624"/><file name="CaptureResult.php" hash="f174ee46f021bd40751e0d63245bd850"/><file name="CloseAuthorizationRequest.php" hash="07191ba72e4eee57553ecd41e15f779d"/><file name="CloseAuthorizationResponse.php" hash="70e8e86c4edbfb2f96ec139560636494"/><file name="CloseAuthorizationResult.php" hash="2c406dd340ef5b838a37a75aabb4f149"/><file name="CloseBillingAgreementRequest.php" hash="c80b8e3cb690595dc72c3924f5e7a13f"/><file name="CloseBillingAgreementResponse.php" hash="8994fb56dc5f487302937c1395d0963d"/><file name="CloseBillingAgreementResult.php" hash="10517589598754b0e58be29c5082c3ce"/><file name="CloseOrderReferenceRequest.php" hash="523c2061c026540e0189872e87ed1af1"/><file name="CloseOrderReferenceResponse.php" hash="fd13d871e69eb5413526c19cf5f66de8"/><file name="CloseOrderReferenceResult.php" hash="0e5afd3aa795bf82684c0f40744e2e04"/><file name="ConfirmBillingAgreementRequest.php" hash="098e7fd225da377b14799a0957991d0a"/><file name="ConfirmBillingAgreementResponse.php" hash="54327b4909053fc3fc65197e796c5d59"/><file name="ConfirmBillingAgreementResult.php" hash="f1ab41657391d37de4148fa07b0849da"/><file name="ConfirmOrderReferenceRequest.php" hash="c0667576d46907f0965c89a36e5dc1aa"/><file name="ConfirmOrderReferenceResponse.php" hash="497d3a7f3710ece7bd1a25fd5261707f"/><file name="Constraint.php" hash="5dfaa3ce9fb9c0fe8a1f20e24a053f6e"/><file name="Constraints.php" hash="e831530f17d7df39cc03bceaafed0216"/><file name="CreateOrderReferenceForIdRequest.php" hash="84a50944a1e0d58bd1e77306f1f7ada7"/><file name="CreateOrderReferenceForIdResponse.php" hash="3b9d3020b2e874f191e0083203d46723"/><file name="CreateOrderReferenceForIdResult.php" hash="46f720aea9c58694b2ca4b81142abcfa"/><file name="Destination.php" hash="4da36642b21ab96ab6bdee10781d8d07"/><file name="Error.php" hash="a0b83f2bc8edc3e503efae6d98ecb464"/><file name="ErrorResponse.php" hash="00391c711283b2fd5a6859f6a341cbbf"/><file name="GetAuthorizationDetailsRequest.php" hash="fdfeafa306e64b92325972b67bb12f92"/><file name="GetAuthorizationDetailsResponse.php" hash="eae478e879b021b30e22188af50c2e2c"/><file name="GetAuthorizationDetailsResult.php" hash="270d0ebb53cf595593a72ba29ca3d1f0"/><file name="GetBillingAgreementDetailsRequest.php" hash="e8124ac8d748b26642456c090a86463b"/><file name="GetBillingAgreementDetailsResponse.php" hash="5e05dd77c3b176b303af9711eeea97fd"/><file name="GetBillingAgreementDetailsResult.php" hash="b320ede4586359d2b5f1f1d7333b2743"/><file name="GetCaptureDetailsRequest.php" hash="b4d9e5414e63840b87c97a1d5f8ec9bb"/><file name="GetCaptureDetailsResponse.php" hash="049306e3f85755114fb033732111c613"/><file name="GetCaptureDetailsResult.php" hash="ab7ccba1bfaf183205a2a5a7c495fd19"/><file name="GetOrderReferenceDetailsRequest.php" hash="21d60f781305cf963ea2a40099decdf7"/><file name="GetOrderReferenceDetailsResponse.php" hash="eebbc1b4482d78a0d3d57bbf8d1c5a66"/><file name="GetOrderReferenceDetailsResult.php" hash="f4425bd39c8279e66f4c9052d452925d"/><file name="GetProviderCreditDetailsRequest.php" hash="1b613acafc8f66e0385379705bcf664c"/><file name="GetProviderCreditDetailsResponse.php" hash="9fcdbd8af985e96579c93378259c5e4a"/><file name="GetProviderCreditDetailsResult.php" hash="3a660d2ad0f6528e16f554987caf9a51"/><file name="GetProviderCreditReversalDetailsRequest.php" hash="592caa40f517ed1cfc66dd9a12e9bac3"/><file name="GetProviderCreditReversalDetailsResponse.php" hash="85d1fb8584f14d443cf7e4956c3dd03f"/><file name="GetProviderCreditReversalDetailsResult.php" hash="06effa515f870d1bd5fff7bc62a1d752"/><file name="GetRefundDetailsRequest.php" hash="a433b45ba3dc2894042d2e8072286bd1"/><file name="GetRefundDetailsResponse.php" hash="58771173d1a1c43f2a8a9f5515f4823b"/><file name="GetRefundDetailsResult.php" hash="0d51a779b95371ad425a4c9bc0aa6f82"/><file name="IdList.php" hash="a7a531e733a67f5a320bdb77c6ebd1a6"/><file name="OrderItemCategories.php" hash="1ed3edbf18fda5819ace2284bff49c15"/><file name="OrderReferenceAttributes.php" hash="d3d2d00f6626ab2116553cf2d266bb38"/><file name="OrderReferenceDetails.php" hash="a3ae5a3c4a6d5b8b3fa4f84593d1c33a"/><file name="OrderReferenceStatus.php" hash="5605fd30208a09dedea1aab688d92f49"/><file name="OrderTotal.php" hash="3ba85975c17821e7b72710b713f48f93"/><file name="ParentDetails.php" hash="b0d8bc8245fc4f8e75842e7c48e5b174"/><file name="Price.php" hash="ebd5fe74f1840f7804b3f869ce25384b"/><file name="ProviderCredit.php" hash="331663826ea8f444d5b0c05c59d69874"/><file name="ProviderCreditDetails.php" hash="0b916937d2397ad51d0dc1b0cf86777b"/><file name="ProviderCreditList.php" hash="3467cfe1dc096d07c33e2fadb3cb90d1"/><file name="ProviderCreditReversal.php" hash="b965141481deddd3b8e1c48a68d8c292"/><file name="ProviderCreditReversalDetails.php" hash="aaf5a41e7d6aba6758b5c24de2affe4d"/><file name="ProviderCreditReversalList.php" hash="47ff9cee9313ea98b23cec3257fdd704"/><file name="ProviderCreditReversalSummary.php" hash="decb86a0305f061206625dea1c8aacdb"/><file name="ProviderCreditReversalSummaryList.php" hash="4948d8e2034b7e60fc7157d7be149ea1"/><file name="ProviderCreditSummary.php" hash="06f9ad261e09b3709107d074604a1227"/><file name="ProviderCreditSummaryList.php" hash="28652df460f09e5d907d0c07f98b1b8f"/><file name="RefundDetails.php" hash="e12c1a6a49bda599d628e382de6f8874"/><file name="RefundRequest.php" hash="1e6f8500871cbae8b1d57a7a853cd298"/><file name="RefundResponse.php" hash="f2af68623a6f37a0f0227ea9e648603f"/><file name="RefundResult.php" hash="2b73f810b388d8ea30ded964bb1d1644"/><file name="ResponseHeaderMetadata.php" hash="4305e32c733bf48b2e34b2de0f0eee7f"/><file name="ResponseMetadata.php" hash="c5efe1da81e4a9fa3c76b9901c90f9fe"/><file name="ReverseProviderCreditRequest.php" hash="51af6c8b7e31efd4fffafd83994fbc63"/><file name="ReverseProviderCreditResponse.php" hash="3a959a1b22156ddb81e2eed9e02a0da4"/><file name="ReverseProviderCreditResult.php" hash="6dc02bb8141e136a55d28034add4b101"/><file name="SellerBillingAgreementAttributes.php" hash="0c1c845a25dbcd724d0c6ca2a8e07ab4"/><file name="SellerOrderAttributes.php" hash="326ac3910572ddfcc88d467e837283af"/><file name="SetBillingAgreementDetailsRequest.php" hash="19522c9d1290c1ae63e22902cd1655d9"/><file name="SetBillingAgreementDetailsResponse.php" hash="029e631097cb557f2a44ccc0f108aeae"/><file name="SetBillingAgreementDetailsResult.php" hash="4006851ac3799e4ee89fe6665e78be66"/><file name="SetOrderReferenceDetailsRequest.php" hash="61de911c937a20dc795727ca66a90b89"/><file name="SetOrderReferenceDetailsResponse.php" hash="e2bcd0495e0249c654a3cfedc0e3697e"/><file name="SetOrderReferenceDetailsResult.php" hash="ad903a104466558226f58e790a2bb061"/><file name="Status.php" hash="92253830c1eeb08094f5eca6506a0b0f"/><file name="ValidateBillingAgreementRequest.php" hash="b3a0ae148f92a2b0132af201f49c98d4"/><file name="ValidateBillingAgreementResponse.php" hash="c3866b3ffa85037b5c070ffed2d6cf06"/><file name="ValidateBillingAgreementResult.php" hash="2c96a303ad608eb9c840971c374125f4"/></dir><file name="Model.php" hash="7452a81d314d6212937d79e71b040e01"/><file name="RegionSpecificProperties.php" hash="4cad5116fb2608d5000c0e9aed5bace9"/><file name="Regions.php" hash="849549c7834fac2fb94749276eabeb97"/></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>
24
  <compatible/>
25
  <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>
26
  </package>