SecurePay_DirectOne - Version 1.0.1

Version Notes

Module has been tested and updated for 1.4.0.0rc, and should work correctly.

Please report any issues on the module forum, or contact SecurePay support directly.

Download this release

Release Info

Developer Magento Core Team
Extension SecurePay_DirectOne
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

app/code/local/SecurePay/Directone/Model/Directone.php CHANGED
@@ -27,9 +27,11 @@ class SecurePay_Directone_Model_Directone extends Mage_Payment_Model_Method_Abst
27
  const REQUEST_AMOUNT_EDITABLE = 'N';
28
  const RETURN_TEXT_DEFAULT = 'Click here to complete the order';
29
 
30
- protected $_code = 'directone';
31
  protected $_formBlockType = 'SecurePay_Directone_block_form';
32
  protected $_allowCurrencyCode = array('AUD');
 
 
33
 
34
  /**
35
  * Assign data to info model instance
@@ -55,9 +57,9 @@ class SecurePay_Directone_Model_Directone extends Mage_Payment_Model_Method_Abst
55
 
56
  public function getUrl()
57
  {
58
- $test = ($this->getConfigData('test')==0?false:true);
59
 
60
- $url = 'https://vault.safepay.com.au/cgi-bin/'.($test?'test':'make').'_payment.pl';
61
 
62
  return $url;
63
  }
@@ -137,7 +139,7 @@ class SecurePay_Directone_Model_Directone extends Mage_Payment_Model_Method_Abst
137
 
138
  if($simple)
139
  {
140
- $fields['Invoice '.$this->getCheckout()->getLastRealOrderId()] = '1,'.($cost + $shipping);
141
  }
142
  else
143
  {
27
  const REQUEST_AMOUNT_EDITABLE = 'N';
28
  const RETURN_TEXT_DEFAULT = 'Click here to complete the order';
29
 
30
+ protected $_code = 'directone';
31
  protected $_formBlockType = 'SecurePay_Directone_block_form';
32
  protected $_allowCurrencyCode = array('AUD');
33
+ protected $_canUseInternal = false;
34
+ protected $_canUseForMultishipping = false;
35
 
36
  /**
37
  * Assign data to info model instance
57
 
58
  public function getUrl()
59
  {
60
+ $test = ($this->getConfigData('test') == 0 ? false : true);
61
 
62
+ $url = 'https://vault.safepay.com.au/cgi-bin/' . ($test ? 'test' : 'make') . '_payment.pl';
63
 
64
  return $url;
65
  }
139
 
140
  if($simple)
141
  {
142
+ $fields['Invoice '.$this->getCheckout()->getLastRealOrderId()] = '1,' . ($cost + $shipping);
143
  }
144
  else
145
  {
app/code/local/SecurePay/Directone/etc/config.xml CHANGED
@@ -22,7 +22,7 @@
22
  <config>
23
  <modules>
24
  <SecurePay_Directone>
25
- <version>1.0</version>
26
  <depends>
27
  <Mage_Payment />
28
  </depends>
22
  <config>
23
  <modules>
24
  <SecurePay_Directone>
25
+ <version>1.0.1</version>
26
  <depends>
27
  <Mage_Payment />
28
  </depends>
app/code/local/SecurePay/Directone/etc/system.xml CHANGED
@@ -24,7 +24,7 @@
24
  <payment translate="label" module="payment">
25
  <groups>
26
  <directone translate="label">
27
- <label>SecurePay Hosted Page (AU) / DirectOne</label>
28
  <frontend_type>text</frontend_type>
29
  <sort_order>1</sort_order>
30
  <show_in_default>1</show_in_default>
24
  <payment translate="label" module="payment">
25
  <groups>
26
  <directone translate="label">
27
+ <label>DirectOne</label>
28
  <frontend_type>text</frontend_type>
29
  <sort_order>1</sort_order>
30
  <show_in_default>1</show_in_default>
package.xml CHANGED
@@ -1,20 +1,22 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>SecurePay_DirectOne</name>
4
- <version>1.0.0</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>
8
  <extends/>
9
- <summary>DirectOne module for Magento</summary>
10
  <description>Provides support for credit-card payments through the DirectOne hosted payment service.
11
 
12
- All card details are collected on the DirectOne server, minimising your security requirements.</description>
13
- <notes>Initial release</notes>
14
- <authors><author><name>Andrew Dubbeld</name><user>auto-converted</user><email>support@securepay.com.au</email></author></authors>
15
- <date>2009-12-23</date>
16
- <time>04:21:16</time>
17
- <contents><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="directone"><file name="form.phtml" hash="a2e2fe6f33095392c4c6a48e1449d04c"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="SecurePay_Directone.xml" hash="58bdc2900b324d9df7da478d2faf3dbb"/></dir></target><target name="magelocal"><dir name="SecurePay"><dir name="Directone"><dir name="Block"><file name="Form.php" hash="9822da8ca2dce1a2afcadae432be04c8"/><file name="Redirect.php" hash="9ae2a452f79bd7303f8004892598927b"/></dir><dir name="controllers"><file name="DirectoneController.php" hash="fa035fad9b4527e6f7b57dd39e6ef056"/></dir><dir name="etc"><file name="config.xml" hash="ba250a625c0e707a86fea4ba04faeb94"/><file name="system.xml" hash="cd7dbcee0f87ed76ee76b1670c7261fc"/></dir><dir name="Helper"><file name="Data.php" hash="c382cb57818a80808d42b3e61bfe1c33"/></dir><dir name="Model"><dir name="Directone"><file name="Request.php" hash="9de15a5a5862402fb3e1c522f5d8c1bc"/><file name="Result.php" hash="51001ff42edf9cc0acec1b765e829f1a"/><file name="Session.php" hash="3686130c5ac1cf390058b00adc55cf0d"/></dir><file name="Directone.php" hash="cae028836cd7a2600adf8ac75dd3f52f"/></dir></dir></dir></target></contents>
 
 
18
  <compatible/>
19
  <dependencies/>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>SecurePay_DirectOne</name>
4
+ <version>1.0.1</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>
8
  <extends/>
9
+ <summary>Provides hosted credit-card payments through the DirectOne gateway.</summary>
10
  <description>Provides support for credit-card payments through the DirectOne hosted payment service.
11
 
12
+ All card details are collected on the DirectOne server, minimizing your security requirements.</description>
13
+ <notes>Module has been tested and updated for 1.4.0.0rc, and should work correctly.
14
+
15
+ Please report any issues on the module forum, or contact SecurePay support directly.</notes>
16
+ <authors><author><name>Andrew Dubbeld</name><user>auto-converted</user><email>andrewd@securepay.com.au</email></author></authors>
17
+ <date>2010-01-27</date>
18
+ <time>22:56:48</time>
19
+ <contents><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="directone"><file name="form.phtml" hash="a2e2fe6f33095392c4c6a48e1449d04c"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="SecurePay_Directone.xml" hash="58bdc2900b324d9df7da478d2faf3dbb"/></dir></target><target name="magelocal"><dir name="SecurePay"><dir name="Directone"><dir name="Block"><file name="Form.php" hash="9822da8ca2dce1a2afcadae432be04c8"/><file name="Redirect.php" hash="9ae2a452f79bd7303f8004892598927b"/></dir><dir name="controllers"><file name="DirectoneController.php" hash="fa035fad9b4527e6f7b57dd39e6ef056"/></dir><dir name="etc"><file name="config.xml" hash="f748f51809f13ae2d02d559a40b9cb72"/><file name="system.xml" hash="a5fca83459edc52148ab79e4256fc8ee"/></dir><dir name="Helper"><file name="Data.php" hash="c382cb57818a80808d42b3e61bfe1c33"/></dir><dir name="Model"><dir name="Directone"><file name="Request.php" hash="9de15a5a5862402fb3e1c522f5d8c1bc"/><file name="Result.php" hash="51001ff42edf9cc0acec1b765e829f1a"/><file name="Session.php" hash="3686130c5ac1cf390058b00adc55cf0d"/></dir><file name="Directone.php" hash="10d8ac83d49d2c08c0601a66785926bb"/></dir></dir></dir></target></contents>
20
  <compatible/>
21
  <dependencies/>
22
  </package>