Payfirma_Onsite_Payment_Gateway - Version 2.0.0

Version Notes

Onsite Payment module. Install through Magento connect upload or via Magento connect extension key

Download this release

Release Info

Developer Collins Harper
Extension Payfirma_Onsite_Payment_Gateway
Version 2.0.0
Comparing to
See all releases


Code changes from version 1.0.0 to 2.0.0

app/code/community/Collinsharper/Payfirma/Block/Form.php CHANGED
File without changes
app/code/community/Collinsharper/Payfirma/Helper/Data.php CHANGED
File without changes
app/code/community/Collinsharper/Payfirma/Model/Api.php CHANGED
@@ -21,7 +21,8 @@ class Collinsharper_Payfirma_Model_Api extends Varien_Object
21
  'card_number' => $cardNumber,
22
  'card_expiry_month' => $expiryMonth,
23
  'card_expiry_year' => $expiryYear,
24
- 'do_not_store' => 'true'
 
25
  );
26
 
27
  if ($cvv !== null) {
@@ -53,7 +54,8 @@ class Collinsharper_Payfirma_Model_Api extends Varien_Object
53
  'card_number' => $cardNumber,
54
  'card_expiry_month' => $expiryMonth,
55
  'card_expiry_year' => $expiryYear,
56
- 'do_not_store' => 'true'
 
57
  );
58
 
59
  if ($cvv !== null) {
@@ -84,7 +86,8 @@ class Collinsharper_Payfirma_Model_Api extends Varien_Object
84
  $payload = array(
85
  'merchant_id' => $this->getMerchantId(),
86
  'key' => $this->getApiKey(),
87
- 'amount' => $amount
 
88
  );
89
 
90
  if ($this->getIsTestMode()) {
@@ -102,7 +105,8 @@ class Collinsharper_Payfirma_Model_Api extends Varien_Object
102
  $payload = array(
103
  'merchant_id' => $this->getMerchantId(),
104
  'key' => $this->getApiKey(),
105
- 'amount' => $amount
 
106
  );
107
 
108
  if ($this->getIsTestMode()) {
21
  'card_number' => $cardNumber,
22
  'card_expiry_month' => $expiryMonth,
23
  'card_expiry_year' => $expiryYear,
24
+ 'do_not_store' => 'true',
25
+ 'send_receipt' => 'false'
26
  );
27
 
28
  if ($cvv !== null) {
54
  'card_number' => $cardNumber,
55
  'card_expiry_month' => $expiryMonth,
56
  'card_expiry_year' => $expiryYear,
57
+ 'do_not_store' => 'true',
58
+ 'send_receipt' => 'false'
59
  );
60
 
61
  if ($cvv !== null) {
86
  $payload = array(
87
  'merchant_id' => $this->getMerchantId(),
88
  'key' => $this->getApiKey(),
89
+ 'amount' => $amount,
90
+ 'send_receipt' => 'false'
91
  );
92
 
93
  if ($this->getIsTestMode()) {
105
  $payload = array(
106
  'merchant_id' => $this->getMerchantId(),
107
  'key' => $this->getApiKey(),
108
+ 'amount' => $amount,
109
+ 'send_receipt' => 'false'
110
  );
111
 
112
  if ($this->getIsTestMode()) {
app/code/community/Collinsharper/Payfirma/Model/Payment.php CHANGED
@@ -172,10 +172,10 @@ class Collinsharper_Payfirma_Model_Payment extends Mage_Payment_Model_Method_Cc
172
 
173
  protected function _formatMoney($amount, $currencyCode)
174
  {
175
- return Mage::getModel('directory/currency')->load($currencyCode)
176
- ->format($amount, array('display' => Zend_Currency::NO_SYMBOL), false);
177
  }
178
 
 
179
  /**
180
  * @return Collinsharper_Payfirma_Model_Api
181
  */
172
 
173
  protected function _formatMoney($amount, $currencyCode)
174
  {
175
+ return number_format($amount, 2, '.', '');
 
176
  }
177
 
178
+
179
  /**
180
  * @return Collinsharper_Payfirma_Model_Api
181
  */
app/code/community/Collinsharper/Payfirma/Model/System/Config/Source/Cctype.php CHANGED
File without changes
app/code/community/Collinsharper/Payfirma/Model/System/Config/Source/Currency.php CHANGED
File without changes
app/code/community/Collinsharper/Payfirma/Model/System/Config/Source/PaymentAction.php CHANGED
File without changes
app/code/community/Collinsharper/Payfirma/etc/config.xml CHANGED
File without changes
app/code/community/Collinsharper/Payfirma/etc/system.xml CHANGED
File without changes
app/design/frontend/base/default/template/chpayfirma/logo.phtml CHANGED
File without changes
app/etc/modules/Collinsharper_Payfirma.xml CHANGED
File without changes
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Payfirma_Onsite_Payment_Gateway</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/MIT">MIT License</license>
7
  <channel>community</channel>
@@ -10,7 +10,7 @@
10
  <description>Provides Credit Card processing through the Payfirma Online payment Gateway. Supports USD and CAD currency values.</description>
11
  <notes>Onsite Payment module. Install through Magento connect upload or via Magento connect extension key</notes>
12
  <authors><author><name>Collins Harper</name><user>collinsharper</user><email>customersupport@collinsharper.com</email></author></authors>
13
- <date>2014-05-06</date>
14
  <time>19:38:23</time>
15
  <contents><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="chpayfirma"><file name="logo.phtml" hash="0e5c3c7456fe455b50460d1efedcafbf"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><file name="chpayfirma_logo.png" hash="b74c31d5a57f98cfd543a5157f642ee2"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Collinsharper_Payfirma.xml" hash="f4fb6aecefa1e44f07d9a7819a82d812"/></dir></target><target name="magecommunity"><dir name="Collinsharper"><dir name="Payfirma"><dir name="Model"><file name="Api.php" hash="4402ecb961abe52566694bbbb44cc9b4"/><file name="Payment.php" hash="47628531ca537587c092ada45f8f80a5"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Currency.php" hash="a3b9ba19b2e5057371b1605885ea37db"/><file name="Cctype.php" hash="5cde7377b5ce6b6a2c24016a4a5733b1"/><file name="PaymentAction.php" hash="bfc103d1cb1378ea28000c4a05b1caf7"/></dir></dir></dir></dir><dir name="Block"><file name="Form.php" hash="860de41331ec7d20b1dc2f7c04820207"/></dir><dir name="etc"><file name="config.xml" hash="7a124c36ffde4a36d8ad21874fdeaf61"/><file name="system.xml" hash="d3935d6c4f699b960120a2f287e1e78e"/></dir><dir name="Helper"><file name="Data.php" hash="e8bd323ba8be1240c6300121874508a6"/></dir></dir></dir></target></contents>
16
  <compatible/>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Payfirma_Onsite_Payment_Gateway</name>
4
+ <version>2.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/MIT">MIT License</license>
7
  <channel>community</channel>
10
  <description>Provides Credit Card processing through the Payfirma Online payment Gateway. Supports USD and CAD currency values.</description>
11
  <notes>Onsite Payment module. Install through Magento connect upload or via Magento connect extension key</notes>
12
  <authors><author><name>Collins Harper</name><user>collinsharper</user><email>customersupport@collinsharper.com</email></author></authors>
13
+ <date>2014-10-27</date>
14
  <time>19:38:23</time>
15
  <contents><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="chpayfirma"><file name="logo.phtml" hash="0e5c3c7456fe455b50460d1efedcafbf"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><file name="chpayfirma_logo.png" hash="b74c31d5a57f98cfd543a5157f642ee2"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Collinsharper_Payfirma.xml" hash="f4fb6aecefa1e44f07d9a7819a82d812"/></dir></target><target name="magecommunity"><dir name="Collinsharper"><dir name="Payfirma"><dir name="Model"><file name="Api.php" hash="4402ecb961abe52566694bbbb44cc9b4"/><file name="Payment.php" hash="47628531ca537587c092ada45f8f80a5"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Currency.php" hash="a3b9ba19b2e5057371b1605885ea37db"/><file name="Cctype.php" hash="5cde7377b5ce6b6a2c24016a4a5733b1"/><file name="PaymentAction.php" hash="bfc103d1cb1378ea28000c4a05b1caf7"/></dir></dir></dir></dir><dir name="Block"><file name="Form.php" hash="860de41331ec7d20b1dc2f7c04820207"/></dir><dir name="etc"><file name="config.xml" hash="7a124c36ffde4a36d8ad21874fdeaf61"/><file name="system.xml" hash="d3935d6c4f699b960120a2f287e1e78e"/></dir><dir name="Helper"><file name="Data.php" hash="e8bd323ba8be1240c6300121874508a6"/></dir></dir></dir></target></contents>
16
  <compatible/>
skin/frontend/base/default/images/chpayfirma_logo.png CHANGED
File without changes