让ActiveMerchant PayPal Gateway在rails 3上工作的问题

时间:2011-07-27 03:25:27

标签: ruby-on-rails ruby-on-rails-3 paypal activemerchant

我正在尝试让PayPal Gateway在rails 3应用上运行。 但我一直在打这个错误“未初始化的常量ActiveMerchant :: Billing :: PayPalGateway(NameError)”

我在我的开发中有这个.rb:

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

请帮忙!

1 个答案:

答案 0 :(得分:3)

您的大写错误。尝试:

ActiveMerchant::Billing::PaypalGateway