<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -20,6 +20,10 @@ module ActiveMerchant #:nodoc:
         @options = options
         super
       end
+      
+      def test?
+        @options[:login] == &quot;TEST0&quot;
+      end
 
       def authorize(money, creditcard, options = {})
         post = PostData.new
@@ -104,7 +108,7 @@ module ActiveMerchant #:nodoc:
       def commit(action, money, parameters)
         parameters[:acctid] = @options[:login].to_s
         parameters[:subid]  = @options[:sub_id].to_s unless @options[:sub_id].blank?
-        parameters[:amount] = &quot;%.2f&quot; % (money / 100.0)
+        parameters[:amount] = amount(money)
 
         case action
         when :sale
@@ -117,7 +121,10 @@ module ActiveMerchant #:nodoc:
         end
 
         response = parse(ssl_post(URL, parameters.to_post_data) || &quot;&quot;)
-        Response.new(successful?(response), message_from(response), {}, :authorization =&gt; response[&quot;refcode&quot;])
+        Response.new(successful?(response), message_from(response), response,
+          :test =&gt; test?,
+          :authorization =&gt; response[&quot;refcode&quot;]
+        )
       end
 
       def successful?(response)</diff>
      <filename>lib/active_merchant/billing/gateways/sallie_mae.rb</filename>
    </modified>
    <modified>
      <diff>@@ -29,6 +29,15 @@ class SallieMaeTest &lt; Test::Unit::TestCase
     assert response = @gateway.purchase(@amount, @credit_card, @options)
     assert_failure response
   end
+  
+  def test_non_test_account
+    assert !@gateway.test?
+  end
+  
+  def test_test_account
+    gateway = SallieMaeGateway.new(:login =&gt; &quot;TEST0&quot;)
+    assert !@gateway.test?
+  end
 
   private
   </diff>
      <filename>test/unit/gateways/sallie_mae_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e1397e6ee55497bc47d91b56493e3afa117a7b13</id>
    </parent>
  </parents>
  <author>
    <name>Cody Fauser</name>
    <email>codyfauser@gmail.com</email>
  </author>
  <url>http://github.com/Shopify/active_merchant/commit/f096f09d14a27520ceb6720db8ab5a8599601cc7</url>
  <id>f096f09d14a27520ceb6720db8ab5a8599601cc7</id>
  <committed-date>2009-10-02T12:40:44-07:00</committed-date>
  <authored-date>2009-10-02T12:40:44-07:00</authored-date>
  <message>add check for test account and pass response params to Response</message>
  <tree>faa0b4d0e6ce358b461b847240d10c0e6f057bad</tree>
  <committer>
    <name>Cody Fauser</name>
    <email>codyfauser@gmail.com</email>
  </committer>
</commit>
