# Ruby Paypal library uninitialized constant error

**URL:** <https://www.ruby-forum.com/t/ruby-paypal-library-uninitialized-constant-error/112076>\
**Category:** Ruby\
**Created:** [August 15, 2007, 12:21am UTC](https://www.ruby-forum.com/t/ruby-paypal-library-uninitialized-constant-error/112076 "2007-08-15T00:21:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jspencer78](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f14d63/32.png) [@jspencer78](https://www.ruby-forum.com/u/jspencer78)\
**Post date:** [August 15, 2007, 12:21am UTC](https://www.ruby-forum.com/t/ruby-paypal-library-uninitialized-constant-error/112076/1 "2007-08-15T00:21:45Z")

</div>

I’m trying to use the paypal library for ruby but im getting an error on  
the ipn callback method.

im getting the error:  
NameError (uninitialized constant Paypal::Notification::Money):  
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/dependencies.rb:477:in  
`const\_missing’

I think it originates at this line of code:  
logger.info(“paypal amount=#{notify.amount.to\_s}”)

I have setup the helpers in the ApplicationHelper  
require ‘paypal’  
module ApplicationHelper  
include Paypal::Helpers

Has anybody else had this problem?

Thanks,  
James

---

<div class="post-metadata">

**Author:** ![jspencer78](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f14d63/32.png) [@jspencer78](https://www.ruby-forum.com/u/jspencer78)\
**Post date:** [August 15, 2007, 4:29pm UTC](https://www.ruby-forum.com/t/ruby-paypal-library-uninitialized-constant-error/112076/2 "2007-08-15T16:29:37Z")

</div>

i managed to fix this by adding require ‘money’ into the  
applicationhelper file.

It worked fine for a while but all of a suddent the entire paypal gem  
has stopped working

“undefined local variable or method `paypal\_form\_tag’ for  
#\<#Class:0xb7719f00:0xb7719ec4\>”
