Cardpay_Payeezy - Version 1.0.1

Version Notes

Initial stable release

Download this release

Release Info

Developer Brian McGowan
Extension Cardpay_Payeezy
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

app/code/community/Cardpay/Payeezy/Model/PaymentMethod.php CHANGED
@@ -89,7 +89,12 @@ class Cardpay_Payeezy_Model_PaymentMethod extends Mage_Payment_Model_Method_Cc
89
  if ($response->bank_message) {
90
  Mage::throwException('Transaction Declined: ' . $response->bank_message);
91
  } else {
92
- Mage::throwException('Transaction Error: ' . $response->Error->messages[0]->description);
 
 
 
 
 
93
  }
94
 
95
  }
@@ -159,7 +164,11 @@ class Cardpay_Payeezy_Model_PaymentMethod extends Mage_Payment_Model_Method_Cc
159
  if ($response->bank_message) {
160
  Mage::throwException('Transaction Declined: ' . $response->bank_message);
161
  } else {
162
- Mage::throwException('Transaction Error: ' . $response->Error->messages[0]->description);
 
 
 
 
163
  }
164
  }
165
  }
89
  if ($response->bank_message) {
90
  Mage::throwException('Transaction Declined: ' . $response->bank_message);
91
  } else {
92
+ if ($response->Error->messages[0]->description == 'Access denied') {
93
+ Mage::throwException('Invalid Merchant Token: Call merchant support at (866) 588-0503 to obtain a new token');
94
+ } else {
95
+ Mage::throwException('Transaction Error: ' . $response->Error->messages[0]->description);
96
+ }
97
+
98
  }
99
 
100
  }
164
  if ($response->bank_message) {
165
  Mage::throwException('Transaction Declined: ' . $response->bank_message);
166
  } else {
167
+ if ($response->Error->messages[0]->description == 'Access denied') {
168
+ Mage::throwException('Invalid Merchant Token: Call merchant support at (866) 588-0503 to obtain a new token');
169
+ } else {
170
+ Mage::throwException('Transaction Error: ' . $response->Error->messages[0]->description);
171
+ }
172
  }
173
  }
174
  }
app/code/community/Cardpay/Payeezy/etc/config.xml CHANGED
@@ -20,7 +20,7 @@
20
  <congig>
21
  <modules>
22
  <Cardpay_Payeezy>
23
- <version>1.0.0</version>
24
  </Cardpay_Payeezy>
25
  </modules>
26
  <global>
20
  <congig>
21
  <modules>
22
  <Cardpay_Payeezy>
23
+ <version>1.0.1</version>
24
  </Cardpay_Payeezy>
25
  </modules>
26
  <global>
app/code/community/Cardpay/Payeezy/etc/system.xml CHANGED
@@ -27,7 +27,7 @@
27
  <show_in_default>1</show_in_default>
28
  <show_in_website>1</show_in_website>
29
  <show_in_store>1</show_in_store>
30
- <comment><![CDATA[<a href="http://www.cardpaysolutions.com/magento" target="_blank">Click here to sign up for a Payeezy merchant account</a>]]></comment>
31
  <fields>
32
  <active translate="label">
33
  <label>Enabled</label>
@@ -58,7 +58,7 @@
58
  </test_mode>
59
  <merchant_token translate="label">
60
  <label>Merchant Token</label>
61
- <comment><![CDATA[Merchant Token provided by Payeezy after you establish your account.]]></comment>
62
  <frontend_type>text</frontend_type>
63
  <sort_order>4</sort_order>
64
  <show_in_default>1</show_in_default>
27
  <show_in_default>1</show_in_default>
28
  <show_in_website>1</show_in_website>
29
  <show_in_store>1</show_in_store>
30
+ <comment><![CDATA[<a href="http://www.cardpaysolutions.com/magento?pid=09b3d658112ec88b" target="_blank">Click here to sign up for a Payeezy merchant account</a>]]></comment>
31
  <fields>
32
  <active translate="label">
33
  <label>Enabled</label>
58
  </test_mode>
59
  <merchant_token translate="label">
60
  <label>Merchant Token</label>
61
+ <comment><![CDATA[Merchant Token provided by Payeezy after you establish your account. Contact sales at (866) 588-0503 to obtain your merchant token.]]></comment>
62
  <frontend_type>text</frontend_type>
63
  <sort_order>4</sort_order>
64
  <show_in_default>1</show_in_default>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Cardpay_Payeezy</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>The First Data Payeezy payment extension allows you to securely accept credit cards through your Magento store. In addition to processing one-time transactions, the extension also utilizes First Data TransArmor Tokenization to allow customers to securely store and manage credit card profiles for future use.</description>
11
  <notes>Initial stable release</notes>
12
  <authors><author><name>Brian McGowan</name><user>bmcgowan</user><email>bmcgowan@cardpaysolutions.com</email></author></authors>
13
- <date>2015-09-01</date>
14
- <time>22:15:14</time>
15
- <contents><target name="magecommunity"><dir name="Cardpay"><dir name="Payeezy"><dir name="Block"><file name="Creditcard.php" hash="a0d44b2d6901f147e7ba8ac1522a1f61"/><file name="Form.php" hash="35ecc9030ab25cdd83e8fb8662e1c4f1"/><file name="Info.php" hash="8c120874f2dcbea00ce1f3e11620c4e3"/></dir><dir name="Helper"><file name="Data.php" hash="b244a2c1646ae47d1ceced0473c8c144"/></dir><dir name="Model"><file name="Creditcard.php" hash="97ec6c6e017bb9895dd487aed85367a1"/><file name="PaymentMethod.php" hash="418681a6fd19eb104ebe8468622ae9d4"/><dir name="Resource"><dir name="Creditcard"><file name="Collection.php" hash="6003a43e766277d0ee7e788815473783"/></dir><file name="Creditcard.php" hash="13ed47dda59c30d23382eb4af76c2293"/></dir><dir name="Source"><file name="Cctype.php" hash="9c3e10285ec4d78d17e19e49d803518b"/><file name="PaymentAction.php" hash="1ddd3037b306f1ab9cffe8f93f0cb8e3"/></dir></dir><dir name="controllers"><file name="CreditcardController.php" hash="29b0520b713ecab57c3ad619e0ff6275"/></dir><dir name="etc"><file name="config.xml" hash="3e1c307ff93fc28a4f1b11c7e9f08404"/><file name="system.xml" hash="a8e92c962f47293363eedd03ded7083f"/></dir><dir name="sql"><dir name="payeezy_setup"><file name="install-0.1.0.php" hash="99c1f9408ce25663c185719b446b2adb"/></dir></dir></dir><file name=".DS_Store" hash="a5c46fc114cefdd5054ea2085bc3a3bd"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="payeezy"><file name="form.phtml" hash="ea092ad5359031ec57e3dfc22b007cda"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="payeezy.xml" hash="2bea5df11e86b9c8c589d1e572eea4f0"/></dir><dir name="template"><dir name="payeezy"><dir name="creditcard"><file name="delete.phtml" hash="7f52b91b36608bcaff0422490363c7fd"/><file name="edit.phtml" hash="f8135f96f390a5f41e4ca1545a710010"/><file name="index.phtml" hash="27b13b140de5e8797ee955b1aeb670d6"/></dir><file name="form.phtml" hash="ec1b6c13c4e8752cabeb0ac784886da0"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Cardpay_Payeezy.xml" hash="7805ddefa49d4a140fc03668cde2c3c2"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Cardpay_Payeezy.csv" hash="1dad15e42befedbf24800f845bebb60c"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.3.29</min><max>5.6.10</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Cardpay_Payeezy</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
10
  <description>The First Data Payeezy payment extension allows you to securely accept credit cards through your Magento store. In addition to processing one-time transactions, the extension also utilizes First Data TransArmor Tokenization to allow customers to securely store and manage credit card profiles for future use.</description>
11
  <notes>Initial stable release</notes>
12
  <authors><author><name>Brian McGowan</name><user>bmcgowan</user><email>bmcgowan@cardpaysolutions.com</email></author></authors>
13
+ <date>2015-09-02</date>
14
+ <time>22:43:26</time>
15
+ <contents><target name="magecommunity"><dir name="Cardpay"><dir name="Payeezy"><dir name="Block"><file name="Creditcard.php" hash="a0d44b2d6901f147e7ba8ac1522a1f61"/><file name="Form.php" hash="35ecc9030ab25cdd83e8fb8662e1c4f1"/><file name="Info.php" hash="8c120874f2dcbea00ce1f3e11620c4e3"/></dir><dir name="Helper"><file name="Data.php" hash="b244a2c1646ae47d1ceced0473c8c144"/></dir><dir name="Model"><file name="Creditcard.php" hash="97ec6c6e017bb9895dd487aed85367a1"/><file name="PaymentMethod.php" hash="1889e699f7817d19925da482d65dea02"/><dir name="Resource"><dir name="Creditcard"><file name="Collection.php" hash="6003a43e766277d0ee7e788815473783"/></dir><file name="Creditcard.php" hash="13ed47dda59c30d23382eb4af76c2293"/></dir><dir name="Source"><file name="Cctype.php" hash="9c3e10285ec4d78d17e19e49d803518b"/><file name="PaymentAction.php" hash="1ddd3037b306f1ab9cffe8f93f0cb8e3"/></dir></dir><dir name="controllers"><file name="CreditcardController.php" hash="29b0520b713ecab57c3ad619e0ff6275"/></dir><dir name="etc"><file name="config.xml" hash="3d0694407525c0608afdf5cf59d53045"/><file name="system.xml" hash="cda46ee2b6f67d30683cf3b1a0a1b287"/></dir><dir name="sql"><dir name="payeezy_setup"><file name="install-0.1.0.php" hash="99c1f9408ce25663c185719b446b2adb"/></dir></dir></dir><file name=".DS_Store" hash="a5c46fc114cefdd5054ea2085bc3a3bd"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="payeezy"><file name="form.phtml" hash="ea092ad5359031ec57e3dfc22b007cda"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="payeezy.xml" hash="2bea5df11e86b9c8c589d1e572eea4f0"/></dir><dir name="template"><dir name="payeezy"><dir name="creditcard"><file name="delete.phtml" hash="7f52b91b36608bcaff0422490363c7fd"/><file name="edit.phtml" hash="f8135f96f390a5f41e4ca1545a710010"/><file name="index.phtml" hash="27b13b140de5e8797ee955b1aeb670d6"/></dir><file name="form.phtml" hash="ec1b6c13c4e8752cabeb0ac784886da0"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Cardpay_Payeezy.xml" hash="7805ddefa49d4a140fc03668cde2c3c2"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Cardpay_Payeezy.csv" hash="1dad15e42befedbf24800f845bebb60c"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.3.29</min><max>5.6.10</max></php></required></dependencies>
18
  </package>