Fontis_Westpac - Version 2.1.3

Version Notes

Currently only implements PayWay API and QuickGateway API. PayWay Net is planned for a future version.

Requires the following directories to be set up:
var/certs/
var/log/

The log directory must be writable by the web server. The certs directory must contain the certificate provided by PayWay.

Download this release

Release Info

Developer Magento Core Team
Extension Fontis_Westpac
Version 2.1.3
Comparing to
See all releases


Code changes from version 2.1.0 to 2.1.3

app/code/community/Fontis/Westpac/Model/PayWay/Api.php CHANGED
@@ -119,7 +119,13 @@ class Fontis_Westpac_Model_PayWay_Api extends Mage_Payment_Model_Method_Cc
119
else
120
{
121
Mage::log($result);
122
- Mage::throwException("Error " . $result["response.responseCode"] . ": " . $result["response.Text"]);
123
}
124
}
125
}
@@ -212,7 +218,13 @@ class Fontis_Westpac_Model_PayWay_Api extends Mage_Payment_Model_Method_Cc
212
}
213
else
214
{
215
- Mage::throwException("Error " . $result["response.responseCode"] . ": " . $result["response.text"]);
216
}
217
}
218
}
119
else
120
{
121
Mage::log($result);
122
+ if(isset($result["response.responseCode"]) && isset($result["response.text"])) {
123
+ Mage::throwException("Error " . $result["response.responseCode"] . ": " . $result["response.text"]);
124
+ } elseif(isset($result["response.text"])) {
125
+ Mage::throwException("Error: " . $result["response.text"]);
126
+ } else {
127
+ Mage::throwException("There has been an error processing your payment. Please try later or contact us for help.");
128
+ }
129
}
130
}
131
}
218
}
219
else
220
{
221
+ if(isset($result["response.responseCode"]) && isset($result["response.text"])) {
222
+ Mage::throwException("Error " . $result["response.responseCode"] . ": " . $result["response.text"]);
223
+ } elseif(isset($result["response.text"])) {
224
+ Mage::throwException("Error: " . $result["response.text"]);
225
+ } else {
226
+ Mage::throwException("There has been an error processing your payment. Please try later or contact us for help.");
227
+ }
228
}
229
}
230
}
app/code/community/Fontis/Westpac/Model/PayWay/Api/Qvalent_PayWayAPI.php CHANGED
@@ -77,8 +77,7 @@ class Qvalent_PayWayAPI
77
}
78
if ( !array_key_exists( 'url', $props ) )
79
{
80
- //$props[ 'url' ] = "https://ccapi.client.qvalent.com/payway/ccapi";
81
- $props[ 'url' ] = "https://ccapi.client.qvalent.com/post/CreditCardAPIReceiver";
82
}
83
if ( !array_key_exists( 'certificateFile', $props ) )
84
{
@@ -304,7 +303,7 @@ class Qvalent_PayWayAPI
304
if ( $errorNumber != 0 )
305
{
306
$responseText = $this->_getResponseString( "2", "QI", "Transaction " .
307
- "Incomplete - contact Westpac to confirm reconciliation" );
308
$this->_log( "<Response> " .$orderNumber . " ERROR during processing: " .
309
$this->_getMessageForLogging( $responseText ) .
310
"\r\n Error Number: " . $errorNumber . ", Description: '" .
@@ -465,4 +464,4 @@ class Qvalent_PayWayAPI
465
}
466
467
}
468
- ?>
77
}
78
if ( !array_key_exists( 'url', $props ) )
79
{
80
+ $props[ 'url' ] = "https://ccapi.client.qvalent.com/payway/ccapi";
81
}
82
if ( !array_key_exists( 'certificateFile', $props ) )
83
{
303
if ( $errorNumber != 0 )
304
{
305
$responseText = $this->_getResponseString( "2", "QI", "Transaction " .
306
+ "Incomplete - contact your acquiring bank to confirm reconciliation" );
307
$this->_log( "<Response> " .$orderNumber . " ERROR during processing: " .
308
$this->_getMessageForLogging( $responseText ) .
309
"\r\n Error Number: " . $errorNumber . ", Description: '" .
464
}
465
466
}
467
+ ?>
app/code/community/Fontis/Westpac/etc/config.xml CHANGED
@@ -23,7 +23,7 @@
23
<config>
24
<modules>
25
<Fontis_Westpac>
26
- <version>2.1.0</version>
27
<depends>
28
<Mage_Payment />
29
</depends>
23
<config>
24
<modules>
25
<Fontis_Westpac>
26
+ <version>2.1.3</version>
27
<depends>
28
<Mage_Payment />
29
</depends>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
<?xml version="1.0"?>
2
<package>
3
<name>Fontis_Westpac</name>
4
- <version>2.1.0</version>
5
<stability>stable</stability>
6
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
7
<channel>community</channel>
@@ -16,9 +16,9 @@ var/log/
16
17
The log directory must be writable by the web server. The certs directory must contain the certificate provided by PayWay.</notes>
18
<authors><author><name>Chris Norton</name><user>auto-converted</user><email>chris.norton@fontis.com.au</email></author></authors>
19
- <date>2009-08-25</date>
20
- <time>01:40:28</time>
21
- <contents><target name="magecommunity"><dir name="Fontis"><dir name="Westpac"><dir name="etc"><file name="config.xml" hash="636ba28970293f8d7f2d891b2b2b53f8"/><file name="system.xml" hash="78f859ee1d467937e6d4b03dc7597075"/></dir><dir name="Helper"><file name="Data.php" hash="8dc61726cd9b7556b2e5590d4db7ed10"/></dir><dir name="Model"><dir name="Mysql4"><file name="Setup.php" hash="ef391f933078a9b4c016a9e9a4862f32"/></dir><dir name="PayWay"><dir name="Api"><file name="cacerts.crt" hash="084d5808b4c71f0e5e40d6400202b8ae"/><file name="Qvalent_PayWayAPI.php" hash="260fbc3f9d960a8ebd60b93b369270da"/><file name="Request.php" hash="da7cb2d76b1099e2768564d1d46f6e26"/><file name="Result.php" hash="9636911e7a924a66e8d4205e1f41408d"/></dir><dir name="Config"><file name="PaymentAction.php" hash="abacaf0602e66600ca383d971a5d3dbb"/></dir><file name="Api.php" hash="f49be479ab84a9c2ee63f9adeef1a5b1"/><file name="Net.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><dir name="QuickGateway"><dir name="Api"><file name="cacerts.crt" hash="084d5808b4c71f0e5e40d6400202b8ae"/><file name="Qvalent_CardsAPI.php" hash="d583670162f5bcc8b778e1dfc1388fd4"/><file name="Request.php" hash="6b37496c1bf9ac2733e7a974d9425e86"/><file name="Result.php" hash="08623aa104d6d6e605d48ffc10037341"/></dir><dir name="Config"><file name="PaymentAction.php" hash="cac6850ee0ff58ba4cbd84a512d2c933"/></dir><file name="Api.php" hash="f68954aa5d0aea31256fc9eafc741c2c"/></dir></dir><dir name="sql"><dir name="westpac_setup"><file name="mysql4-upgrade-2.0.0-2.1.0.php" hash="0dabd43c7ae482ff56556cb9d4902b97"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Fontis_Westpac.xml" hash="2a6fb36c3d3e00e05200f051ae9256e4"/></dir></target></contents>
22
<compatible/>
23
<dependencies/>
24
</package>
1
<?xml version="1.0"?>
2
<package>
3
<name>Fontis_Westpac</name>
4
+ <version>2.1.3</version>
5
<stability>stable</stability>
6
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
7
<channel>community</channel>
16
17
The log directory must be writable by the web server. The certs directory must contain the certificate provided by PayWay.</notes>
18
<authors><author><name>Chris Norton</name><user>auto-converted</user><email>chris.norton@fontis.com.au</email></author></authors>
19
+ <date>2010-04-07</date>
20
+ <time>05:23:27</time>
21
+ <contents><target name="magecommunity"><dir name="Fontis"><dir name="Westpac"><dir name="etc"><file name="config.xml" hash="443970d1677d90bc1442d3878afcaee5"/><file name="system.xml" hash="78f859ee1d467937e6d4b03dc7597075"/></dir><dir name="Helper"><file name="Data.php" hash="8dc61726cd9b7556b2e5590d4db7ed10"/></dir><dir name="Model"><dir name="Mysql4"><file name="Setup.php" hash="ef391f933078a9b4c016a9e9a4862f32"/></dir><dir name="PayWay"><dir name="Api"><file name="cacerts.crt" hash="084d5808b4c71f0e5e40d6400202b8ae"/><file name="Qvalent_PayWayAPI.php" hash="9711846364a2a7204059c18a40b7f841"/><file name="Request.php" hash="da7cb2d76b1099e2768564d1d46f6e26"/><file name="Result.php" hash="9636911e7a924a66e8d4205e1f41408d"/></dir><dir name="Config"><file name="PaymentAction.php" hash="abacaf0602e66600ca383d971a5d3dbb"/></dir><file name="Api.php" hash="7d780fb4af2c05cb12c8a4a14dc001ac"/><file name="Net.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><dir name="QuickGateway"><dir name="Api"><file name="cacerts.crt" hash="084d5808b4c71f0e5e40d6400202b8ae"/><file name="Qvalent_CardsAPI.php" hash="d583670162f5bcc8b778e1dfc1388fd4"/><file name="Request.php" hash="6b37496c1bf9ac2733e7a974d9425e86"/><file name="Result.php" hash="08623aa104d6d6e605d48ffc10037341"/></dir><dir name="Config"><file name="PaymentAction.php" hash="cac6850ee0ff58ba4cbd84a512d2c933"/></dir><file name="Api.php" hash="f68954aa5d0aea31256fc9eafc741c2c"/></dir></dir><dir name="sql"><dir name="westpac_setup"><file name="mysql4-upgrade-2.0.0-2.1.0.php" hash="0dabd43c7ae482ff56556cb9d4902b97"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Fontis_Westpac.xml" hash="2a6fb36c3d3e00e05200f051ae9256e4"/></dir></target></contents>
22
<compatible/>
23
<dependencies/>
24
</package>