<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -48,7 +48,7 @@ module ActiveMerchant #:nodoc:
 
           # the money amount we received in X.2 decimal.
           def gross
-            params['amount']
+            sprintf(&quot;%.2f&quot;, params['amount'].to_f)
           end
 
           # Was this a test transaction?</diff>
      <filename>lib/active_merchant/billing/integrations/nochex/notification.rb</filename>
    </modified>
    <modified>
      <diff>@@ -46,6 +46,6 @@ class NochexNotificationTest &lt; Test::Unit::TestCase
 
   private
   def http_raw_data
-    &quot;transaction_date=27/09/2006 22:30:53&amp;transaction_id=91191&amp;order_id=11&amp;from_email=test2@nochex.com&amp;to_email=test1@nochex.com&amp;amount=31.66&amp;security_key=L254524366479818252491366&amp;status=test&amp;custom=&quot;
+    &quot;transaction_date=27/09/2006 22:30:53&amp;transaction_id=91191&amp;order_id=11&amp;from_email=test2@nochex.com&amp;to_email=test1@nochex.com&amp;amount=31.6600&amp;security_key=L254524366479818252491366&amp;status=test&amp;custom=&quot;
   end  
 end</diff>
      <filename>test/unit/integrations/notifications/nochex_notification_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>28131468772cd39f0ad3bcfa91da95992b9860bc</id>
    </parent>
  </parents>
  <author>
    <name>Dennis Theisen</name>
    <email>dennis@jadedpixel.com</email>
  </author>
  <url>http://github.com/Shopify/active_merchant/commit/8ae881ddf41a42f472b6a9a75c8e3ea89d78075e</url>
  <id>8ae881ddf41a42f472b6a9a75c8e3ea89d78075e</id>
  <committed-date>2009-06-18T14:55:05-07:00</committed-date>
  <authored-date>2009-06-18T14:49:20-07:00</authored-date>
  <message>FIX: Nochex gateway notification returned amount * 100, which led to crazy amounts like: 986800.00</message>
  <tree>a43743bfe40fcc8028f224e193b4d057031bbde1</tree>
  <committer>
    <name>Cody Fauser</name>
    <email>codyfauser@gmail.com</email>
  </committer>
</commit>
