Chargeback - Version 1.1.6

Version Notes

Connect Magento to Chargeback app.

Download this release

Release Info

Developer Scott Stone
Extension Chargeback
Version 1.1.6
Comparing to
See all releases


Code changes from version 1.1.5 to 1.1.6

app/code/community/Chargeback/Auth/Helper/Data.php CHANGED
@@ -43,19 +43,11 @@ class Chargeback_Auth_Helper_Data extends Mage_Core_Helper_Abstract {
43
  if($this->consumer()->getUsername() == $this->name){
44
  $this->consumer()->delete()->save();
45
  }
46
- // set status of connection to false
47
- $this->setComplete(false);
48
- }
49
-
50
- public function setComplete($complete = true)
51
- {
52
- Mage::getConfig()->saveConfig('chargeback/general/completed', $complete ? true : false, 'default', 0);
53
  }
54
 
55
  public function getComplete()
56
  {
57
- Mage::app()->getStore()->resetConfig();
58
- return Mage::getStoreConfig('chargeback/general/completed');
59
  }
60
 
61
  public function createAPIAccount()
43
  if($this->consumer()->getUsername() == $this->name){
44
  $this->consumer()->delete()->save();
45
  }
 
 
 
 
 
 
 
46
  }
47
 
48
  public function getComplete()
49
  {
50
+ return ($this->oauthRole()->getRoleName() == $this->name) && ($this->role()->getRoleName() == $this->name) && ($this->consumer()->getUsername() == $this->name);
 
51
  }
52
 
53
  public function createAPIAccount()
app/code/community/Chargeback/Auth/Model/Observer.php CHANGED
@@ -31,11 +31,7 @@ class Chargeback_Auth_Model_Observer
31
  return;
32
  }
33
 
34
- if ($r->getParam("cb_return_status") == "failure"){
35
- $helper->setComplete(0);
36
- }
37
  if ($r->getParam("cb_return_status") == "success") {
38
- $helper->setComplete();
39
  $admin->unsetData('chargeback_password');
40
  }
41
 
31
  return;
32
  }
33
 
 
 
 
34
  if ($r->getParam("cb_return_status") == "success") {
 
35
  $admin->unsetData('chargeback_password');
36
  }
37
 
app/code/community/Chargeback/Auth/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Chargeback_Auth>
5
- <version>1.1.4</version>
6
  </Chargeback_Auth>
7
  </modules>
8
  <global>
@@ -45,7 +45,6 @@
45
  <chargeback>
46
  <general>
47
  <url>https://app.chargeback.com/</url>
48
- <completed>false</completed>
49
  </general>
50
  </chargeback>
51
  </default>
2
  <config>
3
  <modules>
4
  <Chargeback_Auth>
5
+ <version>1.1.5</version>
6
  </Chargeback_Auth>
7
  </modules>
8
  <global>
45
  <chargeback>
46
  <general>
47
  <url>https://app.chargeback.com/</url>
 
48
  </general>
49
  </chargeback>
50
  </default>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Chargeback</name>
4
- <version>1.1.5</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/gpl-2.0.html">GPLv2 or later</license>
7
  <channel>community</channel>
@@ -43,8 +43,8 @@ Features&#xD;
43
  <notes>Connect Magento to Chargeback app.</notes>
44
  <authors><author><name>Scott Stone</name><user>MAG003612282</user><email>datasources@chargeback.com</email></author></authors>
45
  <date>2017-06-09</date>
46
- <time>01:57:45</time>
47
- <contents><target name="magecommunity"><dir name="Chargeback"><dir name="Auth"><dir name="Block"><file name="Completed.php" hash="0b41672dea756ff5c5d8490a1884e829"/><file name="Hidden.php" hash="7c41dc3f37768a53180dec4cac19ef50"/></dir><dir name="Helper"><file name="Data.php" hash="db96ed4240d1fb71b18409d6c7f0120c"/></dir><dir name="Model"><file name="Observer.php" hash="9235f9dfb7fbc6bbe396d12928371551"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1c9736a7540468bda74045681e1fd42e"/><file name="api.xml" hash="cd2eb95785e878709ea5ce2c4be22d97"/><file name="config.xml" hash="a68ebcb8d5f001d55c9137a2e55ef2fd"/><file name="system.xml" hash="6fc80245c66eb7154cca67875f1b6ec2"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="chargeback"><file name="auth.xml" hash="bbe2f7d97aab50bd1f8f457c9c990dd6"/></dir></dir><dir name="template"><dir name="chargeback"><file name="connect.phtml" hash="8c12ad3eedc080a854161ac32a583311"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Chargeback_Auth.xml" hash="63ac746d27e68b911e44879cf139a2c3"/></dir></target><target name="mage"><dir name="js"><dir name="adminhtml"><dir name="chargeback"><file name="chargeback.js" hash="67766c60c372530a950aff803e217fe2"/></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><file name="chargeback.css" hash="f5e25253f4ce556f071d51d91e6583ac"/><dir name="images"><dir name="chargeback"><file name="0-free.png" hash="0bf2ae386e1ce5ad54fcc1db69412b3a"/><file name="0-quality.png" hash="212307c6779d502901fb1e18177fa47f"/><file name="0-recovered.png" hash="e4d97ba6d6fb0993d2d9c007f3d4e40a"/><file name="0-secure.png" hash="d666b88a3b08b723e79d8733aa1fdda2"/><file name="2016-horizontal-400px.png" hash="ce0e3011f26399edf3ecca164f65aa6b"/><file name="cb-demo.gif" hash="239cd0fd643d4c9a6d5d9cac2b197cb2"/><file name="connected.png" hash="89d134bb5817029bff7777cef6e8c0f6"/><file name="connecting-magento.gif" hash="0bcaca123467cc7e9cd32b3fd8f9501d"/><file name="logo.png" hash="d7504a03906360d0945976c56cf62fce"/><file name="not-connected.png" hash="1b9d2ac4cdf3e71956ee78b5df025199"/></dir></dir></dir></dir></dir></target></contents>
48
  <compatible/>
49
  <dependencies><required><php><min>5.5.0</min><max>7.1.0</max></php></required></dependencies>
50
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Chargeback</name>
4
+ <version>1.1.6</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/gpl-2.0.html">GPLv2 or later</license>
7
  <channel>community</channel>
43
  <notes>Connect Magento to Chargeback app.</notes>
44
  <authors><author><name>Scott Stone</name><user>MAG003612282</user><email>datasources@chargeback.com</email></author></authors>
45
  <date>2017-06-09</date>
46
+ <time>02:12:53</time>
47
+ <contents><target name="magecommunity"><dir name="Chargeback"><dir name="Auth"><dir name="Block"><file name="Completed.php" hash="0b41672dea756ff5c5d8490a1884e829"/><file name="Hidden.php" hash="7c41dc3f37768a53180dec4cac19ef50"/></dir><dir name="Helper"><file name="Data.php" hash="c2116adcc2ab1ab5fcce4621b13e65dd"/></dir><dir name="Model"><file name="Observer.php" hash="af3e5d15e616a2866d95451eefc2d7f3"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1c9736a7540468bda74045681e1fd42e"/><file name="api.xml" hash="cd2eb95785e878709ea5ce2c4be22d97"/><file name="config.xml" hash="54d105e98a419ab40baa36f6bf677d1c"/><file name="system.xml" hash="6fc80245c66eb7154cca67875f1b6ec2"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="chargeback"><file name="auth.xml" hash="bbe2f7d97aab50bd1f8f457c9c990dd6"/></dir></dir><dir name="template"><dir name="chargeback"><file name="connect.phtml" hash="8c12ad3eedc080a854161ac32a583311"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Chargeback_Auth.xml" hash="63ac746d27e68b911e44879cf139a2c3"/></dir></target><target name="mage"><dir name="js"><dir name="adminhtml"><dir name="chargeback"><file name="chargeback.js" hash="67766c60c372530a950aff803e217fe2"/></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><file name="chargeback.css" hash="f5e25253f4ce556f071d51d91e6583ac"/><dir name="images"><dir name="chargeback"><file name="0-free.png" hash="0bf2ae386e1ce5ad54fcc1db69412b3a"/><file name="0-quality.png" hash="212307c6779d502901fb1e18177fa47f"/><file name="0-recovered.png" hash="e4d97ba6d6fb0993d2d9c007f3d4e40a"/><file name="0-secure.png" hash="d666b88a3b08b723e79d8733aa1fdda2"/><file name="2016-horizontal-400px.png" hash="ce0e3011f26399edf3ecca164f65aa6b"/><file name="cb-demo.gif" hash="239cd0fd643d4c9a6d5d9cac2b197cb2"/><file name="connected.png" hash="89d134bb5817029bff7777cef6e8c0f6"/><file name="connecting-magento.gif" hash="0bcaca123467cc7e9cd32b3fd8f9501d"/><file name="logo.png" hash="d7504a03906360d0945976c56cf62fce"/><file name="not-connected.png" hash="1b9d2ac4cdf3e71956ee78b5df025199"/></dir></dir></dir></dir></dir></target></contents>
48
  <compatible/>
49
  <dependencies><required><php><min>5.5.0</min><max>7.1.0</max></php></required></dependencies>
50
  </package>