rb512
rb512

Reputation: 6958

problems getting ActiveMerchant PayPal Gateway to work on rails 3

I am trying to get PayPal Gateway to work on a rails 3 app. But I keep hitting this error "uninitialized constant ActiveMerchant::Billing::PayPalGateway (NameError)"

I've this in my development.rb:

ActiveMerchant::Billing::Base.mode = :test
::GATEWAY = ActiveMerchant::Billing::PayPalGateway.new(
:login => "API USERNAME ",
:password => "API PASSWORD",
:signature => "API SIGNATURE"
)

Please help!

Upvotes: 0

Views: 828

Answers (1)

James Healy
James Healy

Reputation: 15168

Your capitalisation is wrong. Try:

ActiveMerchant::Billing::PaypalGateway

Upvotes: 3

Related Questions