NameError/Unitialized Constant With PayPal Gem

I am trying to use the PayPal gem and having a little trouble.

I installed the gem w/o any trouble:

paypal (1.0.1)
Paypal IPN integration library for rails and other web applications

When I try to use it in my controller, as follows:

def paypal_ipn
notify =


I get a NameError:

uninitialized constant Paypal
This error occured while loading the following files:

Like it can’t find the gem files… I looked and the gem is in place and
files are all intact.

Am I doing something wrong? Did I mistype something that I’m missing?

I’ve been going over this but if there is an error in the code, I am
to it.

Any help is appreciated.


In config/environments.rb you need to add:
require ‘paypal’


Yeah, just figured that out.



This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs