OneID - Version 2.0.6

Version Notes

Fix Checkout bug for unsupported browsers (for example IE7 and IE8)

Download this release

Release Info

Developer OneID
Extension OneID
Version 2.0.6
Comparing to
See all releases


Code changes from version 2.0.5 to 2.0.6

app/design/frontend/base/default/template/oneid/block/page/html/head.phtml CHANGED
@@ -1,4 +1,3 @@
1
- <script src="<?php echo $this->helper('OneID')->getEndpoint() ?>/form/form.js"></script>
2
  <script src="<?php echo $this->helper('OneID')->getEndpoint() ?>/js/includeexternal.js" type="text/javascript"></script>
3
  <script type="text/javascript">
4
  // Init oneID
 
1
  <script src="<?php echo $this->helper('OneID')->getEndpoint() ?>/js/includeexternal.js" type="text/javascript"></script>
2
  <script type="text/javascript">
3
  // Init oneID
app/design/frontend/base/default/template/oneid/checkout/oneid_onepage.phtml CHANGED
@@ -1,6 +1,9 @@
 
 
1
  <?php
2
  $args = Mage::app()->getRequest()->getParams();
3
  $_quote = Mage::getModel('checkout/cart')->getQuote();
 
4
  ?>
5
 
6
  <span class="please-wait" id="oneid-checkout-please-wait" style="display:none;">
@@ -66,40 +69,59 @@ $_quote = Mage::getModel('checkout/cart')->getQuote();
66
 
67
  // Call the external setuserattributes, which proxies to server.
68
  OneId.setUserAttributes(data, function(status){
69
- oneidAuthorizePurchase();
70
  });
71
  }
72
  else {
73
- oneidAuthorizePurchase();
74
  }
75
  };
76
- var oneidAuthorizePurchase = function() {
77
- OneId.isUserLoggedIn(function(isLoggedIn){
78
- if (isLoggedIn){
79
- OneId.authSecuredTransaction({'auth_message' : '<?php echo Mage::helper("OneID")->getAuthPurchaseMessage($_quote) ?>',
80
- 'amount' : '<?php echo $_quote->getGrandTotal() ?>',
81
- 'challenge' : <?php echo Mage::helper("OneID")->getChalj('secureTransaction', $_quote) ?>
82
- },
83
- function(data) {
84
- if (!data) {
85
- return;
86
- }
87
- if (!OneId.$("#oneIdPurchaseAuthData").length){
88
- OneId.$('<input id="oneIDPurchaseAuthData" type="hidden" name="oneIDPurchaseAuthData" />').appendTo("#co-payment-form");
89
- }
90
-
91
-
92
- $("oneIDPurchaseAuthData").value = OneIdJSON.stringify(data);
93
- review.save();
94
- });
95
- }
96
 
97
- else{
98
- review.save();
 
 
99
  }
100
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
  };
102
 
 
103
  var paymentPostData = {
104
  "formData" : {
105
  "[name='payment[cc_owner]']" : {
@@ -515,4 +537,6 @@ $_quote = Mage::getModel('checkout/cart')->getQuote();
515
 
516
 
517
  });
518
- </script>
 
 
1
+ <?php if (Mage::helper("OneID")->isBrowserOneIdSupported()) : ?>
2
+
3
  <?php
4
  $args = Mage::app()->getRequest()->getParams();
5
  $_quote = Mage::getModel('checkout/cart')->getQuote();
6
+ $doCheck = Mage::helper("OneID")->isQuoteAuthRequired($_quote);
7
  ?>
8
 
9
  <span class="please-wait" id="oneid-checkout-please-wait" style="display:none;">
69
 
70
  // Call the external setuserattributes, which proxies to server.
71
  OneId.setUserAttributes(data, function(status){
72
+ oneidAuthorizePurchase();
73
  });
74
  }
75
  else {
76
+ oneidAuthorizePurchase();
77
  }
78
  };
79
+
80
+ var oneidAuthorizePurchase = function() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
 
82
+ var doApprovalCheck = <?php if ($doCheck) {
83
+ echo 1;
84
+ } else {
85
+ echo 0;
86
  }
87
+ ?>;
88
+ if (doApprovalCheck){
89
+ OneId.isUserLoggedIn(function(isLoggedIn){
90
+ if (isLoggedIn){
91
+ OneId.authSecuredTransaction({
92
+ 'message' : '<?php echo Mage::helper("OneID")->getAuthPurchaseMessage($_quote) ?>',
93
+ 'amount' : '<?php echo $_quote->getGrandTotal() ?>',
94
+ 'challenge' : {}
95
+ },
96
+ function(data) {
97
+ if (!data){
98
+ return;
99
+ }
100
+ else if (!data.confirm) {
101
+ alert(data.error);
102
+ }
103
+ else {
104
+ if (!OneId.$("#oneIdPurchaseAuthData").length){
105
+ OneId.$('<input id="oneIDPurchaseAuthData" type="hidden" name="oneIDPurchaseAuthData" />').appendTo("#co-payment-form");
106
+ }
107
+
108
+ $("oneIDPurchaseAuthData").value = OneIdJSON.stringify(data);
109
+ review.save();
110
+ }
111
+ });
112
+ }
113
+
114
+ else{
115
+ review.save();
116
+ }
117
+ });
118
+ }
119
+ else{
120
+ review.save();
121
+ }
122
  };
123
 
124
+
125
  var paymentPostData = {
126
  "formData" : {
127
  "[name='payment[cc_owner]']" : {
537
 
538
 
539
  });
540
+ </script>
541
+
542
+ <?php endif; ?>
app/design/frontend/base/default/template/oneid/checkout/onepage/review/button.phtml CHANGED
@@ -1 +1,5 @@
1
- <button type="submit" title="<?php echo $this->__('Place Order') ?>" class="button btn-checkout" onclick="oneIDSaveAttributes()"><span><span><?php echo $this->__('Place Order') ?></span></span></button>
 
 
 
 
1
+ <?php if (Mage::helper("OneID")->isBrowserOneIdSupported()) : ?>
2
+ <button type="submit" title="<?php echo $this->__('Place Order') ?>" class="button btn-checkout" onclick="oneIDSaveAttributes()"><span><span><?php echo $this->__('Place Order') ?></span></span></button>
3
+ <?php else: ?>
4
+ <button type="submit" title="<?php echo $this->__('Place Order') ?>" class="button btn-checkout" onclick="review.save()"><span><span><?php echo $this->__('Place Order') ?></span></span></button>
5
+ <?php endif; ?>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>OneID</name>
4
- <version>2.0.5</version>
5
  <stability>stable</stability>
6
  <license>Apache Software License (ASL)</license>
7
  <channel>community</channel>
@@ -21,11 +21,11 @@ Privacy: OneID does not track any user behavior &#x2013; and certainly won&#x201
21
  Security: OneID secures customer information using three separate cryptographic combinations across multiple devices.&#xD;
22
  Convenience: OneID removes the hassle of having to remember user names and passwords.&#xD;
23
  And along with all those great benefits to you and your users, with this plugin you'll also get to use OneID to log into and administer your WordPress site using your OneID.</description>
24
- <notes>Fix bug for when OneID checkout stops because payment info was missing.</notes>
25
  <authors><author><name>OneID</name><user>bpk_oneid</user><email>bpk@oneid.com</email></author></authors>
26
- <date>2013-06-27</date>
27
- <time>20:54:37</time>
28
- <contents><target name="magecommunity"><dir name="OneID"><dir name="Connector"><dir name="Block"><dir name="Checkout"><dir name="Onepage"><file name="Success.php" hash="94f38f858a45304c10138c3a1b265490"/></dir></dir><file name="Signin.php" hash="454d819e284f02ef5e2ae8e57d714918"/></dir><dir name="Helper"><file name="Data.php" hash="45076e98d6591962eefbbe132fe9a3ee"/></dir><dir name="controllers"><file name="AccountController.php" hash="2401a0a519aac21bebeee77233fd0b03"/><file name="ConnectorController.php" hash="a7703df27f2c28888c71482bf3cc4a8f"/><file name="OnepageController.php" hash="78d2dbae1606057fb3544296351898d8"/></dir><dir name="etc"><file name="config.xml" hash="8c3246ec55c0f60669fe484abbc1a04b"/><file name="system.xml" hash="d47ac462cf6efd529aca557fad1b890e"/></dir><dir name="sql"><dir name="oneid_connector_setup"><file name="mysql4-install-0.1.0.php" hash="cad7569ee96103d087bf077661c1cafe"/></dir></dir></dir><file name="README.txt" hash="fc7ce5e9b6b09f43a8776ef1c05d3f11"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="oneid"><dir name="block"><file name="login.phtml" hash="858cf26fe6aebeeb2817a0e2d806bb70"/><dir name="page"><dir name="html"><file name="footer.phtml" hash="dc3c0e4038c6e517adcae82ee81f6242"/><file name="head.phtml" hash="9dd7e46b5c3ce6eb4e92ef6738d55dc6"/><file name="newjavascript.js" hash="c9e0fa9a4851c0070614f605ebac8257"/></dir></dir></dir><dir name="checkout"><file name="cart.phtml" hash="4b02b99a1bbc8ad14a4452775df49ef2"/><file name="oneid_onepage.phtml" hash="830ffe1118be385ad808b2ffc53c7767"/><dir name="onepage"><file name="link.phtml" hash="f138dda3c125c8a2e19cfdad494a7fbd"/><dir name="review"><file name="button.phtml" hash="7646991c5b937654771fa78627e49c95"/></dir></dir><dir name="success"><file name="oneid_create.phtml" hash="653fee23d3059609ae5330f0d6c84d34"/></dir></dir><dir name="customer"><dir name="account"><file name="dashboard.phtml" hash="2c11f754f8b8130280f60c7a91090790"/></dir><dir name="form"><file name="edit.phtml" hash="23eea7e7e29cb36c3c5885d7775de528"/><file name="forgotpassword.phtml" hash="cd02367e8214930140d80a7834e0f4a4"/></dir></dir><dir name="form"><file name="traditional_login.phtml" hash="eb65d5e144a0d385eeeeb15f34bac935"/></dir><dir name="oneid"><file name="signin.phtml" hash="66584827e4ebcc25e439200fd0addc67"/></dir></dir></dir><dir name="layout"><file name="OneID.xml" hash="a394b3f62e225364b5053160c845d38c"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="oneid.css" hash="5e44748f801c63012a57995a0c1fca80"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Oneid_Connector.xml" hash="1f42a132067a01e1056d5c514d96507a"/></dir></target></contents>
29
  <compatible/>
30
  <dependencies><required><php><min>5.0.0</min><max>5.4.10</max></php></required></dependencies>
31
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>OneID</name>
4
+ <version>2.0.6</version>
5
  <stability>stable</stability>
6
  <license>Apache Software License (ASL)</license>
7
  <channel>community</channel>
21
  Security: OneID secures customer information using three separate cryptographic combinations across multiple devices.&#xD;
22
  Convenience: OneID removes the hassle of having to remember user names and passwords.&#xD;
23
  And along with all those great benefits to you and your users, with this plugin you'll also get to use OneID to log into and administer your WordPress site using your OneID.</description>
24
+ <notes>Fix Checkout bug for unsupported browsers (for example IE7 and IE8)</notes>
25
  <authors><author><name>OneID</name><user>bpk_oneid</user><email>bpk@oneid.com</email></author></authors>
26
+ <date>2013-08-16</date>
27
+ <time>18:44:28</time>
28
+ <contents><target name="magecommunity"><dir name="OneID"><dir name="Connector"><dir name="Block"><dir name="Checkout"><dir name="Onepage"><file name="Success.php" hash="94f38f858a45304c10138c3a1b265490"/></dir></dir><file name="Signin.php" hash="454d819e284f02ef5e2ae8e57d714918"/></dir><dir name="Helper"><file name="Data.php" hash="45076e98d6591962eefbbe132fe9a3ee"/></dir><dir name="controllers"><file name="AccountController.php" hash="2401a0a519aac21bebeee77233fd0b03"/><file name="ConnectorController.php" hash="a7703df27f2c28888c71482bf3cc4a8f"/><file name="OnepageController.php" hash="78d2dbae1606057fb3544296351898d8"/></dir><dir name="etc"><file name="config.xml" hash="8c3246ec55c0f60669fe484abbc1a04b"/><file name="system.xml" hash="d47ac462cf6efd529aca557fad1b890e"/></dir><dir name="sql"><dir name="oneid_connector_setup"><file name="mysql4-install-0.1.0.php" hash="cad7569ee96103d087bf077661c1cafe"/></dir></dir></dir><file name="README.txt" hash="fc7ce5e9b6b09f43a8776ef1c05d3f11"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="oneid"><dir name="block"><file name="login.phtml" hash="858cf26fe6aebeeb2817a0e2d806bb70"/><dir name="page"><dir name="html"><file name="footer.phtml" hash="dc3c0e4038c6e517adcae82ee81f6242"/><file name="head.phtml" hash="8df22f9a0f835fc1a426f9e32edec167"/><file name="newjavascript.js" hash="c9e0fa9a4851c0070614f605ebac8257"/></dir></dir></dir><dir name="checkout"><file name="cart.phtml" hash="4b02b99a1bbc8ad14a4452775df49ef2"/><file name="oneid_onepage.phtml" hash="f7451fd10c97e18369e36ad4380e9189"/><dir name="onepage"><file name="link.phtml" hash="f138dda3c125c8a2e19cfdad494a7fbd"/><dir name="review"><file name="button.phtml" hash="228932affc849dd92186b1a45cb3f0fc"/></dir></dir><dir name="success"><file name="oneid_create.phtml" hash="653fee23d3059609ae5330f0d6c84d34"/></dir></dir><dir name="customer"><dir name="account"><file name="dashboard.phtml" hash="2c11f754f8b8130280f60c7a91090790"/></dir><dir name="form"><file name="edit.phtml" hash="23eea7e7e29cb36c3c5885d7775de528"/><file name="forgotpassword.phtml" hash="cd02367e8214930140d80a7834e0f4a4"/></dir></dir><dir name="form"><file name="traditional_login.phtml" hash="eb65d5e144a0d385eeeeb15f34bac935"/></dir><dir name="oneid"><file name="signin.phtml" hash="66584827e4ebcc25e439200fd0addc67"/></dir></dir></dir><dir name="layout"><file name="OneID.xml" hash="a394b3f62e225364b5053160c845d38c"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="oneid.css" hash="5e44748f801c63012a57995a0c1fca80"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Oneid_Connector.xml" hash="1f42a132067a01e1056d5c514d96507a"/></dir></target></contents>
29
  <compatible/>
30
  <dependencies><required><php><min>5.0.0</min><max>5.4.10</max></php></required></dependencies>
31
  </package>