Cardpay_HighRisk - Version 1.0.5

Version Notes

Fixed case sensitivity bug.

Download this release

Release Info

Developer Brian McGowan
Extension Cardpay_HighRisk
Version 1.0.5
Comparing to
See all releases


Code changes from version 1.0.4 to 1.0.5

app/code/community/Cardpay/HighRisk/Block/Creditcard.php CHANGED
@@ -182,7 +182,7 @@ class Cardpay_HighRisk_Block_Creditcard extends Mage_Core_Block_Template
182
  public function getCcAvailableTypes()
183
  {
184
  $types = Mage::getSingleton('payment/config')->getCcTypes();
185
- if ($method = Mage::getModel('highrisk/paymentmethod')) {
186
  $availableTypes = $method->getConfigData('cctypes');
187
  if ($availableTypes) {
188
  $availableTypes = explode(',', $availableTypes);
@@ -230,7 +230,7 @@ class Cardpay_HighRisk_Block_Creditcard extends Mage_Core_Block_Template
230
  */
231
  public function hasVerification()
232
  {
233
- $method = Mage::getModel('highrisk/paymentmethod');
234
  return $method->getConfigData('useccv');
235
  }
236
  }
182
  public function getCcAvailableTypes()
183
  {
184
  $types = Mage::getSingleton('payment/config')->getCcTypes();
185
+ if ($method = Mage::getModel('highrisk/paymentMethod')) {
186
  $availableTypes = $method->getConfigData('cctypes');
187
  if ($availableTypes) {
188
  $availableTypes = explode(',', $availableTypes);
230
  */
231
  public function hasVerification()
232
  {
233
+ $method = Mage::getModel('highrisk/paymentMethod');
234
  return $method->getConfigData('useccv');
235
  }
236
  }
app/code/community/Cardpay/HighRisk/Block/Form.php CHANGED
@@ -42,7 +42,7 @@ class Cardpay_HighRisk_Block_Form extends Mage_Payment_Block_Form_Cc
42
  public function canSaveCard()
43
  {
44
  $methodRegister = Mage_Checkout_Model_Type_Onepage::METHOD_REGISTER;
45
- if (Mage::getModel('highrisk/paymentmethod')->getConfigData('use_vault')
46
  && (Mage::getSingleton('customer/session')->isLoggedIn()
47
  || Mage::getSingleton('checkout/type_onepage')->getCheckoutMethod() == $methodRegister)
48
  ) {
42
  public function canSaveCard()
43
  {
44
  $methodRegister = Mage_Checkout_Model_Type_Onepage::METHOD_REGISTER;
45
+ if (Mage::getModel('highrisk/paymentMethod')->getConfigData('use_vault')
46
  && (Mage::getSingleton('customer/session')->isLoggedIn()
47
  || Mage::getSingleton('checkout/type_onepage')->getCheckoutMethod() == $methodRegister)
48
  ) {
app/code/community/Cardpay/HighRisk/Model/Creditcard.php CHANGED
@@ -71,7 +71,7 @@ class Cardpay_HighRisk_Model_Creditcard extends Mage_Core_Model_Abstract
71
  */
72
  public function useVault()
73
  {
74
- $highrisk = Mage::getModel('highrisk/paymentmethod');
75
  return $highrisk->getConfigData('use_vault');
76
  }
77
 
@@ -82,7 +82,7 @@ class Cardpay_HighRisk_Model_Creditcard extends Mage_Core_Model_Abstract
82
  */
83
  public function getCardTypeName()
84
  {
85
- $highrisk = Mage::getModel('highrisk/paymentmethod');
86
  return Mage::helper('highrisk')->getCcTypeName($this->getCcType());
87
  }
88
 
71
  */
72
  public function useVault()
73
  {
74
+ $highrisk = Mage::getModel('highrisk/paymentMethod');
75
  return $highrisk->getConfigData('use_vault');
76
  }
77
 
82
  */
83
  public function getCardTypeName()
84
  {
85
+ $highrisk = Mage::getModel('highrisk/paymentMethod');
86
  return Mage::helper('highrisk')->getCcTypeName($this->getCcType());
87
  }
88
 
app/code/community/Cardpay/HighRisk/controllers/CreditcardController.php CHANGED
@@ -95,7 +95,7 @@ class Cardpay_HighRisk_CreditCardController extends Mage_Customer_AccountControl
95
  $card->setData('cc_last4', substr($card->getCcNumber(), -4));
96
  $card->setData('cardholder_firstname', $cardholderFirstname);
97
  $card->setData('cardholder_lastname', $cardholderLastname);
98
- $highrisk = Mage::getModel('highrisk/paymentmethod');
99
  try {
100
  $token = $highrisk->verify($card);
101
  } catch (Exception $e) {
@@ -141,7 +141,7 @@ class Cardpay_HighRisk_CreditCardController extends Mage_Customer_AccountControl
141
  $card->setData('cc_last4', substr($card->getCcNumber(), -4));
142
  $card->setData('cardholder_firstname', $cardholderFirstname);
143
  $card->setData('cardholder_lastname', $cardholderLastname);
144
- $highrisk = Mage::getModel('highrisk/paymentmethod');
145
  try {
146
  $token = $highrisk->verify($card);
147
  } catch (Exception $e) {
95
  $card->setData('cc_last4', substr($card->getCcNumber(), -4));
96
  $card->setData('cardholder_firstname', $cardholderFirstname);
97
  $card->setData('cardholder_lastname', $cardholderLastname);
98
+ $highrisk = Mage::getModel('highrisk/paymentMethod');
99
  try {
100
  $token = $highrisk->verify($card);
101
  } catch (Exception $e) {
141
  $card->setData('cc_last4', substr($card->getCcNumber(), -4));
142
  $card->setData('cardholder_firstname', $cardholderFirstname);
143
  $card->setData('cardholder_lastname', $cardholderLastname);
144
+ $highrisk = Mage::getModel('highrisk/paymentMethod');
145
  try {
146
  $token = $highrisk->verify($card);
147
  } catch (Exception $e) {
app/code/community/Cardpay/HighRisk/etc/config.xml CHANGED
@@ -20,7 +20,7 @@
20
  <congig>
21
  <modules>
22
  <Cardpay_HighRisk>
23
- <version>1.0.4</version>
24
  </Cardpay_HighRisk>
25
  </modules>
26
  <global>
20
  <congig>
21
  <modules>
22
  <Cardpay_HighRisk>
23
+ <version>1.0.5</version>
24
  </Cardpay_HighRisk>
25
  </modules>
26
  <global>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Cardpay_HighRisk</name>
4
- <version>1.0.4</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>
8
  <extends/>
9
  <summary>Cardpay Solutions payment extension for high risk merchant categories.</summary>
10
  <description>The Cardpay Solutions payment extension allows you to securely accept credit cards through your Magento store. In addition to processing one-time transactions, the extension also utilizes our PCI Compliant Customer Vault to allow customers to securely store and manage credit card profiles for future use.</description>
11
- <notes>Minor bug fixes</notes>
12
  <authors><author><name>Brian McGowan</name><user>bmcgowan</user><email>bmcgowan@cardpaysolutions.com</email></author></authors>
13
- <date>2016-11-17</date>
14
- <time>17:14:38</time>
15
- <contents><target name="magecommunity"><dir name="Cardpay"><dir name="HighRisk"><dir name="Block"><file name="Creditcard.php" hash="d87286ee278bf81a571edc6411a4a321"/><file name="Form.php" hash="089092e8d5300b7f6891ccb185fc3a8a"/><file name="Info.php" hash="c027f81c9e2b8b2611992e3c581ec29f"/></dir><dir name="Helper"><file name="Data.php" hash="502e0cecba86570654c013c5b792b501"/></dir><dir name="Model"><file name="Creditcard.php" hash="b506d622c60108abadc0957d216975ef"/><file name="Paymentmethod.php" hash="d5133d306da8d36f964767dd59683a5e"/><dir name="Resource"><dir name="Creditcard"><file name="Collection.php" hash="68172bf077bcc27b4db8564dc7c52b8a"/></dir><file name="Creditcard.php" hash="d56cb61ae5278d7175e3e8054ae10b63"/></dir><dir name="Source"><file name="Cctype.php" hash="7671061ef1acb22e1caa83c334352025"/><file name="PaymentAction.php" hash="18d2e13fd5ff87743cedf8de27e3f05a"/></dir></dir><dir name="controllers"><file name="CreditcardController.php" hash="12a3a4710502297c89f1c56b85f73334"/></dir><dir name="etc"><file name="config.xml" hash="727dd058782b48b10c725f5f66a66ac2"/><file name="system.xml" hash="4bdc2e2a7e91996cde5545a9bfc6ce66"/></dir><dir name="sql"><dir name="highrisk_setup"><file name="install-1.0.0.php" hash="6d3767d7c5f67c6859e3115109a00c76"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="highrisk"><file name="form.phtml" hash="7048cf4851cc69569eb3aca91b620ad7"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="highrisk.xml" hash="ec4a4d4adea468819869c734cb557691"/></dir><dir name="template"><dir name="highrisk"><dir name="creditcard"><file name="delete.phtml" hash="c30e86312e41272b937586a7b50d9fdb"/><file name="edit.phtml" hash="8deba8b8d7c960abe2f5fc1c20056caf"/><file name="index.phtml" hash="245bca436d6fc0789833cadaad004188"/></dir><file name="form.phtml" hash="b6af5458a74f8c28373b5b9bfd756a00"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Cardpay_HighRisk.xml" hash="f7c58cf24a240615c95b44c4abbd0cbb"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Cardpay_HighRisk.csv" hash="1dad15e42befedbf24800f845bebb60c"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.3.29</min><max>5.6.28</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Cardpay_HighRisk</name>
4
+ <version>1.0.5</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>
8
  <extends/>
9
  <summary>Cardpay Solutions payment extension for high risk merchant categories.</summary>
10
  <description>The Cardpay Solutions payment extension allows you to securely accept credit cards through your Magento store. In addition to processing one-time transactions, the extension also utilizes our PCI Compliant Customer Vault to allow customers to securely store and manage credit card profiles for future use.</description>
11
+ <notes>Fixed case sensitivity bug.</notes>
12
  <authors><author><name>Brian McGowan</name><user>bmcgowan</user><email>bmcgowan@cardpaysolutions.com</email></author></authors>
13
+ <date>2016-12-06</date>
14
+ <time>19:38:00</time>
15
+ <contents><target name="magecommunity"><dir name="Cardpay"><dir name="HighRisk"><dir name="Block"><file name="Creditcard.php" hash="3721525793925fa1c188c95773c876fe"/><file name="Form.php" hash="2a4d74448e204b1934c43851760168b6"/><file name="Info.php" hash="c027f81c9e2b8b2611992e3c581ec29f"/></dir><dir name="Helper"><file name="Data.php" hash="502e0cecba86570654c013c5b792b501"/></dir><dir name="Model"><file name="Creditcard.php" hash="c6ec4214d267e7dd6cb803c5ac84ad9f"/><file name="Paymentmethod.php" hash="d5133d306da8d36f964767dd59683a5e"/><dir name="Resource"><dir name="Creditcard"><file name="Collection.php" hash="68172bf077bcc27b4db8564dc7c52b8a"/></dir><file name="Creditcard.php" hash="d56cb61ae5278d7175e3e8054ae10b63"/></dir><dir name="Source"><file name="Cctype.php" hash="7671061ef1acb22e1caa83c334352025"/><file name="PaymentAction.php" hash="18d2e13fd5ff87743cedf8de27e3f05a"/></dir></dir><dir name="controllers"><file name="CreditcardController.php" hash="7cd99a93a9940ecf8ad6efad948bda05"/></dir><dir name="etc"><file name="config.xml" hash="0fa0cd15254349d5ab9cf83f42622eab"/><file name="system.xml" hash="4bdc2e2a7e91996cde5545a9bfc6ce66"/></dir><dir name="sql"><dir name="highrisk_setup"><file name="install-1.0.0.php" hash="6d3767d7c5f67c6859e3115109a00c76"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="highrisk"><file name="form.phtml" hash="7048cf4851cc69569eb3aca91b620ad7"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="highrisk.xml" hash="ec4a4d4adea468819869c734cb557691"/></dir><dir name="template"><dir name="highrisk"><dir name="creditcard"><file name="delete.phtml" hash="c30e86312e41272b937586a7b50d9fdb"/><file name="edit.phtml" hash="8deba8b8d7c960abe2f5fc1c20056caf"/><file name="index.phtml" hash="245bca436d6fc0789833cadaad004188"/></dir><file name="form.phtml" hash="b6af5458a74f8c28373b5b9bfd756a00"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Cardpay_HighRisk.xml" hash="f7c58cf24a240615c95b44c4abbd0cbb"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Cardpay_HighRisk.csv" hash="1dad15e42befedbf24800f845bebb60c"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.3.29</min><max>5.6.28</max></php></required></dependencies>
18
  </package>