F500_Xibpayments - Version 1.0.10

Version Notes

Stable release for Magento 1.4

Download this release

Release Info

Developer Magento Core Team
Extension F500_Xibpayments
Version 1.0.10
Comparing to
See all releases


Code changes from version 1.0.9 to 1.0.10

app/code/local/F500/Xibpayments/Model/Standard.php CHANGED
@@ -41,6 +41,13 @@ class F500_Xibpayments_Model_Standard extends Mage_Payment_Model_Method_Abstract
41
  protected $_canUseCheckout = true;
42
  protected $_canUseForMultishipping = false;
43
 
 
 
 
 
 
 
 
44
 
45
  /**
46
  * Get checkout session namespace
@@ -165,7 +172,10 @@ class F500_Xibpayments_Model_Standard extends Mage_Payment_Model_Method_Abstract
165
  'country_code' => $a->getCountry(),
166
  'postal_code' => $a->getPostcode(),
167
  'phone_number' => $a->getTelephone(),
168
- 'currency' => $currency_code
 
 
 
169
  );
170
 
171
  if ( $this->isTest() || $this->isDebug() ) {
41
  protected $_canUseCheckout = true;
42
  protected $_canUseForMultishipping = false;
43
 
44
+ /**
45
+ * Get plugin version to send to gateway (debugging purposes)
46
+ */
47
+ public function getVersion()
48
+ {
49
+ return (string) Mage::getConfig()->getNode('modules')->F500_Xibpayments->version;
50
+ }
51
 
52
  /**
53
  * Get checkout session namespace
172
  'country_code' => $a->getCountry(),
173
  'postal_code' => $a->getPostcode(),
174
  'phone_number' => $a->getTelephone(),
175
+ 'currency' => $currency_code,
176
+ 'magento_version' => Mage::getVersion(),
177
+ 'plugin_name' => 'xibpayments',
178
+ 'plugin_version' => $this->getVersion(),
179
  );
180
 
181
  if ( $this->isTest() || $this->isDebug() ) {
app/code/local/F500/Xibpayments/controllers/SecureController.php CHANGED
@@ -84,7 +84,7 @@ class F500_Xibpayments_SecureController extends Mage_Core_Controller_Front_Actio
84
  */
85
  public function cancelAction()
86
  {
87
- $session = Mage::getSingleton('xibpayments/session');
88
  $session->setQuoteId($session->getXibpaymentsStandardQuoteId(true));
89
 
90
  // cancel order
@@ -93,6 +93,10 @@ class F500_Xibpayments_SecureController extends Mage_Core_Controller_Front_Actio
93
  if ($order->getId()) {
94
  $order->cancel()->save();
95
  }
 
 
 
 
96
  }
97
 
98
  //redirect to checkout one page
84
  */
85
  public function cancelAction()
86
  {
87
+ $session = Mage::getSingleton('checkout/session');
88
  $session->setQuoteId($session->getXibpaymentsStandardQuoteId(true));
89
 
90
  // cancel order
93
  if ($order->getId()) {
94
  $order->cancel()->save();
95
  }
96
+ $quote = Mage::getModel('sales/quote')->load( $session->getLastSuccessQuoteId());
97
+ if ($quote) {
98
+ $quote->setIsActive(1)->save();
99
+ }
100
  }
101
 
102
  //redirect to checkout one page
app/code/local/F500/Xibpayments/etc/config.xml CHANGED
@@ -20,7 +20,7 @@
20
  <config>
21
  <modules>
22
  <F500_Xibpayments>
23
- <version>1.0.9</version>
24
  </F500_Xibpayments>
25
  </modules>
26
  <global>
20
  <config>
21
  <modules>
22
  <F500_Xibpayments>
23
+ <version>1.0.10</version>
24
  </F500_Xibpayments>
25
  </modules>
26
  <global>
app/etc/modules/F500_Xibpayments.xml CHANGED
@@ -12,7 +12,7 @@
12
  <Mage_Payment />
13
  </depends>
14
  <!-- declare module's version information for database updates -->
15
- <version>1.0.9</version>
16
  </F500_Xibpayments>
17
  </modules>
18
  </config>
12
  <Mage_Payment />
13
  </depends>
14
  <!-- declare module's version information for database updates -->
15
+ <version>1.0.10</version>
16
  </F500_Xibpayments>
17
  </modules>
18
  </config>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>F500_Xibpayments</name>
4
- <version>1.0.9</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -12,9 +12,9 @@
12
  Apply for an account at info@xibpayments.com</description>
13
  <notes>Stable release for Magento 1.4</notes>
14
  <authors><author><name>Ramon de la Fuente</name><user>auto-converted</user><email>ramon@future500.nl</email></author></authors>
15
- <date>2011-02-12</date>
16
- <time>14:44:59</time>
17
- <contents><target name="magelocale"><dir name="en_US"><file name="F500_Xibpayments.csv" hash="a64707577f9f55c4a9bd549f5ffdfb13"/></dir><dir name="nl_NL"><file name="F500_Xibpayments.csv" hash="f8d75d43ee93564505c63d5646bc6a25"/></dir></target><target name="magelocal"><dir name="F500"><dir name="Xibpayments"><dir name="Block"><file name="Form.php" hash="af954c41969c3ab2c1a7ebd53f8b479e"/><file name="Redirect.php" hash="f2b358883720fc6a3aad4f8619e23da9"/></dir><dir name="controllers"><file name="SecureController.php" hash="f85102f655c49adc071245fd2fe094c5"/></dir><dir name="etc"><file name="config.xml" hash="995bca9160e55aae0344cd5f8e0841f5"/><file name="system.xml" hash="1593f01231ad8e55be3be450c3f19e17"/></dir><dir name="Helper"><file name="Data.php" hash="17114cbeb608042a19d66d5e86f8e93b"/></dir><dir name="Model"><dir name="Mysql4"><file name="Setup.php" hash="2dee2d37bd72702b1bd4722a826738c2"/></dir><dir name="System"><file name="Paymentoptions.php" hash="3b923e2a1c7789a4a66493bf451a7757"/><file name="Transactiontype.php" hash="e27e2f39de0640d890d4131bbe3134bc"/></dir><file name="Session.php" hash="ef398da9380a46759c5c846f64a69608"/><file name="Standard.php" hash="55b2c8a9f1f1b83c4dd00dcbcc72505f"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="xibpayments"><file name="form.phtml" hash="de55b5c36eeab7eab26f6a99a3f348c3"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="F500_Xibpayments.xml" hash="16d10a5c084887485651eeb298baaed1"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies/>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>F500_Xibpayments</name>
4
+ <version>1.0.10</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
12
  Apply for an account at info@xibpayments.com</description>
13
  <notes>Stable release for Magento 1.4</notes>
14
  <authors><author><name>Ramon de la Fuente</name><user>auto-converted</user><email>ramon@future500.nl</email></author></authors>
15
+ <date>2011-03-12</date>
16
+ <time>17:10:54</time>
17
+ <contents><target name="magelocale"><dir name="en_US"><file name="F500_Xibpayments.csv" hash="a64707577f9f55c4a9bd549f5ffdfb13"/></dir><dir name="nl_NL"><file name="F500_Xibpayments.csv" hash="f8d75d43ee93564505c63d5646bc6a25"/></dir></target><target name="magelocal"><dir name="F500"><dir name="Xibpayments"><dir name="Block"><file name="Form.php" hash="af954c41969c3ab2c1a7ebd53f8b479e"/><file name="Redirect.php" hash="f2b358883720fc6a3aad4f8619e23da9"/></dir><dir name="controllers"><file name="SecureController.php" hash="ce0528ce1b9148412c4ad13c1c0a8c68"/></dir><dir name="etc"><file name="config.xml" hash="2c0b33b14e554e8cdec15940603d8549"/><file name="system.xml" hash="1593f01231ad8e55be3be450c3f19e17"/></dir><dir name="Helper"><file name="Data.php" hash="17114cbeb608042a19d66d5e86f8e93b"/></dir><dir name="Model"><dir name="Mysql4"><file name="Setup.php" hash="2dee2d37bd72702b1bd4722a826738c2"/></dir><dir name="System"><file name="Paymentoptions.php" hash="3b923e2a1c7789a4a66493bf451a7757"/><file name="Transactiontype.php" hash="e27e2f39de0640d890d4131bbe3134bc"/></dir><file name="Session.php" hash="ef398da9380a46759c5c846f64a69608"/><file name="Standard.php" hash="3b18f7676a1069967f7b8fc587031849"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="xibpayments"><file name="form.phtml" hash="de55b5c36eeab7eab26f6a99a3f348c3"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="F500_Xibpayments.xml" hash="943d3e01a4fd1da2f4ac4b8276bc1118"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies/>
20
  </package>