<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>opensoul.org - Paypal IPN in Rails with Active Merchant Comments</title>
  <id>tag:opensoul.org,2008:/2006/9/16/paypal-ipn-in-rails-with-active-merchant/comments</id>
  <generator uri="http://mephistoblog.com" version="0.7.3">Mephisto Noh-Varr</generator>
  <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant/comments.xml" rel="self" type="application/atom+xml"/>
  <link href="/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
  <updated>2008-08-05T22:03:19Z</updated>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Spencer Alexander</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:7056</id>
    <published>2008-08-05T22:03:19Z</published>
    <updated>2008-08-05T22:03:19Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Spencer Alexander</title>
<content type="html">&lt;p&gt;Question regarding security: On the notify action, where we format the &lt;span class=&quot;caps&quot;&gt;POST&lt;/span&gt; we get from paypal using Paypal::Notification.new(request.raw_post), do we need to worry at all about security and the validity of the &lt;span class=&quot;caps&quot;&gt;POST&lt;/span&gt;? In otherwords, does Paypal::Notification automatically communicate with Paypal one final time to ensure that the &lt;span class=&quot;caps&quot;&gt;POST&lt;/span&gt; is legit?&lt;/p&gt;


	&lt;p&gt;Thanks again for the great tutorial!&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Spencer Alexander</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:7054</id>
    <published>2008-08-05T19:28:46Z</published>
    <updated>2008-08-05T19:28:46Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Spencer Alexander</title>
<content type="html">&lt;p&gt;Great article! I&#8217;ve had a tough time getting everything set up with paypal and active merchant (not much documentation), and it&#8217;s great to come across well written tutorials like this.&lt;/p&gt;


	&lt;p&gt;Keep up the good work!&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brian</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:6630</id>
    <published>2008-06-27T04:53:44Z</published>
    <updated>2008-06-27T04:53:44Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Brian</title>
<content type="html">&lt;p&gt;This looks great&#8230;last thing I&#8217;m wondering is how to process anything other than a successful order.  Such as a subscription cancellation, etc.  Are these in the notify.status variable?&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Ramon Tayag</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:6307</id>
    <published>2008-05-30T10:56:07Z</published>
    <updated>2008-05-30T10:56:07Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Ramon Tayag</title>
<content type="html">&lt;p&gt;This definitely clears things up further!  Thank you.  However, how is payment.rb supposed to be?&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Noah</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:5960</id>
    <published>2008-05-03T21:31:48Z</published>
    <updated>2008-05-03T21:31:48Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Noah</title>
<content type="html">Just a thought, but when PayPal has to convert currencies, they send back the status as pending, which causes the &#8220;If notify.complete?&#8221; to return false, so you may want to change it to something like this to perform different actions on different statuses.
&lt;pre&gt;
if notify.acknowledge
      begin
        case notify.status
        when &quot;Completed&quot; 
          @order.paypal_status = notify.status
          @order.transaction_id = notify.transaction_id
        when &quot;Pending&quot; 
          @order.paypal_status = &quot;Pending because: #{params[:pending_reason]}&quot; 
          @order.transaction_id = notify.transaction_id
        else
          @order.paypal_status = notify.status
          logger.error(&quot;Failed to verify Paypal's notification, please investigate&quot;)
        end
      ensure
        @order.save
      end
    end
&lt;/pre&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Roger Pack</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:5458</id>
    <published>2008-03-14T06:31:23Z</published>
    <updated>2008-03-14T06:31:23Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Roger Pack</title>
<content type="html">&lt;p&gt;gem install money, maybe?&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Joel</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:5283</id>
    <published>2008-02-14T18:53:42Z</published>
    <updated>2008-02-14T18:53:42Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Joel</title>
<content type="html">&lt;p&gt;Hi, this is cool, but I get:&lt;/p&gt;


	&lt;p&gt;NameError (undefined local variable or method `‘money’&#8217; for main:Object):
    /app/controllers/payments_controller.rb:2&lt;/p&gt;


	&lt;p&gt;I have installed the money gem, do I need to do a require &#8216;money&#8217; in the environment.rb file? I tried that and I get:&lt;/p&gt;


	&lt;p&gt;/Library/Ruby/Gems/1.8/gems/money-1.7.1/lib/support/cattr_accessor.rb:7:in `cattr_reader&#8217;: undefined method `id2name&#8217; for {:instance_writer=&amp;gt;false}:Hash (NoMethodError)
    from /Library/Ruby/Gems/1.8/gems/money-1.7.1/lib/support/cattr_accessor.rb:5:in `each&#8217;
    from /Library/Ruby/Gems/1.8/gems/money-1.7.1/lib/support/cattr_accessor.rb:5:in `cattr_reader&#8217;
    from /Library/Ruby/Gems/1.8/gems/money-1.7.1/lib/support/cattr_accessor.rb:54:in `cattr_accessor&#8217;
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/base.rb:268&lt;/p&gt;


	&lt;p&gt;at server startup, any ideas?&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Vishwa</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:4433</id>
    <published>2007-12-08T16:04:13Z</published>
    <updated>2007-12-08T16:04:13Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Vishwa</title>
<content type="html">&lt;p&gt;Phil,
If you are still hitting this issue 
{NameError (uninitialized constant AccountController::Paypal):
Where is this PayPal class? It doesn’t seem to be in active merchant.}&lt;/p&gt;


	&lt;p&gt;you might want to try
ActiveMerchant::Billing::Integrations::Paypal.&lt;/p&gt;


	&lt;p&gt;Additionally ensure that you have done a require &#8216;active_merchant&#8217; in your environment.rb&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Matthias</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:4038</id>
    <published>2007-10-25T15:14:07Z</published>
    <updated>2007-10-25T15:14:07Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Matthias</title>
<content type="html">&lt;p&gt;thanks brandon&lt;/p&gt;


	&lt;p&gt;that&#8217;s the part who content the price&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;def populate_order 
  for cart_item in @cart.cart_items 
    order_item = OrderItem.new( 
      :book_id =&amp;gt; cart_item.book_id, 
      :price =&amp;gt; cart_item.price - current_user.offre, 
      :amount =&amp;gt; cart_item.amount,
  :form_choice =&amp;gt; cart_item.form_choice,
  :time_choice =&amp;gt; cart_item.time_choice,
  :expire_at =&amp;gt; cart_item.expire_at    
    ) 
    @order.order_items &amp;lt;&amp;lt; order_item 
  end 
end&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;I don&#8217;t really understand your solution&#8230;&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:4025</id>
    <published>2007-10-23T21:07:52Z</published>
    <updated>2007-10-23T21:07:52Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Brandon</title>
<content type="html">&lt;p&gt;Matthias,&lt;/p&gt;


	&lt;p&gt;The amount field is expecting a Money object, and if it doesn&#8217;t get one, it converts the integer, treating it as cents.&lt;/p&gt;


	&lt;p&gt;So you&#8217;ll want to pass in the number as cents.  If the amount is being stored in a model, you might want to check out &lt;a href=&quot;http://opensoul.org/2006/11/13/acts_as_money&quot;&gt;acts_as_money&lt;/a&gt;&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Matthias</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:4022</id>
    <published>2007-10-23T09:35:04Z</published>
    <updated>2007-10-23T09:35:04Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Matthias</title>
<content type="html">&lt;p&gt;Hi, i have just a little problem. When i process order and i look for the result in my paypal account i find my order, but the big problem is my total is divised by 100. Result i process an order with a total : 60 and the result in my paypal account is 0,60&lt;/p&gt;


	&lt;p&gt;Does someone can help me ??&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Jordan Brough</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:3939</id>
    <published>2007-10-11T05:10:27Z</published>
    <updated>2007-10-11T05:10:27Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Jordan Brough</title>
<content type="html">&lt;p&gt;Thanks for the post, just what I was looking for.  Would be nice if PayPal was just set up so easy that we didn&#8217;t need a tool like ActiveMerchant though&#8230;&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Phil</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:3833</id>
    <published>2007-09-29T12:15:26Z</published>
    <updated>2007-09-29T12:15:26Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Phil</title>
<content type="html">&lt;p&gt;Looks good, but, why do I get this on the notify:&lt;/p&gt;


	&lt;p&gt;NameError (uninitialized constant AccountController::Paypal):&lt;/p&gt;


	&lt;p&gt;Where is this PayPal class? It doesn&#8217;t seem to be in active merchant.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Dinesh</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:3643</id>
    <published>2007-09-08T22:02:44Z</published>
    <updated>2007-09-08T22:02:44Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Dinesh</title>
<content type="html">&lt;p&gt;Very helpful Brandon, I could able to set up my test paypal account in less than 15 min. Thanks a lot.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:3603</id>
    <published>2007-09-05T13:14:01Z</published>
    <updated>2007-09-05T13:14:01Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Brandon</title>
<content type="html">&lt;p&gt;Mike: Thanks, I&#8217;ve updated the url in the post.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Mike</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:3595</id>
    <published>2007-09-04T18:00:02Z</published>
    <updated>2007-09-04T18:00:02Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Mike</title>
<content type="html">&lt;p&gt;Thanks very much for such a helpful Active Merchant example.&lt;/p&gt;


	&lt;p&gt;The command you have listed for installing the AM plugin gives an access denied error, which I believe is because the repository has been moved. The new repository is at:
 http://activemerchant.googlecode.com/svn/trunk/active_merchant&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:3354</id>
    <published>2007-08-10T02:00:09Z</published>
    <updated>2007-08-10T02:00:09Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Brandon</title>
<content type="html">&lt;p&gt;Observer,&lt;/p&gt;


	&lt;p&gt;The problem is that due to the way Paypal&#8217;s website payments work, the user needs to post all that data to paypal.  So no matter how you try to obfuscate it, you&#8217;re still dependent on the client to post all the details.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Observer</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:3351</id>
    <published>2007-08-09T22:24:14Z</published>
    <updated>2007-08-09T22:24:14Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Observer</title>
<content type="html">&lt;p&gt;This is a great example.  Thanks for the informative blog post.  I&#8217;m wondering if maybe you might want to hide a lot of the details in the view in a controller, as in, just post the enrollment and user id and populate and redirect the form.  You can certainly encrypt a button through PayPal, but this might give you another way to hide details that someone can&#8217;t try and use to create a fake form post with an alteration.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Justin</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:3253</id>
    <published>2007-07-17T18:49:42Z</published>
    <updated>2007-07-17T18:49:42Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Justin</title>
<content type="html">&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;IPN&lt;/span&gt; Seems to be working for the most part, but the &#8220;If notify.complete?&#8221; part is never &lt;span class=&quot;caps&quot;&gt;TRUE&lt;/span&gt;.  What determines if that is true or not?  Is there something I need to do for it to be true?  Or is it completely in Paypal&#8217;s hands?&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Justin</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:3241</id>
    <published>2007-07-16T14:36:22Z</published>
    <updated>2007-07-16T14:36:22Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Justin</title>
<content type="html">&lt;p&gt;If I have require &#8216;money&#8217; in the environment.rb file I don&#8217;t need it in the controller right?&lt;/p&gt;


	&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;FYI&lt;/span&gt;:  I was using &#8220;require &#8216;activemerchant&#8217;&#8221; in the environment.rb file which wasn&#8217;t working.  I didn&#8217;t realize that I needed an underscore.  Adding &#8220;require &#8216;active_merchant&#8217;&#8221; works just fine.  Thanks Brandon.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>inboulder</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:3235</id>
    <published>2007-07-15T20:31:50Z</published>
    <updated>2007-07-15T20:31:50Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by inboulder</title>
<content type="html">&lt;p&gt;note: to get anything out of the notify object you need to put require &#8216;money&#8217; in the controller.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Justin</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:3208</id>
    <published>2007-07-12T22:22:34Z</published>
    <updated>2007-07-12T22:22:34Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Justin</title>
<content type="html">&lt;p&gt;I tried &#8220;require &#8216;activemerchant&#8217;&#8221; and got the error:&lt;/p&gt;


	&lt;p&gt;warning: already initialized constant &lt;span class=&quot;caps&quot;&gt;OPTIONS&lt;/span&gt;&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Justin</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:3207</id>
    <published>2007-07-12T22:19:34Z</published>
    <updated>2007-07-12T22:19:34Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Justin</title>
<content type="html">&lt;p&gt;Solved my problem after a &lt;span class=&quot;caps&quot;&gt;LOT&lt;/span&gt; of looking.&lt;/p&gt;


	&lt;p&gt;I originally installed ActiveMerchant using &#8220;gem install&#8221;.&lt;/p&gt;


	&lt;p&gt;My problem went away only after I installed ActiveMerchant as a &lt;span class=&quot;caps&quot;&gt;PLUGIN&lt;/span&gt;.  This is different from a &lt;span class=&quot;caps&quot;&gt;GEM&lt;/span&gt;.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:3206</id>
    <published>2007-07-12T21:49:26Z</published>
    <updated>2007-07-12T21:49:26Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Brandon</title>
<content type="html">&lt;p&gt;Justin,&lt;/p&gt;


	&lt;p&gt;Do you have ActiveMerchant installed as a plugin or a gem?  If you have the gem installed, then you also need to do &lt;code&gt;require 'active_merchant'&lt;/code&gt; in your environment.rb file&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Justin</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:3205</id>
    <published>2007-07-12T21:43:46Z</published>
    <updated>2007-07-12T21:43:46Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Justin</title>
<content type="html">&lt;p&gt;I keep getting “uninitialized constant ActiveMerchant (NameError)” when trying to start the server with “ActiveMerchant::Billing::Base.mode = :test” in the environment.rb file.&lt;/p&gt;


	&lt;p&gt;I have “require_gem ‘money’” in the environment.rb file.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Frank</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:3049</id>
    <published>2007-06-12T11:15:58Z</published>
    <updated>2007-06-12T11:15:58Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Frank</title>
<content type="html">&lt;p&gt;Wow, that looks great&#8230; I&#8217;m going to try it for my current project. Thank you&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Haig Didizian</name>
    </author>
    <id>tag:opensoul.org,2006-09-16:629:695</id>
    <published>2006-12-08T16:01:28Z</published>
    <updated>2006-12-08T16:01:28Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/9/16/paypal-ipn-in-rails-with-active-merchant" rel="alternate" type="text/html"/>
    <title>Comment on 'Paypal IPN in Rails with Active Merchant' by Haig Didizian</title>
<content type="html">&lt;p&gt;Thanks for this, Brandon. You saved me a good bit of time. I just wanted to add that I needed to put &#8220;require_gem &#8216;money&#8217;&#8221; into my environment.rb file to avoid a NameError exception during the notification phase.&lt;/p&gt;</content>  </entry>
</feed>
