Fontis_Westpac - Version 2.1.5

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 Fontis
Extension Fontis_Westpac
Version 2.1.5
Comparing to
See all releases


Code changes from version 2.1.3 to 2.1.5

app/code/community/Fontis/Westpac/Model/Mysql4/Setup.php CHANGED
@@ -1,4 +1,23 @@
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  class Fontis_Westpac_Model_Mysql4_Setup extends Mage_Sales_Model_Mysql4_Setup
4
  {
1
  <?php
2
+ /**
3
+ * Fontis Westpac PayWay Extension
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so they can send you a copy immediately.
14
+ *
15
+ * @category Fontis
16
+ * @package Fontis_Westpac
17
+ * @author Chris Norton
18
+ * @copyright Copyright (c) 2008 Fontis Pty. Ltd. (http://www.fontis.com.au)
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
 
22
  class Fontis_Westpac_Model_Mysql4_Setup extends Mage_Sales_Model_Mysql4_Setup
23
  {
app/code/community/Fontis/Westpac/Model/PayWay/Api/Qvalent_PayWayAPI.php CHANGED
@@ -13,8 +13,8 @@
13
  # where (x, y, z) are numbers in [0-9]
14
  function check_version($currentversion, $requiredversion)
15
  {
16
- list($majorC, $minorC, $editC) = split('[/.-]', $currentversion);
17
- list($majorR, $minorR, $editR) = split('[/.-]', $requiredversion);
18
 
19
  if ($majorC > $majorR) return true;
20
  if ($majorC < $majorR) return false;
@@ -200,13 +200,13 @@ class Qvalent_PayWayAPI
200
  function parseResponseParameters( $parametersString )
201
  {
202
  // Split the message at the field breaks
203
- $parameterArray = split( "&", $parametersString );
204
  $props = array();
205
 
206
  // Loop through each parameter provided
207
  foreach ( $parameterArray as $parameter )
208
  {
209
- list( $paramName, $paramValue ) = split( "=", $parameter );
210
  $props[ urldecode( $paramName ) ] = urldecode( $paramValue );
211
  }
212
  return $props;
13
  # where (x, y, z) are numbers in [0-9]
14
  function check_version($currentversion, $requiredversion)
15
  {
16
+ list($majorC, $minorC, $editC) = preg_split('/[\/.-]/', $currentversion);
17
+ list($majorR, $minorR, $editR) = preg_split('/[\/.-]/', $requiredversion);
18
 
19
  if ($majorC > $majorR) return true;
20
  if ($majorC < $majorR) return false;
200
  function parseResponseParameters( $parametersString )
201
  {
202
  // Split the message at the field breaks
203
+ $parameterArray = explode( "&", $parametersString );
204
  $props = array();
205
 
206
  // Loop through each parameter provided
207
  foreach ( $parameterArray as $parameter )
208
  {
209
+ list( $paramName, $paramValue ) = explode( "=", $parameter );
210
  $props[ urldecode( $paramName ) ] = urldecode( $paramValue );
211
  }
212
  return $props;
app/code/community/Fontis/Westpac/Model/PayWay/Api/Request.php CHANGED
@@ -40,5 +40,3 @@ class Fontis_Westpac_Model_PayWay_Api_Request extends Varien_Object
40
  throw new Varien_Exception("Invalid method ".get_class($this)."::".$method."(".print_r($args,1).")");
41
  }
42
  }
43
-
44
- ?>
40
  throw new Varien_Exception("Invalid method ".get_class($this)."::".$method."(".print_r($args,1).")");
41
  }
42
  }
 
 
app/code/community/Fontis/Westpac/Model/PayWay/Api/Result.php CHANGED
@@ -22,5 +22,3 @@ class Fontis_Westpac_Model_PayWay_Api_Result extends Varien_Object
22
  {
23
 
24
  }
25
-
26
- ?>
22
  {
23
 
24
  }
 
 
app/code/community/Fontis/Westpac/Model/PayWay/Api/cacerts.crt CHANGED
@@ -4130,6 +4130,98 @@ Certificate Ingredients:
4130
  81:64:e1:fe:c5:45:ba:ad:6b:b9:0a:7a:4e:4f:4b:84:ee:4b:
4131
  f1:7d:dd:11
4132
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4133
  Verisign Class 4 Public Primary Certification Authority - G2
4134
  ============================================================
4135
  MD5 Fingerprint: 26:6D:2C:19:98:B6:70:68:38:50:54:19:EC:90:34:60
@@ -4432,54 +4524,71 @@ Certificate Ingredients:
4432
  78:e4:f0:d7:55:79:15:f9:a8:ef:ae:27:df:b1:04:c4:8b:cb:
4433
  f5:05:88:1a:54:ed:0e:d9:1a:c7
4434
 
4435
- eQvalent Old Root CA
4436
  ====================
4437
- MD5 Fingerprint=A5:F4:21:3B:67:59:0D:52:DE:E7:30:1F:1A:52:F5:33
4438
  PEM Data:
4439
  -----BEGIN CERTIFICATE-----
4440
- MIICGDCCAcKgAwIBAgIQLGsGAwEAMIcR1c2xDM5gMzANBgkqhkiG9w0BAQQFADBu
4441
  MQswCQYDVQQGEwJBVTEMMAoGA1UECBMDTlNXMQ8wDQYDVQQHEwZTeWRuZXkxGDAW
4442
  BgNVBAoTD1FWYWxlbnQgUHR5IEx0ZDETMBEGA1UECxMKT3BlcmF0aW9uczERMA8G
4443
- A1UEAxMIZVF2YWxlbnQwHhcNMDExMDMxMDM0NTI5WhcNMDYxMDMxMDM0NTI5WjBu
4444
  MQswCQYDVQQGEwJBVTEMMAoGA1UECBMDTlNXMQ8wDQYDVQQHEwZTeWRuZXkxGDAW
4445
  BgNVBAoTD1FWYWxlbnQgUHR5IEx0ZDETMBEGA1UECxMKT3BlcmF0aW9uczERMA8G
4446
- A1UEAxMIZVF2YWxlbnQwXDANBgkqhkiG9w0BAQEFAANLADBIAkEAuJnWVWcyflj7
4447
- klh6r4GbR6bQCPe4jBzE1LjzZNCQy9CayxPyKR3u5/5L4NZETcD/S+WlrBavgQUs
4448
- cTWaY9dfsQIDAQABozwwOjALBgNVHQ8EBAMCAcQwDAYDVR0TBAUwAwEB/zAdBgNV
4449
- HQ4EFgQUkn0Q5PgZKZ9mH+DAJb+j5we33VcwDQYJKoZIhvcNAQEEBQADQQBKu4ly
4450
- YZNV2y01ZI9WfDL5mUfVvpHlOwPJBCkIg5v0IH2sWi+Fppq2d6D4l1sU+AIBiSgU
4451
- XSHI/vW4/fc+GLuw
 
 
 
 
 
 
 
 
 
4452
  -----END CERTIFICATE-----
4453
- Certificate Ingredients:
4454
  Data:
4455
  Version: 3 (0x2)
4456
  Serial Number:
4457
- 2c:6b:06:03:01:00:30:87:11:d5:cd:b1:0c:ce:60:33
4458
  Signature Algorithm: md5WithRSAEncryption
4459
  Issuer: C=AU, ST=NSW, L=Sydney, O=QValent Pty Ltd, OU=Operations, CN=eQvalent
4460
  Validity
4461
- Not Before: Oct 31 03:45:29 2001 GMT
4462
- Not After : Oct 31 03:45:29 2006 GMT
4463
  Subject: C=AU, ST=NSW, L=Sydney, O=QValent Pty Ltd, OU=Operations, CN=eQvalent
4464
  Subject Public Key Info:
4465
  Public Key Algorithm: rsaEncryption
4466
- RSA Public Key: (512 bit)
4467
- Modulus (512 bit):
4468
- 00:b8:99:d6:55:67:32:7e:58:fb:92:58:7a:af:81:
4469
- 9b:47:a6:d0:08:f7:b8:8c:1c:c4:d4:b8:f3:64:d0:
4470
- 90:cb:d0:9a:cb:13:f2:29:1d:ee:e7:fe:4b:e0:d6:
4471
- 44:4d:c0:ff:4b:e5:a5:ac:16:af:81:05:2c:71:35:
4472
- 9a:63:d7:5f:b1
 
 
 
 
4473
  Exponent: 65537 (0x10001)
4474
  X509v3 extensions:
4475
- X509v3 Key Usage:
4476
  Digital Signature, Non Repudiation, Certificate Sign
4477
- X509v3 Basic Constraints:
4478
  CA:TRUE
4479
- X509v3 Subject Key Identifier:
4480
- 92:7D:10:E4:F8:19:29:9F:66:1F:E0:C0:25:BF:A3:E7:07:B7:DD:57
4481
  Signature Algorithm: md5WithRSAEncryption
4482
- 4a:bb:89:72:61:93:55:db:2d:35:64:8f:56:7c:32:f9:99:47:
4483
- d5:be:91:e5:3b:03:c9:04:29:08:83:9b:f4:20:7d:ac:5a:2f:
4484
- 85:a6:9a:b6:77:a0:f8:97:5b:14:f8:02:01:89:28:14:5d:21:
4485
- c8:fe:f5:b8:fd:f7:3e:18:bb:b0
 
 
 
 
4130
  81:64:e1:fe:c5:45:ba:ad:6b:b9:0a:7a:4e:4f:4b:84:ee:4b:
4131
  f1:7d:dd:11
4132
 
4133
+ Verisign Class 3 Public Primary Certification Authority - G5
4134
+ ============================================================
4135
+ MD5 Fingerprint=CB:17:E4:31:67:3E:E2:09:FE:45:57:93:F3:0A:FA:1C
4136
+ PEM Data:
4137
+ -----BEGIN CERTIFICATE-----
4138
+ MIIE0zCCA7ugAwIBAgIQGNrRniZ96LtKIVjNzGs7SjANBgkqhkiG9w0BAQUFADCB
4139
+ yjELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQL
4140
+ ExZWZXJpU2lnbiBUcnVzdCBOZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNiBWZXJp
4141
+ U2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemVkIHVzZSBvbmx5MUUwQwYDVQQDEzxW
4142
+ ZXJpU2lnbiBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0
4143
+ aG9yaXR5IC0gRzUwHhcNMDYxMTA4MDAwMDAwWhcNMzYwNzE2MjM1OTU5WjCByjEL
4144
+ MAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZW
4145
+ ZXJpU2lnbiBUcnVzdCBOZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNiBWZXJpU2ln
4146
+ biw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agsCqiUXObXbf+eEZSqVir2G3l6BFoMtEMze/aiCKm0oHw0LxOXnGiYZ
4162
+ 4fQRbxC1lfznQgUy286dUV4otp6F01vvpX1FQHKOtw5rDgb7MzVIcbidJ4vEZV8N
4163
+ hnacRHr2lVz2XTIIM6RUthg/aFzyQkqFOFSDX9HoLPKsEdao7WNq
4164
+ -----END CERTIFICATE-----
4165
+ Certificate:
4166
+ Data:
4167
+ Version: 3 (0x2)
4168
+ Serial Number:
4169
+ 18:da:d1:9e:26:7d:e8:bb:4a:21:58:cd:cc:6b:3b:4a
4170
+ Signature Algorithm: sha1WithRSAEncryption
4171
+ Issuer: C=US, O=VeriSign, Inc., OU=VeriSign Trust Network, OU=(c) 2006 VeriSign, Inc. - For authorized use only, CN=VeriSign Class 3 Public Primary Certification Authority - G5
4172
+ Validity
4173
+ Not Before: Nov 8 00:00:00 2006 GMT
4174
+ Not After : Jul 16 23:59:59 2036 GMT
4175
+ Subject: C=US, O=VeriSign, Inc., OU=VeriSign Trust Network, OU=(c) 2006 VeriSign, Inc. - For authorized use only, CN=VeriSign Class 3 Public Primary Certification Authority - G5
4176
+ Subject Public Key Info:
4177
+ Public Key Algorithm: rsaEncryption
4178
+ RSA Public Key: (2048 bit)
4179
+ Modulus (2048 bit):
4180
+ 00:af:24:08:08:29:7a:35:9e:60:0c:aa:e7:4b:3b:
4181
+ 4e:dc:7c:bc:3c:45:1c:bb:2b:e0:fe:29:02:f9:57:
4182
+ 08:a3:64:85:15:27:f5:f1:ad:c8:31:89:5d:22:e8:
4183
+ 2a:aa:a6:42:b3:8f:f8:b9:55:b7:b1:b7:4b:b3:fe:
4184
+ 8f:7e:07:57:ec:ef:43:db:66:62:15:61:cf:60:0d:
4185
+ a4:d8:de:f8:e0:c3:62:08:3d:54:13:eb:49:ca:59:
4186
+ 54:85:26:e5:2b:8f:1b:9f:eb:f5:a1:91:c2:33:49:
4187
+ d8:43:63:6a:52:4b:d2:8f:e8:70:51:4d:d1:89:69:
4188
+ 7b:c7:70:f6:b3:dc:12:74:db:7b:5d:4b:56:d3:96:
4189
+ bf:15:77:a1:b0:f4:a2:25:f2:af:1c:92:67:18:e5:
4190
+ f4:06:04:ef:90:b9:e4:00:e4:dd:3a:b5:19:ff:02:
4191
+ ba:f4:3c:ee:e0:8b:eb:37:8b:ec:f4:d7:ac:f2:f6:
4192
+ f0:3d:af:dd:75:91:33:19:1d:1c:40:cb:74:24:19:
4193
+ 21:93:d9:14:fe:ac:2a:52:c7:8f:d5:04:49:e4:8d:
4194
+ 63:47:88:3c:69:83:cb:fe:47:bd:2b:7e:4f:c5:95:
4195
+ ae:0e:9d:d4:d1:43:c0:67:73:e3:14:08:7e:e5:3f:
4196
+ 9f:73:b8:33:0a:cf:5d:3f:34:87:96:8a:ee:53:e8:
4197
+ 25:15
4198
+ Exponent: 65537 (0x10001)
4199
+ X509v3 extensions:
4200
+ X509v3 Basic Constraints: critical
4201
+ CA:TRUE
4202
+ X509v3 Key Usage: critical
4203
+ Certificate Sign, CRL Sign
4204
+ 1.3.6.1.5.5.7.1.12:
4205
+ 0_.].[0Y0W0U..image/gif0!0.0...+..............k...j.H.,{..0%.#http://logo.verisign.com/vslogo.gif
4206
+ X509v3 Subject Key Identifier:
4207
+ 7F:D3:65:A7:C2:DD:EC:BB:F0:30:09:F3:43:39:FA:02:AF:33:31:33
4208
+ Signature Algorithm: sha1WithRSAEncryption
4209
+ 93:24:4a:30:5f:62:cf:d8:1a:98:2f:3d:ea:dc:99:2d:bd:77:
4210
+ f6:a5:79:22:38:ec:c4:a7:a0:78:12:ad:62:0e:45:70:64:c5:
4211
+ e7:97:66:2d:98:09:7e:5f:af:d6:cc:28:65:f2:01:aa:08:1a:
4212
+ 47:de:f9:f9:7c:92:5a:08:69:20:0d:d9:3e:6d:6e:3c:0d:6e:
4213
+ d8:e6:06:91:40:18:b9:f8:c1:ed:df:db:41:aa:e0:96:20:c9:
4214
+ cd:64:15:38:81:c9:94:ee:a2:84:29:0b:13:6f:8e:db:0c:dd:
4215
+ 25:02:db:a4:8b:19:44:d2:41:7a:05:69:4a:58:4f:60:ca:7e:
4216
+ 82:6a:0b:02:aa:25:17:39:b5:db:7f:e7:84:65:2a:95:8a:bd:
4217
+ 86:de:5e:81:16:83:2d:10:cc:de:fd:a8:82:2a:6d:28:1f:0d:
4218
+ 0b:c4:e5:e7:1a:26:19:e1:f4:11:6f:10:b5:95:fc:e7:42:05:
4219
+ 32:db:ce:9d:51:5e:28:b6:9e:85:d3:5b:ef:a5:7d:45:40:72:
4220
+ 8e:b7:0e:6b:0e:06:fb:33:35:48:71:b8:9d:27:8b:c4:65:5f:
4221
+ 0d:86:76:9c:44:7a:f6:95:5c:f6:5d:32:08:33:a4:54:b6:18:
4222
+ 3f:68:5c:f2:42:4a:85:38:54:83:5f:d1:e8:2c:f2:ac:11:d6:
4223
+ a8:ed:63:6a
4224
+
4225
  Verisign Class 4 Public Primary Certification Authority - G2
4226
  ============================================================
4227
  MD5 Fingerprint: 26:6D:2C:19:98:B6:70:68:38:50:54:19:EC:90:34:60
4524
  78:e4:f0:d7:55:79:15:f9:a8:ef:ae:27:df:b1:04:c4:8b:cb:
4525
  f5:05:88:1a:54:ed:0e:d9:1a:c7
4526
 
4527
+ eQvalent New Root CA
4528
  ====================
4529
+ MD5 Fingerprint=31:D7:E9:03:DF:79:DF:84:57:F1:52:D3:AA:0F:01:89
4530
  PEM Data:
4531
  -----BEGIN CERTIFICATE-----
4532
+ MIID3zCCA0igAwIBAgIQFauR5xiQkY9GBDHVPV6ypjANBgkqhkiG9w0BAQQFADBu
4533
  MQswCQYDVQQGEwJBVTEMMAoGA1UECBMDTlNXMQ8wDQYDVQQHEwZTeWRuZXkxGDAW
4534
  BgNVBAoTD1FWYWxlbnQgUHR5IEx0ZDETMBEGA1UECxMKT3BlcmF0aW9uczERMA8G
4535
+ A1UEAxMIZVF2YWxlbnQwHhcNMDgwMTA5MDQyNjUwWhcNMTYwODEzMTAyODI1WjBu
4536
  MQswCQYDVQQGEwJB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K8L/UpnQAoi4C/1S7HKwu6qgh28J00oWWHw2NQov
4552
+ b6UJ+aa+TelxH0r5uvDa/2eECAPVEZpq2TxV8srn7F/nhXo=
4553
  -----END CERTIFICATE-----
4554
+ Certificate:
4555
  Data:
4556
  Version: 3 (0x2)
4557
  Serial Number:
4558
+ 15:ab:91:e7:18:90:91:8f:46:04:31:d5:3d:5e:b2:a6
4559
  Signature Algorithm: md5WithRSAEncryption
4560
  Issuer: C=AU, ST=NSW, L=Sydney, O=QValent Pty Ltd, OU=Operations, CN=eQvalent
4561
  Validity
4562
+ Not Before: Jan 9 04:26:50 2008 GMT
4563
+ Not After : Aug 13 10:28:25 2016 GMT
4564
  Subject: C=AU, ST=NSW, L=Sydney, O=QValent Pty Ltd, OU=Operations, CN=eQvalent
4565
  Subject Public Key Info:
4566
  Public Key Algorithm: rsaEncryption
4567
+ RSA Public Key: (1024 bit)
4568
+ Modulus (1024 bit):
4569
+ 00:99:a9:f9:7c:64:d4:d5:64:b6:c4:5e:d7:05:3d:
4570
+ 63:fe:f0:b5:9f:71:2f:e2:df:24:3b:3f:35:23:01:
4571
+ 3c:62:28:1c:9e:25:fc:fc:10:56:cc:7b:cd:f1:23:
4572
+ e5:5c:e0:6d:f3:df:1c:fe:78:82:7a:f2:96:c2:1a:
4573
+ 0c:16:4a:1b:39:8b:31:43:cb:b1:97:e2:75:a7:65:
4574
+ d9:c6:d0:e7:83:2a:5c:5d:75:eb:0d:f6:aa:c3:d7:
4575
+ 86:9a:0c:b5:3d:47:ca:60:44:02:3d:0b:2c:80:e8:
4576
+ 36:1c:91:08:d6:44:27:01:8a:cd:e9:c6:95:1e:77:
4577
+ 40:f6:a8:c3:72:0b:47:2e:93
4578
  Exponent: 65537 (0x10001)
4579
  X509v3 extensions:
4580
+ X509v3 Key Usage:
4581
  Digital Signature, Non Repudiation, Certificate Sign
4582
+ X509v3 Basic Constraints: critical
4583
  CA:TRUE
4584
+ X509v3 Subject Key Identifier:
4585
+ 7A:0C:F8:C6:4C:6E:05:6F:10:3F:46:74:BC:7D:52:2B:05:96:E0:26
4586
  Signature Algorithm: md5WithRSAEncryption
4587
+ 98:59:da:4f:37:f7:4d:83:8c:ac:f3:1e:67:45:fc:ce:e0:94:
4588
+ 4f:ff:78:66:f6:8c:57:f4:72:a8:ee:da:64:19:cd:3f:40:17:
4589
+ 77:d1:76:97:9d:0b:3e:b3:d9:70:07:9a:20:b8:f1:43:96:4c:
4590
+ 9e:14:2c:72:2f:b5:56:c3:c0:2b:c2:ff:52:99:d0:02:88:b8:
4591
+ 0b:fd:52:ec:72:b0:bb:aa:a0:87:6f:09:d3:4a:16:58:7c:36:
4592
+ 35:0a:2f:6f:a5:09:f9:a6:be:4d:e9:71:1f:4a:f9:ba:f0:da:
4593
+ ff:67:84:08:03:d5:11:9a:6a:d9:3c:55:f2:ca:e7:ec:5f:e7:
4594
+ 85:7a
app/code/community/Fontis/Westpac/Model/PayWay/Config/PaymentAction.php CHANGED
@@ -35,5 +35,3 @@ class Fontis_Westpac_Model_PayWay_Config_PaymentAction
35
  );
36
  }
37
  }
38
-
39
- ?>
35
  );
36
  }
37
  }
 
 
app/code/community/Fontis/Westpac/Model/PayWay/Net.php DELETED
File without changes
app/code/community/Fontis/Westpac/Model/QuickGateway/Api/Request.php CHANGED
@@ -42,5 +42,3 @@ class Fontis_Westpac_Model_QuickGateway_Api_Request extends Varien_Object
42
  throw new Varien_Exception("Invalid method ".get_class($this)."::".$method."(".print_r($args,1).")");
43
  }
44
  }
45
-
46
- ?>
42
  throw new Varien_Exception("Invalid method ".get_class($this)."::".$method."(".print_r($args,1).")");
43
  }
44
  }
 
 
app/code/community/Fontis/Westpac/Model/QuickGateway/Api/Result.php CHANGED
@@ -25,5 +25,3 @@ class Fontis_Westpac_Model_QuickGateway_Api_Result extends Varien_Object
25
  {
26
 
27
  }
28
-
29
- ?>
25
  {
26
 
27
  }
 
 
app/code/community/Fontis/Westpac/Model/QuickGateway/Config/PaymentAction.php CHANGED
@@ -37,5 +37,3 @@ class Fontis_Westpac_Model_QuickGateway_Config_PaymentAction
37
  );
38
  }
39
  }
40
-
41
- ?>
37
  );
38
  }
39
  }
 
 
app/code/community/Fontis/Westpac/etc/config.xml CHANGED
@@ -23,7 +23,7 @@
23
  <config>
24
  <modules>
25
  <Fontis_Westpac>
26
- <version>2.1.3</version>
27
  <depends>
28
  <Mage_Payment />
29
  </depends>
23
  <config>
24
  <modules>
25
  <Fontis_Westpac>
26
+ <version>2.1.4</version>
27
  <depends>
28
  <Mage_Payment />
29
  </depends>
app/code/community/Fontis/Westpac/etc/system.xml CHANGED
@@ -107,6 +107,15 @@
107
  <show_in_website>1</show_in_website>
108
  <show_in_store>0</show_in_store>
109
  </certificate>
 
 
 
 
 
 
 
 
 
110
  <payment_action translate="label">
111
  <label>Action</label>
112
  <frontend_type>select</frontend_type>
@@ -236,6 +245,16 @@
236
  <show_in_website>1</show_in_website>
237
  <show_in_store>0</show_in_store>
238
  </payment_action>
 
 
 
 
 
 
 
 
 
 
239
  <debug translate="label">
240
  <label>Debug</label>
241
  <frontend_type>select</frontend_type>
107
  <show_in_website>1</show_in_website>
108
  <show_in_store>0</show_in_store>
109
  </certificate>
110
+ <cctypes translate="label">
111
+ <label>Credit Card Types</label>
112
+ <frontend_type>multiselect</frontend_type>
113
+ <source_model>adminhtml/system_config_source_payment_cctype</source_model>
114
+ <sort_order>24</sort_order>
115
+ <show_in_default>1</show_in_default>
116
+ <show_in_website>1</show_in_website>
117
+ <show_in_store>0</show_in_store>
118
+ </cctypes>
119
  <payment_action translate="label">
120
  <label>Action</label>
121
  <frontend_type>select</frontend_type>
245
  <show_in_website>1</show_in_website>
246
  <show_in_store>0</show_in_store>
247
  </payment_action>
248
+ <cctypes translate="label">
249
+ <label>Credit Card Types</label>
250
+ <frontend_type>multiselect</frontend_type>
251
+ <source_model>adminhtml/system_config_source_payment_cctype</source_model>
252
+ <sort_order>31</sort_order>
253
+ <show_in_default>1</show_in_default>
254
+ <show_in_website>1</show_in_website>
255
+ <show_in_store>0</show_in_store>
256
+ <can_be_empty>1</can_be_empty>
257
+ </cctypes>
258
  <debug translate="label">
259
  <label>Debug</label>
260
  <frontend_type>select</frontend_type>
app/code/community/Fontis/Westpac/sql/westpac_setup/mysql4-upgrade-2.0.0-2.1.0.php CHANGED
@@ -1,11 +1,30 @@
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
- $installer = $this;
4
-
5
  $installer->startSetup();
6
 
7
- $installer->run("
8
- -- DROP TABLE IF EXISTS `westpac_quickgateway`;
9
  CREATE TABLE `westpac_quickgateway` (
10
  `id` INT( 11 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
11
  `order_id` INT( 11 ) UNSIGNED NOT NULL ,
@@ -24,7 +43,7 @@ CREATE TABLE `westpac_quickgateway` (
24
  `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ,
25
  INDEX ( `order_id` ),
26
  INDEX ( `orderNumber` )
27
- ) ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci
28
- ");
29
-
30
  $installer->endSetup();
1
  <?php
2
+ /**
3
+ * Fontis Westpac PayWay Extension
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so they can send you a copy immediately.
14
+ *
15
+ * @category Fontis
16
+ * @package Fontis_Westpac
17
+ * @author Chris Norton
18
+ * @copyright Copyright (c) 2008 Fontis Pty. Ltd. (http://www.fontis.com.au)
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+
22
+ $installer = $this;
23
 
 
 
24
  $installer->startSetup();
25
 
26
+ $installer->run("
27
+ -- DROP TABLE IF EXISTS `westpac_quickgateway`;
28
  CREATE TABLE `westpac_quickgateway` (
29
  `id` INT( 11 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
30
  `order_id` INT( 11 ) UNSIGNED NOT NULL ,
43
  `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ,
44
  INDEX ( `order_id` ),
45
  INDEX ( `orderNumber` )
46
+ ) ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci
47
+ ");
48
+
49
  $installer->endSetup();
package.xml CHANGED
@@ -1,24 +1,24 @@
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>
8
  <extends/>
9
- <summary>Connects to Westpac's PayWay and QuickGateway payment gateway.</summary>
10
- <description>Connects to Westpac's PayWay and QuickGateway payment gateway.</description>
11
- <notes>Currently only implements PayWay API and QuickGateway API. PayWay Net is planned for a future version.
12
-
13
- Requires the following directories to be set up:
14
- var/certs/
15
- 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>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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Fontis_Westpac</name>
4
+ <version>2.1.5</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>
8
  <extends/>
9
+ <summary>Connects to Westpac's PayWay and QuickGateway payment gateways.</summary>
10
+ <description>Connects to Westpac's PayWay and QuickGateway payment gateways.</description>
11
+ <notes>Currently only implements PayWay API and QuickGateway API. PayWay Net is planned for a future version.&#xD;
12
+ &#xD;
13
+ Requires the following directories to be set up:&#xD;
14
+ var/certs/&#xD;
15
+ var/log/&#xD;
16
+ &#xD;
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>Fontis</name><user>fontis</user><email>magento@fontis.com.au</email></author></authors>
19
+ <date>2012-11-04</date>
20
+ <time>23:05:20</time>
21
+ <contents><target name="mageetc"><dir name="modules"><file name="Fontis_Westpac.xml" hash="2a6fb36c3d3e00e05200f051ae9256e4"/></dir></target><target name="magecommunity"><dir name="Fontis"><dir name="Westpac"><dir name="Helper"><file name="Data.php" hash="8dc61726cd9b7556b2e5590d4db7ed10"/></dir><dir name="Model"><dir name="Mysql4"><file name="Setup.php" hash="367b72cf3e299fb53f7cd1f25ebc67a5"/></dir><dir name="PayWay"><dir name="Api"><file name="Qvalent_PayWayAPI.php" hash="670798eb3844fd8fcb768031948eef5e"/><file name="Request.php" hash="bc9e4b149be9c93fe55527003d2a2c3c"/><file name="Result.php" hash="93b3f65ed72c3e407a442fa3f2ab7a14"/><file name="cacerts.crt" hash="b705a52debb463dab123a8dfdba39ebc"/></dir><file name="Api.php" hash="7d780fb4af2c05cb12c8a4a14dc001ac"/><dir name="Config"><file name="PaymentAction.php" hash="839d8be64973c22f29846b59db25d051"/></dir></dir><dir name="QuickGateway"><dir name="Api"><file name="Qvalent_CardsAPI.php" hash="d583670162f5bcc8b778e1dfc1388fd4"/><file name="Request.php" hash="c0c21f9e980d5e352ecfa6122f6497b9"/><file name="Result.php" hash="0c2e059e4c3a9cf462e90267b440768a"/><file name="cacerts.crt" hash="084d5808b4c71f0e5e40d6400202b8ae"/></dir><file name="Api.php" hash="f68954aa5d0aea31256fc9eafc741c2c"/><dir name="Config"><file name="PaymentAction.php" hash="92890d0e05a432d44ad1790c8185aeb1"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="b00ddc21aa85b69925dfb9fa8992fbff"/><file name="system.xml" hash="ddab2f826d7411d40549bc1c41c566f5"/></dir><dir name="sql"><dir name="westpac_setup"><file name="mysql4-upgrade-2.0.0-2.1.0.php" hash="2510e7a180e4949146fc21830da70c4a"/></dir></dir></dir></dir></target></contents>
22
  <compatible/>
23
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
24
  </package>